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

RuboCop Not Found #13

Open
moubry opened this issue Sep 19, 2020 · 3 comments
Open

RuboCop Not Found #13

moubry opened this issue Sep 19, 2020 · 3 comments

Comments

@moubry
Copy link

moubry commented Sep 19, 2020

I’m seeing an error that says:

RuboCop Not Found
The "rubocop" command could not be found in your environment.

Screen Shot 2020-09-18 at 8 03 42 PM

Relevant details:

  • I’m using rbenv. The project is using Bundler. Rubocop is in the project’s Gemfile. Rubocop is not installed globally.
  • When I open a new Local Terminal, both rubocop and bundle exec rubocop work.
  • Nova’s Extension Console doesn’t log anything (I’m not sure if it should be).
  • I just installed Nova and am using default settings AFAIK. For example, I have “Automatically request environment from login shell” checked in the Tools tab in Preferences.

I read the Help guide for the extension. I wish I could have debugged it further on my end before creating this issue, but I’m not sure exactly what the best next steps to take are.

❤️ Thank you so much for making this extension! ❤️

@moubry
Copy link
Author

moubry commented Sep 19, 2020

I’ve noticed that Nova also seems to be unable to load my environment when I use @michalsapka’s RSpec runner.

Screen Shot 2020-09-18 at 8 47 16 PM

I’m just mentioning it here, because it might have a related cause. As if none of the extensions in Nova have access to the login shell for me?

@transoceanic2000
Copy link

I have a similar problem in a project that users rvm to manage ruby versions.

Found that I still had an old version of rubocop installed globally, which it was finding and which caused errors that were reported in the console. However having uninstalled rubocop globally (so relying on the version in my project's Gemfile) it reports that it can't find it, but there is no output in the log at all.

If I open a local terminal tab for the project I can execute rubocop without incident using the correct version.

@mzagaja
Copy link

mzagaja commented Oct 2, 2020

I am having the same issue with Nova, RVM, and Rubocop. bundle exec rubocop works fine, but I get this error when using rubocop in my Gemfile:
Screen Shot 2020-10-02 at 11 37 43 AM

Removing rubocop from the Gemfile and doing bundle install fixes this, as it is able to find my global version.

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