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.
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?
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!