Forum: JRuby pry fails in before_session hook on JRuby 1.7.3

Posted by Gerald Preissler (gadgeteer)
on 2013-03-04 16:23
(Received via mailing list)
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)
[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
Posted by Keith B. (keith_b)
on 2013-03-04 21:06
(Received via mailing list)
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
Posted by Hirotsugu Asari (Guest)
on 2013-03-04 21:09
(Received via mailing list)
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.
Posted by Gerald Preissler (gadgeteer)
on 2013-03-07 15:47
(Received via mailing list)
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
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.