Skip to content
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

ST3 Support #7

Closed
demisx opened this issue Nov 8, 2013 · 3 comments
Closed

ST3 Support #7

demisx opened this issue Nov 8, 2013 · 3 comments

Comments

@demisx
Copy link

demisx commented Nov 8, 2013

Is this package not supported in ST3? I've installed it via Package Control, but running Tools -> Rubocop -> Rubocop Check Single File results in this error:

ruby: No such file or directory -- rubocop (LoadError)
[Finished in 0.8s with exit code 1]
[cmd: ['/Users/dmoore/.rvm/bin/rvm-auto-ruby -S rubocop /Users/dmoore/projects/colddata/gradrocket/gradrocket-com/app/controllers/graduates/registrations_controller.rb']]
[dir: /Users/dmoore/projects/colddata/gradrocket/gradrocket-com/app/controllers/graduates]
[path: /Users/dmoore/.rvm/gems/ruby-2.0.0-p247/bin:/Users/dmoore/.rvm/gems/ruby-2.0.0-p247@global/bin:/Users/dmoore/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/dmoore/.rvm/bin:/usr/local/bin:/usr/local/sbin:~/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:~/bin]
@pderichs
Copy link
Owner

This package is supported in ST3. It seems, the plugin is not able to find the rubocop command in your environment.

What happens if you try to run rubocop from a shell?

Is rubocop listed when you run "gem list | grep rubocop"?

Are you using rvm or rbenv? (What is the output of "which gem"?)

@demisx
Copy link
Author

demisx commented Jan 6, 2014

Thank you for your reply. Indeed, I was missing rubocop gem. Running gem install rubocop fixed it.

@joost
Copy link

joost commented Apr 8, 2014

I have the same problem using ST2 with rbenv.

  • rubocop gem installed (runs correctly)
  • gem correctly listed
  • which gem: '~/.rbenv/shims/gem'

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

3 participants