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 100801 - Cannot generate RDoc for Ruby application
Summary: Cannot generate RDoc for Ruby application
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Platform (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-12 15:49 UTC by Jiri Skrivanek
Modified: 2007-11-01 10:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (7.54 KB, application/octet-stream)
2007-04-12 15:49 UTC, Jiri Skrivanek
Details
Stack trace - generate RDoc with native Ruby (2.97 KB, text/plain)
2007-04-16 13:08 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2007-04-12 15:49:16 UTC
ArrayIndexOutOfBoundsException is thrown when you try to generate RDoc for Ruby
application in IDE. To reproduce:

- open new project wizard
- create Ruby Application
- call 'Generate RDoc for Project' on project node and stack trace is printed to
the output window.

Ruby 0.68.0, IDE 20070412, JDK1.5.0_11, WindowsXP.
Comment 1 Jiri Skrivanek 2007-04-12 15:49:42 UTC
Created attachment 40832 [details]
Stack trace
Comment 2 Torbjorn Norbye 2007-04-13 20:32:12 UTC
This exception is coming from JRuby itself (in a separate process) running RDoc, not the IDE. I assume that 
if you switch to native Ruby it works?

I'm not sure what the problem could be - this works for me, even with JRuby.  Is it easy to reproduce? Is it 
a Windows thing?
Comment 3 Jiri Skrivanek 2007-04-16 13:06:38 UTC
It is easy to reproduce on my windows. At the time I can't test it on other OS.
If I switch to native Ruby, it throws another exception.
Comment 4 Jiri Skrivanek 2007-04-16 13:08:04 UTC
Created attachment 40955 [details]
Stack trace - generate RDoc with native Ruby
Comment 5 Torbjorn Norbye 2007-04-16 15:35:25 UTC
I've checked in a fix for the exception you get with native ruby; the issue there was a missing 
bundle.properties entry for the error message you get when "rdoc" is missing from your Ruby installation.

I still don't know why rdoc would fail with JRuby.
Comment 6 Jiri Skrivanek 2007-04-17 08:34:09 UTC
I tried netbeans-rubyide-hudson-985.zip and the same exception (missing bundle)
is thrown for native Ruby and ArrayIndexOutOfBoundsException for JRuby.
Comment 7 Torbjorn Norbye 2007-04-17 17:54:45 UTC
Oooops. I checked the Bundle file into the wrong directory yesterday. Well, I was sick and running a high 
fever! I'd better go back and check my other checkin logs :)

I have still not addressed the exception thrown by JRuby itself; I'm not sure what that's all about. I may 
need the JRuby guys to take a look, but first I'll upgrade the bundled JRuby snapshot to a more recent 
version.
Comment 8 Torbjorn Norbye 2007-06-20 00:08:35 UTC
RDoc generation works fine with JRuby now.
Comment 9 Jiri Skrivanek 2007-06-20 08:38:32 UTC
It works with JRuby but it doesn't work with native ruby on my windowsXP. I have Ruby 1.8.6 and I have set ruby
interpreter to

D:\Development\Ruby\ruby-1.8.6-win\bin\ruby.exe

Next to it exists rdoc.bat. But if I choose 'Generate RDoc' on project node it shows this error message:

No valid installation of null
Configure it under options|Miscellaneous|Ruby Installation
Comment 10 Jiri Kovalsky 2007-07-03 13:57:46 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 11 Torbjorn Norbye 2007-08-04 20:35:37 UTC
I just tried this on a current build on Windows XP, and it worked fine. Is it still broken for you?
Comment 12 Jiri Skrivanek 2007-08-06 14:32:55 UTC
It works for me in build 200708060257.
Comment 13 Jiri Skrivanek 2007-08-06 14:37:41 UTC
I am sorry but it still doesn't work with native Ruby as described in desc10.
Comment 14 Martin Krauskopf 2007-10-26 14:49:51 UTC
I have similar problem with my custom prefixed Ruby installation.
Comment 15 Martin Krauskopf 2007-10-31 17:02:12 UTC
Fixed. Thank Jirko for helping with the off-line culprit-confirmation.

platform/src/org/netbeans/api/ruby/platform/RubyInstallation.java;
new revision: 1.29; previous revision: 1.28
Comment 16 Jiri Skrivanek 2007-11-01 10:30:43 UTC
Verified.