Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6RC1
-
Fix Version/s: JRuby 1.6RC3, JRuby 1.6
-
Component/s: Intro, Ruby 1.9.2, Standard Library
-
Labels:None
-
Number of attachments :
Description
$ jruby -v --1.9 -d --debug -rdebug -e 0 jruby 1.6.0.RC1 (ruby 1.9.2 patchlevel 136) (2011-01-19 36b741d) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java] Exception `LoadError' at /Users/asari/Development/src/jruby/lib/ruby/site_ruby/shared/Win32API.rb:2 - Win32API only supported on win32 Exception `LoadError' at org/jruby/RubyKernel.java:1050 - no such file to load -- continuation org/jruby/RubyKernel.java:1050:in `require19': no such file to load -- continuation (LoadError) from /Users/asari/Development/src/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require' from /Users/asari/Development/src/jruby/lib/ruby/1.9/debug.rb:5:in `(root)'
I made a quick attempt to fix this, but the 1.9 debugger actually hooks into the instruction logic and RubyVM modules. It won't be something we can just patch.
Also tried copying 1.8's debugger over, but it uses critical a lot. Those could probably just be commented out.
For anyone else looking into this...you should use the "jruby" branches on our Ruby fork to get a copy of our forked stdlib: https://github.com/jruby/ruby