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

Emacs says "RuboCop not installed" #26

Open
oystersauce8 opened this issue Nov 1, 2017 · 3 comments
Open

Emacs says "RuboCop not installed" #26

oystersauce8 opened this issue Nov 1, 2017 · 3 comments

Comments

@oystersauce8
Copy link

oystersauce8 commented Nov 1, 2017

Emacs is unable to find rubocop. My workstation uses rbenv.
I installed by doing gem install rubocop and
M-x package-install rubocop
M-x package-install rbenv

I'm using this workaround for now

(require 'rubocop)
(setq rubocop-check-command "/Users/redacted/.rbenv/shims/rubocop --format emacs")
(defun rubocop-ensure-installed () )

Any ideas ....

@aarkerio
Copy link

aarkerio commented Jun 5, 2018

Same here, emacs 26 and rubocop 0.56

@bbatsov
Copy link
Collaborator

bbatsov commented Jun 5, 2018

Emacs has its own exec-path and likely the rubocop executable is not on it. You can either extend the exec-path manually or install https://github.com/purcell/exec-path-from-shell

@aarkerio
Copy link

aarkerio commented Jun 6, 2018

Yeah, I fixed it with:
(exec-path-from-shell-copy-env "GEM_PATH")

and the:

 $ rvm get head
 $ rvm use .
 $ gem install rubocop
 $ rubocop --auto-gen-config

inside the eshell.

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