In IDea 11.1.3 Build-IU#117.798 and trying to use its Ruby plugin to run specs in a project that uses Rails 3.2.8, ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.4.0].
I think it is related to having a homebrew version of postgres installed on OS X Lion Server (10.7.5) which I have on my path before the OS X server version of pg.
In Terminal.app:
$ whereis pg_dump
/usr/bin/pg_dump
$ pg_dump -V
pg_dump (PostgreSQL) 9.1.3
$ psql -V
psql (PostgreSQL) 9.1.3
contains support for command-line editing
$ /path/to/home/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -e 'puts "#{`pg_dump -V`}"'
pg_dump (PostgreSQL) 9.1.3
$ /path/to/home/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -e 'puts "#{`psql -V`}"'
psql (PostgreSQL) 9.1.3
contains support for command-line editing
If I add this to my Rakefile:
raise "whereis pg_dump = #{`whereis pg_dump`}, pg_dump -V = #{`pg_dump -V`}, psql -V = #{`psql -V`}"
In IDea, when I do Run -> Debug -> spec this is what is shown in the console:
/path/to/home/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /path/to/home/.rvm/gems/ruby-1.9.3-p194@some_project/gems/ruby-debug-ide-0.4.17.beta14/bin/rdebug-ide --port 51515 -- /path/to/home/.rvm/gems/ruby-1.9.3-p194@global/bin/rake spec
Testing started at 10:59 AM ...
Fast Debugger (ruby-debug-ide 0.4.17.beta14, ruby-debug-base 0.11.30.pre10) listens on 127.0.0.1:51515
rake aborted!
whereis pg_dump = /usr/bin/pg_dump
, pg_dump -V = pg_dump (PostgreSQL) 9.0.5
, psql -V = psql (PostgreSQL) 9.0.5
(See full trace by running task with --trace)
Process finished with exit code 137
Any idea why it would be getting a different version for binaries at the same path?