pezra / rspec-mode

An RSpec minor mode for Emacs
257 stars 112 forks source link

Point out potential need for rspec-use-rvm #132

Closed davidw closed 7 years ago

dgutov commented 8 years ago

The text looks good, but I think it should go further down, into "Gotchas".

davidw commented 8 years ago

It's not a 'gotcha', it's part of the installation if you use RVM. Without it, it won't work.

dgutov commented 8 years ago

Without it, it won't work.

That's not true. First, if you use only one Ruby version, calling (rvm-use-default), like documented in rvm.el's README, will do the trick.

Second, if you routinely switch between projects that use different versions of Ruby, you're going to have problems with other packages that deal with Ruby as well (such as inf-ruby), unless you call rvm-activate-corresponding-ruby each time, or add it to ruby-mode-hook. That's mentioned in the same README, under Usage.

And if you do that, you won't even need rspec-use-rvm.

davidw commented 8 years ago

It sounds like between what I wrote, and what you wrote above, you have a pretty good idea of what should go in the README. Probably makes more sense for you to make those changes.

dgutov commented 8 years ago

Yes and no: I've never actually used RVM with Emacs (at least to my recollection).

Would "call M-x rbm-activate-corresponding-ruby each time when you switch between projects" satisfy you as an advice?

There's a mistake in my previous message: you can't add it to ruby-mode-hook: the "current Ruby" setting is global.

marcofognog commented 7 years ago

+1 this commit was helpfull, thank you very much.

dgutov commented 7 years ago

Too bad this PR puts the section too high.

marcofognog commented 7 years ago

164