My terminal is configured to use Ruby 1.8.7, via ruby env.
If I open the Terminal in IntelliJ and do ruby --version
I get 1.8.7, which is correct.
I have an external tool which is essentially just a Rake task. I also want this to run using my rbenv managed Ruby 1.8.7, however, when I run the task, it defaults to using the system Ruby (2.0), and then bails because the gems aren't installed here.
The verbose output points all the way back to usr/bin/rake
- is there any way I can configure IntelliJ to use a different version of Rake?
I'm using IntelliJ IDEA Ultimate 2016.3, on a Mac running 10.12
Use an absolute path as the Program parameter in the external tool set up to the Rake shim in rbenv:
/Users/someuser/.rbenv/shims/rake