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 -
org/jruby/ `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 = “/tmp”
Errno::ENOENT: No such file or directory - /tmp

Any hints how this might be fixed?


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 ( and same line number (333).

  • Keith

Keith R. Bennett

Thanks for the pointer, Hirotsugu A… The problem on startup has been
fixed in pry:

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


This is reported as and 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