-
Notifications
You must be signed in to change notification settings - Fork 53
Linter rubocop not lintering. #44
Comments
my linter-rubocop failed silently because I had this extra line in my config.cson:
that just overloaded my previous settings. Removing the line helped. Maybe you missed that one? |
Hey thanks for answering. Unfortunately I did remove that line. I have the right executable path, and I am getting no errors whatsoever. |
I am also having this problem on a few of my machines. I've gotten linter-rubocop to work on a few machines, and I've seen it fail quietly like @aecorredor is mentioning on others. I'll see if I can find a clue between the installations.
Then doublecheck that the executable path corresponds with |
Same issue here. The linter does not work anymore. |
For me, it helped to remove |
Hey guys, thanks for all the responses. I've tried @untra 's solution of running gem install rubocop, apm install linter, and apm linter-rubocop, and checking my exec. path and it is still not working. Also tried @consti 's solution, did not work either. My executable is /Users/Alejandro/.rvm/gems/ruby-2.2.1/bin/rubocop, I use the parent directory /Users/Alejandro/.rvm/gems/ruby-2.2.1/bin/ as the exec. path. Hope somebody else gets lucky. Let me know if you guys find a fix. Cheers. |
+1 @aecorredor
rubocop work fine in terminal |
I try |
+1 I cannot get linter-rubocop working. I uninstalled everything and reinstalled via apm. I am running OSX Yosemite with Atom 0.210.0. linter-rubocop was the only reason I was using atom; I could never integrate it successfully with any other text editor. |
Did you check the rubocop config file? If you are using a custom config, check it for errors. Even a stray white space can cause issues. |
It is somehow related to the presence of a .rubocop.yml file! If I have a blank .rubocop.yml file, it will not work in Atom; but when I remove the file it works. Originally my file was not blank and had valid exceptions in it. There must be some kind of regression parsing the .rubocop.yml file, either in rubocop, linter-rubocop, or both. |
+1 couldn't get working here either - tried previous steps other people had suggested. After looking at it a bit more: removing linter: {} and saving config.cson - next time I restart, I see linter: {} back in - looks like its being auto added and may stop it from working (based on previous comments). |
bump. If anyone in the discussion found a solution please let us know. thanks. |
After linter last update(1.0.4), linter-rubocop is now working properly here. |
@cirdes confirmed here - good now also 👍 |
Still not working for me...already updated everything. I don't know if there is something essential that I am not doing. It is suppose to lint as soon as I start typing in an rb file right? with ruby set as writing language too obviously right? |
+1 not working for rvm yet. |
So I found a fix, at least for me. I was using rvm before and I just switched to rbenv and now it's fully working. I guess if you don't mind not using rvm this is fine. cheers. |
+1 not working with RVM for me too |
I was able to get it working with RVM on OS X: I was looking for an alternative when I found a clue here, I guess there's a problem with PATH and Atom needs to be opened via the command line at least once. I used the Edit: looks like linter-rubocop requires launching from command line every time. |
@sheedhet That solves it for me too. Although it would be nice to have it working without opening the atom with the directory via the terminal. 👍 Thanks! |
@sheedhet yes worked for me. |
Opening from the command line works fine, but IMO is a very lame workaround. =( |
This is a known issue with atom-lint and thus probably with linter: https://atom.io/packages/atom-lint#linter-executable-paths I had to add the path to my rubocop file to the PATH variable in the atom init script. |
…Linter Use JSON formatter, add additionalArguments param
FYI linter 1.3.0 seems to have broken it for me -- I downgraded back to 1.2.4 and it worked again. |
@esilverberg linter 1.3.0 removed a deprecated api that was still used by linter-rubocop. Until linter-rubocop switches to the new api you need to stay on 1.2.4 for it to work. |
It's working for me if I start it from the command line. Otherwise it's giving me errors. |
Removed the line |
As the title says it, simply nothing happens as I type code. I tried most troubleshooting tips that you can find out there. Modifying cson file, uninstalling everything (including atom), opening from terminal, etc. Any help appreciated. thank you.
The text was updated successfully, but these errors were encountered: