Pry fails in before_session hook on JRuby 1.7.3

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:

[email protected]:~$ 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)
[1] 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:

[15] pry(main)> f = File.new “/tmp”
Errno::ENOENT: No such file or directory - /tmp

Any hints how this might be fixed?

Regards
Jerry

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

Thanks for the pointer, Hirotsugu A… The problem on startup has been
fixed in pry:
https://github.com/pry/pry/commit/e7d8eb556c7c534e97e4d2349212303d531c2638

The problem with File.new still remains, though. Since it also shows up
when using IRB I think it is JRuby-related.

Regards
Jerry

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs