Skip to content

Plugin reports misleading rubocop path used #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Epigene opened this issue Nov 13, 2020 · 0 comments
Open

Plugin reports misleading rubocop path used #135

Epigene opened this issue Nov 13, 2020 · 0 comments

Comments

@Epigene
Copy link

Epigene commented Nov 13, 2020

what happens
If I misconfigure my rubocop.yml and save a ruby file to trigger linting, vscode-rubocop shows some random rubocop path /Users/augusts/.rvm/gems/ruby-2.3.4/bin/rubocop in the warning message.
misleading

I don't think I have Ruby 2.3.4 installed, though maybe it's some system version.

what I expected to happen
vscode-rubocop should report the actual rubocop path used, which is /Users/augusts/.rvm/gems/ruby-2.7.1/bin/rubocop, since I have "ruby.rubocop.executePath": "/Users/augusts/.rvm/gems/ruby-2.7.1/bin/" in settings.

env
macOS Catalina 10.15.7
vscode-ruby-rubocop v0.8.5

$ code -v
1.51.1
e5a624b788d92b8d34d1392e4c4d9789406efe8f
x64

$ rvm list
   ruby-2.5.1 [ x86_64 ]
   ruby-2.5.3 [ x86_64 ]
   ruby-2.6.1 [ x86_64 ]
   ruby-2.6.3 [ x86_64 ]
=* ruby-2.7.1 [ x86_64 ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant