-
Notifications
You must be signed in to change notification settings - Fork 36
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
chruby support with zsh #16
Comments
Works for me. I'm not a chruby user, but I tried it out, removing rbenv first. Check out the steps I took and see if there is anything you might be doing differently:
|
Hmm... I'll try when I get in front of a computer ASAP. Could it be due to me using zshell instead of bash?
|
Yeah, zshell isn't supported yet. |
Everybody who is interested in this feature, can you please test #22 and provide feedback on the PR? |
This should work in version 0.9.0. Feel free to post comments on this issue if it doesn't. |
Sorry for no comments on this while you were trying to fix it--had project deadlines so I switched back to RubyMine so I could be productive again. :) I'm still seeing issues here, running 0.9.1. I set the Shell option to
Amongst other things, I have this in my .zshrc:
I then realized that I'm using bundler to install gems to Next, I tried changing default settings to use So next, I prefaced the commands with Next, I tried not sourcing my .zshrc (just in case that was doing some PATH) stuff, and changed my commands to look like:
New error from bundler: "You have already activated rspec-support 3.1.0, but your Gemfile requires rspec-support 3.0.4 [etc...]". So now I'm working out of the correct path for my project, but the commands aren't using bundler. I got it working using commands like:
Using Suggestions:
|
Hey, I also just stumbled upon this, and have the same issues. That's why I'd love to see this issue reopened. A little thing I found is that calling Maybe something like a shell setup block or such would help :) |
@Nesquick When I prefix my command with |
This works, but initializing my shell every time is quite time consuming. I'd imagine I could probably load chruby this way and exclude most of the irrelevant ZSH pieces, but this still incurs a big startup cost. I wonder if there's a way to initialize this into the Atom environment itself. |
For reference: https://github.com/postmodern/chruby. I installed on OSX using Homebrew, FWIW.
I setup my test/rspec commands to use
bin/rspec --tty
(etc.). When I run any of the tests (cmd-ctrl-r, for example), I get output in the console saying that it can't find bundler--but the ruby path that's in the backtrace is for the system ruby. (As an aside, and I don't know if this is on you or Atom, it'd be nice to be able to copy the output from the console so I can paste in here. I'm not able to select anything in there). I've tried changing the commands to look like:bin/rsepc --tty spec
bundle exec rspec --tty spec
source /usr/local/opt/chruby/share/chruby/chruby.sh; cd .; bundle exec rspec --tty spec
Atom version: 0.115.0
Ruby test: 0.7.0
The text was updated successfully, but these errors were encountered: