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 101321 - Exception on Build, Run or Clear Ruby project
Summary: Exception on Build, Run or Clear Ruby project
Status: VERIFIED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
: 100861 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-04-17 12:31 UTC by Maksim Khramov
Modified: 2007-09-14 13:52 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 Maksim Khramov 2007-04-17 12:31:44 UTC
Once I trying to build, run, clear or Generate RDoc  on fresh Ruby project I
have an exception:
java.lang.IllegalArgumentException
>    at java.lang.ProcessImpl.<init>(ProcessImpl.java:69)
>    at java.lang.ProcessImpl.start(ProcessImpl.java:30)
>    at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
>    at
>
org.netbeans.modules.ruby.rubyproject.execution.ExecutionService$2.run(ExecutionService.java:310)
> 
> [catch] at
> org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:129)

I use a 200704161800 build of NetBeans and 985 build of Ruby
Comment 1 Torbjorn Norbye 2007-04-18 03:13:02 UTC
I can't reproduce this. From the stacktrace and looking at the implementation of java.lang.ProcessImpl on 
Windows, it looks like there's an issue with something in your PATH; perhaps we're not escaping it 
properly. 

Does your installation directories contain spaces and quotes? 

What is the full paths to (1) the IDE, (2) the user directory, and (3) the Ruby interpreter (if you have 
changed it from the default) ?
Comment 2 Torbjorn Norbye 2007-04-18 03:16:52 UTC
Also, is your $CLASSPATH environment variable set to anything?
Comment 3 Maksim Khramov 2007-04-18 07:02:06 UTC
Full Path to my IDE is E:\Program Files\netbeans-6.0
Full Path to userdir is E:\Documents and Settings\Administrator\.netbeans

and $CLASSPATH set to:
E:\PROGRA~1\Exceed.nt\hcljrcsv.zip;E:\PROGRA~1\Exceed.nt;E:\PROGRA~1\JavaNCSS\lib
Comment 4 Torbjorn Norbye 2007-04-18 07:09:56 UTC
If you unset CLASSPATH before starting NetBeans, does the exception go away?

(I checked in a fix for this today, where $CLASSPATH is no longer consulted when launching JRuby - either 
using a current build or unsetting CLASSPATH would confirm is this is the cause of your bug)
Comment 5 Maksim Khramov 2007-04-18 07:14:36 UTC
Full Path to my IDE is E:\Program Files\netbeans-6.0
Full Path to userdir is E:\Documents and Settings\Administrator\.netbeans

and $CLASSPATH set to:
E:\PROGRA~1\Exceed.nt\hcljrcsv.zip;E:\PROGRA~1\Exceed.nt;E:\PROGRA~1\JavaNCSS\lib
Comment 6 Maksim Khramov 2007-04-18 07:17:34 UTC
I clear classpath and the exception is no more throws.
Comment 7 Torbjorn Norbye 2007-04-18 07:23:23 UTC
Great, then this bug should be fixed as of version 0.57 of the ruby projects module.
Comment 8 Jiri Skrivanek 2007-04-18 13:40:28 UTC
*** Issue 100861 has been marked as a duplicate of this issue. ***
Comment 9 Jiri Kovalsky 2007-07-03 14:14:46 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 10 Jiri Kovalsky 2007-07-03 14:45:16 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.
Comment 11 Maksim Khramov 2007-09-14 13:52:03 UTC
Verified in build 200709140000