SublimeLinter / SublimeLinter-rubocop

SublimeLinter 3 plugin for Ruby, using rubocop.
MIT License
159 stars 40 forks source link

SublimeLinter: WARNING: rubocop deactivated, cannot locate 'rubocop' #11

Closed firedev closed 9 years ago

firedev commented 9 years ago

No matter I do, I can't get it to work. Rubocop is in the path, I have added it to sublimelinter_executable_map as well:

  "sublimelinter_executable_map": {
            "rubocop": "/Users/nick/.rbenv/shims/rubocop",
            "ruby": "/Users/nick/.rbenv/shims/ruby"
  },

...nothing. And strangely it is not working in Atom now too. Any suggestions?

reconbot commented 9 years ago

Can you run it from the command line?

aparajita commented 9 years ago

@firedev Have you gone through the troubleshooting guide in the docs?

firedev commented 9 years ago

Thanks, altering path as it described in Debugging PATH Problems helped:

{
    "paths": {
        "linux": [],
        "osx": [
            "~/.rbenv/shims"
        ],
        "windows": []
    }
}

As I understand linter processes ~/.zprofile for zsh on OS X instead of ~/.zshrc.

I propose to make link to troubleshooting more visible and include it in the text that is displayed after installation as well.

aparajita commented 9 years ago

@firedev Sigh...how I wish the docs would be read more carefully. The README does exactly what you are talking about already.

aparajita commented 9 years ago

@firedev And by the way, "sublimelinter_executable_map" is a SublimeLinter 1.7 setting that is non-functional in SublimeLinter 3. Please, please, please go read the docs.

firedev commented 9 years ago

Sorry, you know how it goes - doesn't work, ok will figure out later...

aparajita commented 9 years ago

@firedev The complete console output from startup to opening a ruby file should make it clear why it isn't working. Please post that here.

reconbot commented 9 years ago

I'm going to close due to age, if it's still a problem feel free to open.