pderichs / sublime_rubocop

A Sublime Text RuboCop plugin.
238 stars 41 forks source link

command not found for rubocop #48

Open icn opened 7 years ago

icn commented 7 years ago
Please add some general information about your environment:
I am using zsh shell
▶ echo $PATH
/Users/myname/.exenv/shims:/Users/myname/.exenv/bin:/usr/local/Cellar/erlang/18.3/bin:/opt/gradle-2.8/bin:/Users/myname/.rbenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/myname/.fzf/bin

and rubocop is under /Users/myname/.rbenv/shims

Steps to reproduce:

my rubocop user setting file

{
    "check_for_rbenv": false,
    "check_for_rvm": false,
    "mark_issues_in_view": true,
    "rbenv_path": "~/.rbenv/shims/rubocop"
}

When I run RobuCop check current file I got this error

/bin/sh: rubocop: command not found
[Finished in 0.0s with exit code 127]
[cmd: rubocop /Users/myname/data/src/myproject/app/controllers/application_controller.rb]
[dir: /Users/myname/data/src/myproject]
[path: /usr/bin:/bin:/usr/sbin:/sbin]
elfassy commented 7 years ago

having the same issue, looks to me like it's related to the path being incorrect. Were you able to resolve this? If I add bundle exec i get

/bin/sh: bundle: command not found
icn commented 7 years ago

@elfassy no luck