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

Sublime rubocop with rbenv gemset ? #55

Open
bekicot opened this issue Jul 26, 2017 · 0 comments
Open

Sublime rubocop with rbenv gemset ? #55

bekicot opened this issue Jul 26, 2017 · 0 comments

Comments

@bekicot
Copy link

bekicot commented Jul 26, 2017

  • Mac OS Sierra
  • Sublime Text 3
  • rbenv, rbenv gemset

Error:

rbenv: rubocop: command not found
[Finished in 0.3s with exit code 127]
[cmd: /Users/bekicot/.rbenv/bin/rbenv exec rubocop /Users/bekicot/Projects/anak-pulau/osm_ppk_comparators.rb]
[dir: /Users/bekicot/Projects/anak-pulau]
[path: /usr/bin:/bin:/usr/sbin:/sbin]

I think the possible fix is to add an option to set environment variables manually, just like what Seeing Is Believing have done.

here is the excerpt from the code:

# set up env vars
env                   = os.environ.copy()
env_variables         = settings.get("environment_variables")
environment_variables = ({} if env_variables is None else env_variables) # prob a better way to do this, if you know the pythons, feel free to do it for me :D

https://github.com/JoshCheek/sublime-text-2-and-3-seeing-is-believing/blob/master/seeing_is_believing.py#L25

So that user can manually specify environment variables like
image

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

1 participant