michaelklishin / cucumber.el

Emacs mode for editing Cucumber plain text stories
None!
253 stars 90 forks source link

If path wansn't previously set for emacs, rvm won't get hooked up #10

Closed ifesdjeen closed 12 years ago

ifesdjeen commented 14 years ago

Not sure if you should consider it as a bug.

If you're using rvm and multiple ruby versions at a time, AFAIK, inferior shell doesn't hook up all the environment variables.

Solution would be to call [[ -s \"$HOME/.rvm/scripts/rvm\" ]] && . \"$HOME/.rvm/scripts/rvm\" && (but of course that'd be extremely rvm-specific one) or to use regular shell execution rather than compile command, since it'll hook up all the stuff rvm requires. I assume that compile was used there for a reason, even though it's not crystal clear for me.

Thanks!

mus0u commented 13 years ago

I would also love to see cucumber mode work play nice with RVM. I don't know enough Elisp to get things working on my own. Is there a workaround, perhaps some hook I need to set in my .emacs?

pd commented 13 years ago

Use rvm.el which will modify your exec-path, and things will more or less just work.