Can't use 'pry' with jruby

Installed jruby-1.7.2 with rvm on 32-bit linux distro, with I5 cpu.

I also installed the ‘pry’ parser gem, specifically these:
pry (0.9.11.4 java)
pry-doc (0.4.4)
pry-rescue (0.16)

When I try to use pry it fails to work, and spews a heap of errors
onscreen.

Has anyone seen/solved this problem before?

On Sun, Jan 27, 2013 at 8:05 PM, Jabari Z. [email protected] wrote:

Has anyone seen/solved this problem before?
Seems to work fine for me:


Mac OS (10.7.5)
java version “1.6.0_37”
Java™ SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot™ 64-Bit Server VM (build 20.12-b01-434, mixed mode)

jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706

pry (0.9.11.4 java, 0.9.10 java)
pry-doc (0.4.4)
pry-rails (0.2.2)
pry-rescue (0.16)

You could probably be more specific about

When I try to use pry

? ______________________

it fails to work

? ______________________

spews a heap of errors onscreen.

? ______________________

No need to be too specific, error messages are just there for show.
Ha. Just kidding.


Hassan S. ------------------------ [email protected]

twitter: @hassan

Hassan S. wrote in post #1094003:

On Sun, Jan 27, 2013 at 8:05 PM, Jabari Z. [email protected] wrote:

Has anyone seen/solved this problem before?
Seems to work fine for me:


Mac OS (10.7.5)
java version “1.6.0_37”
Java™ SE Runtime Environment (build 1.6.0_37-b06-434-11M3909)
Java HotSpot™ 64-Bit Server VM (build 20.12-b01-434, mixed mode)

jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706

pry (0.9.11.4 java, 0.9.10 java)
pry-doc (0.4.4)
pry-rails (0.2.2)
pry-rescue (0.16)


You could probably be more specific about

When I try to use pry

? ______________________

it fails to work

? ______________________

spews a heap of errors onscreen.

? ______________________

No need to be too specific, error messages are just there for show.
Ha. Just kidding.


Hassan S. ------------------------ [email protected]
Hassan Schroeder | about.me
twitter: @hassan

OK, here’s a screen dump of what I get.
I this a jruby, pry, or rvm problem?


zakiya@localhost ~ $ ruby -v
jruby 1.7.2 (1.9.3p327) 2013-01-04 302c706 on Java HotSpot™ Server VM
1.6.0_38-b05 [linux-i386]
jzakiya@localhost ~ $ pry
NameError: missing class or uppercase package name
(`org.pryrepl.InterceptionEventHook’)
get_proxy_or_package_under_package at
org/jruby/javasupport/JavaUtilities.java:54
method_missing at
file:/home/jzakiya/.rvm/rubies/jruby-1.7.2/lib/jruby.jar!/jruby/java/java_package_module_template.rb:10
singleton at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/interception-0.3/lib/cross_platform.rb:42
(root) at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/interception-0.3/lib/cross_platform.rb:2
require at org/jruby/RubyKernel.java:1027
require at
/home/jzakiya/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/interception-0.3/lib/interception.rb:1
Interception at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/interception-0.3/lib/interception.rb:119
require at org/jruby/RubyKernel.java:1027
require at
/home/jzakiya/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/interception-0.3/lib/interception.rb:5
require at org/jruby/RubyKernel.java:1027
require at
/home/jzakiya/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:60
require at
/home/jzakiya/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:55
(root) at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/pry-rescue-0.16/lib/pry-rescue.rb:1
require at org/jruby/RubyKernel.java:1027
require at
/home/jzakiya/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36
(root) at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/pry-rescue-0.16/lib/pry-rescue.rb:2
(root) at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/pry-rescue-0.16/lib/pry-rescue/cli.rb:1
each at org/jruby/RubyArray.java:1613
(root) at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/pry-rescue-0.16/lib/pry-rescue/cli.rb:1
(root) at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/pry-0.9.11.4-java/lib/pry/plugins.rb:1
require at org/jruby/RubyKernel.java:1027
require at
/home/jzakiya/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36
load_cli_options at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/pry-0.9.11.4-java/lib/pry/plugins.rb:38
require at org/jruby/RubyKernel.java:1027
require at
/home/jzakiya/.rvm/rubies/jruby-1.7.2/lib/ruby/shared/rubygems/custom_require.rb:36
add_plugin_options at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/pry-0.9.11.4-java/lib/pry/cli.rb:39
load at org/jruby/RubyKernel.java:1046
add_plugin_options at
/home/jzakiya/.rvm/gems/jruby-1.7.2/gems/pry-0.9.11.4-java/lib/pry/cli.rb:38
eval at org/jruby/RubyKernel.java:1066
(root) at
/home/jzakiya/.rvm/gems/jruby-1.7.2/bin/ruby_noexec_wrapper:14