-
Notifications
You must be signed in to change notification settings - Fork 453
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
Could not find 'rubocop'. The program may not be installed. #548
Comments
Please follow contribution guides at https://github.com/Glavin001/atom-beautify/blob/master/CONTRIBUTING.md |
I updated my original post. |
Thanks,, I'll take a look. For reference, here is the applicable code in linter-rubocop: https://github.com/AtomLinter/linter-rubocop/blob/master/index.coffee |
@reidcooper Atom Beatify uses your PATH environment variable to detect the location of executables. This is what Atom Beautify detects your PATH environment variable to be:
Could you confirm this by going into your Terminal and running Also what is the path to your |
echo $PATH
which rubocop
If I type:
then I get:
|
I am using linter-rubocop and according to their documentation, it said, if you are using rbenv to type in:
|
So you have manually set the
You can get Atom Beautify to work by adding |
I executed
to add to my path, and I restarted Atom. However, I still received the same error. Am I forgetting something? Also, I am using z-shell if that matters. Edit: I think I got it to work. I had to add to my zshell profile instead of the bash profile. |
Right on. Glad to here it is working now. I hope to make this process easier in the future. |
I have also been working on this problem. Just fixed it - the gem is missing: gem install rubocop Solved it by looking at linter-rubocop. |
I'm still experiencing this issue even after having tried the solutions listed above. Would it be possible to add an option at the end to specify the path of Rubocop? |
@emanuelet : I would accept a Pull Request. Applicable code can be found at https://github.com/Glavin001/atom-beautify/blob/master/src/beautifiers/rubocop.coffee |
opened PR #676 |
update settings as in following: |
I really want to focus on improving the installation experience for users. I have created a new Issue, #1687, to target this problem. Please provide your feedback! Thanks in advance. |
@aashish Image is missing ... |
@goxr3plus Sorry for that. Please follow the instructions
Update Rubocop Path as |
I did ''' gem install robucop ''' and problem was solved :)
Στις 25 Δεκ 2017 16:57, ο χρήστης "Aashish Kiran" <[email protected]>
έγραψε:
… @goxr3plus <https://github.com/goxr3plus> Sorry for that. Please follow
the instructions
$ which rubocop
***@***.***/bin/rubocop
Update Rubocop Path as
***@***.***/bin/rubocop
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#548 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ATbiwIHvhCizbsEtAEetSBEpyrZ22E0nks5tD7frgaJpZM4F86as>
.
|
@goxr3plus great!! robocop is being detected. |
For anyone that the above doesn't work for. If you have installed the gem and still getting errors, try using the RVM wrappers, solved it for me. /Users/xxxxx/.rvm/gems/ruby-2.3.7@xxxxx/wrappers/rubocop |
I have install rubocop as for my linter and auto-beautify via atom-beautify in settings. However, when I run the command, "ctrl-alt-b", it returns the error that it cannot find 'rubocop'.
But linter-rubocop can find rubocop fine and work properly. I have it under rbenv.
Link:
https://gist.github.com/reidcooper/1cc6d16bf06cc8686d0c
The text was updated successfully, but these errors were encountered: