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 173260

Summary: Run rake target does not work
Product: ruby Reporter: Tomas Danek <musilt2>
Component: RakeAssignee: Erno Mononen <emononen>
Status: RESOLVED DUPLICATE    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Tomas Danek 2009-09-29 12:47:03 UTC
Product Version: NetBeans IDE 6.8 Beta (Build 200909281634)
Java: 1.5.0_20; Java HotSpot(TM) Client VM 1.5.0_20-141
System: Mac OS X version 10.5.8 running on i386; MacRoman; en_US (nb)
Userdir: /Users/tomas/.netbeans/6.8beta
------
- create ruby project
- try to run some rake task, e.g. "spec"

/Applications/NetBeans/NetBeans 6.8 Beta.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin/rake:19:in `load': No
such file to load -- "/Applications/NetBeans/NetBeans 6.8
Beta.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake" (LoadError)
        from /Applications/NetBeans/NetBeans 6.8 Beta.app/Contents/Resources/NetBeans/ruby2/jruby-1.3.1/bin/rake:19
Comment 1 Tomas Danek 2009-09-29 13:05:22 UTC
reproducible also on Win ...some recent regression?
Comment 2 Erno Mononen 2009-09-29 13:17:24 UTC
This is a RubyGems issue, caused by the spaces in the path name. It is fixed in RubyGems 1.3.5; see the dupe for more 
details. Unfortunately JRuby 1.3.1 that is bundled with the IDE ships with RubyGems 1.3.3 that has this issue. If there 
won't be a new JRuby release (containing newer RubyGems) in time for FCS I'll look into whether we could ship JRuby 
1.3.1 with RubyGems 1.3.5, but I'm not sure now whether that is really doable.

If Beta is going to have some release notes this should probably be mentioned in it. I know this is a rather nasty 
issue, but I'm not to keen on trying to hack the bundled JRuby to bundle a different RubyGems version it comes with 
(not for Beta at least).

There are also two easy workarounds for the user to avoid this as mentioned in 171338:

a. upgrade to RubyGems 1.3.5
b. don't use spaces in path

*** This issue has been marked as a duplicate of 171338 ***