Not sure where this question belongs since it might be a problem with either Pry or JRuby: When running pry on JRuby 1.7.3 the following error is thrown at session start: jerry@nostromo:~$ pry before_session hook failed: Errno::ENOENT: No such file or directory - /home/jerry org/jruby/RubyFile.java:333:in `initialize' (see _pry_.hooks.errors to debug)  pry(main)> This happens on Ubuntu 12.10 with JRuby installed via RVM. I'm using Oracle Java (build 1.7.0_15-b03). The directory in question is off course present. Afterwards pry seems to be working more or less normally, though there seem to be a general problems with File handling:  pry(main)> f = File.new "/tmp" Errno::ENOENT: No such file or directory - /tmp Any hints how this might be fixed? Regards Jerry
on 2013-03-04 16:23
on 2013-03-04 21:06
ToconfirmJerry's error, I get the same error on Linux Mint 14 (which is based on Ubuntu 12.10), running JRuby 1.7.2. Same file (RubyFile.java) and same line number (333). - Keith Keith R. Bennett http://about.me/keithrbennett
on 2013-03-04 21:09
This is reported as http://jira.codehaus.org/browse/JRUBY-7114 and http://jira.codehaus.org/browse/JRUBY-7116. My observations are included in those tickets.
on 2013-03-07 15:47
Thanks for the pointer, Hirotsugu Asari. The problem on startup has been fixed in pry: https://github.com/pry/pry/commit/e7d8eb556c7c534e... The problem with File.new still remains, though. Since it also shows up when using IRB I think it is JRuby-related. Regards Jerry