This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 103290 - RUBY IRB Fails
Summary: RUBY IRB Fails
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords: REGRESSION
: 103293 104176 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-05-03 22:28 UTC by ervt1949
Modified: 2007-07-03 14:45 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ervt1949 2007-05-03 22:28:39 UTC
I've consistently gotten the following error message when attempting to open a
Ruby IRB window:

<script>:0:in `require': no such file to load -- irb (LoadError)
	from <script>:0
	...internal jruby stack elided...
	from org.jruby.Ruby.eval(Ruby.java:274)
	from org.jruby.Ruby.evalScript(Ruby.java:267)
	from
org.netbeans.modules.ruby.rubyproject.IrbTopComponent$2.run(IrbTopComponent.java:267)
	from org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
	from org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 Tomas Danek 2007-05-10 12:05:28 UTC
*** Issue 103293 has been marked as a duplicate of this issue. ***
Comment 2 Tomas Danek 2007-05-10 12:07:00 UTC
probably some regression in jruby?? 
Comment 3 Torbjorn Norbye 2007-05-17 23:53:41 UTC
Fixed;

JRuby recently stopped registering load paths etc. if the JRuby interpreter is running with security 
restrictions - which it simply defines as having any security manager installed (which NetBeans does).  
This breaks IRB, which no longer can find the irb.rb file in the ruby libraries.

Fixed by patching Ruby (the version running in the IDE, not the standalone interpreter used for running 
user programs, Rails etc.) to remove the security manager check.

IDE:-------------------------------------------------
IDE: [5/17/07 3:52 PM] Committing started
cvs server: scheduling file `Ruby.java' for addition
cvs server: use 'cvs commit' to add this file permanently
RCS file: /cvs/scripting/ruby/jruby/patched_files/org/jruby/Ruby.java,v
done
Checking in Ruby.java;
/cvs/scripting/ruby/jruby/patched_files/org/jruby/Ruby.java,v  <--  Ruby.java
initial revision: 1.1
done
IDE: [5/17/07 3:52 PM] Committing finished
Comment 4 Torbjorn Norbye 2007-05-17 23:54:46 UTC
*** Issue 104176 has been marked as a duplicate of this issue. ***
Comment 5 Tomas Danek 2007-05-18 13:18:22 UTC
thanks.verified in 070518
Comment 6 Jiri Kovalsky 2007-07-03 14:03:56 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 7 Jiri Kovalsky 2007-07-03 14:45:25 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.