-
Notifications
You must be signed in to change notification settings - Fork 53
Run rubocop with different ruby version #21
Comments
GEM_PATH is wrongly set for me too, would be a nice feature! |
Pointing from the executable path to a small script using rvm underneath did the trick for me ;) I mean something like this (with your ruby version of choice) |
FWIW I installed rubocop and reek on 1.9.3 like this:
That doesn't help on 1.8.7 of course... Just figured I'd mention it here so I'll find it when I'm googling for this two years from now. |
Has anyone found a fix for this? |
@chrishough I have created new file
Don't forget to replace |
|
Looks like rbenv has their own exec: |
Thank you @ngan |
This will be implemented on #411 |
Hi,
In my particular case, at work we are maintaining a big rails application developed in Ruby 1.8.7. However, we want to follow the recommendations from Rubocop (which does not support 1.8.7, but 1.9.3). We have some rules configured for our 1.8.7 version.
The problem is that in atom I was receiving this issue message (Obtained from the Linter debug option):
Then I decided to set the command (
cmd
) to execute directly on thelinter-rubocop.coffee
file. And also, not set up therubocopExecutablePath
config option.However, this will bring another problem. The
GEM_PATH
environmental variable is not set:Finally, I solved this issue in the
init.coffee
adding this line to the activate function.Now, I would like to maybe create a fork and solve this issue in a more elegant way. Does anybody has a recommendation on how to proceed with this? I thought about creating an optional config variable for the GEM_PATH, Ruby and Rubocop.
Thank you all for this great plugin.
Carlos.
The text was updated successfully, but these errors were encountered: