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 99330 - "Generate" option throws an IllegalArgumentException
Summary: "Generate" option throws an IllegalArgumentException
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Torbjorn Norbye
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-29 01:39 UTC by Craig Mcclanahan
Modified: 2007-07-03 14:44 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 Craig Mcclanahan 2007-03-29 01:39:34 UTC
On Windows XP, I have my HOME environment variable set to "/home/craigmcc". 
With hudson build 603 (070328) of nbrubyide, I get the following exception when
I right click a rails project name and select "Generate...".  This worked with
hudson build 573 (070327).

java.lang.IllegalArgumentException: Parameter file was not normalized. Was
\home\craigmcc instead of C:\home\craigmcc
	at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:508)
	at
org.netbeans.modules.ruby.railsprojects.GeneratorPanel.getRailsHome(GeneratorPanel.java:170)
	at
org.netbeans.modules.ruby.railsprojects.GeneratorPanel.findGenerators(GeneratorPanel.java:256)
	at
org.netbeans.modules.ruby.railsprojects.GeneratorPanel.getTypeModel(GeneratorPanel.java:122)
	at
org.netbeans.modules.ruby.railsprojects.GeneratorPanel.initComponents(GeneratorPanel.java:465)
	at
org.netbeans.modules.ruby.railsprojects.GeneratorPanel.<init>(GeneratorPanel.java:63)
	at
org.netbeans.modules.ruby.railsprojects.GenerateAction.performAction(GenerateAction.java:93)
	at org.openide.util.actions.NodeAction$DelegateAction$1.run(NodeAction.java:559)
	at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.actionPerformed(ActionsBridge.java:89)
	at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:82)
	at
org.netbeans.modules.openide.actions.ActionsBridgeImpl.invokeAction(ActionsBridgeImpl.java:30)
	at
org.netbeans.modules.openide.util.ActionsBridge$ActionRunnable.doRun(ActionsBridge.java:80)
	at org.netbeans.modules.openide.util.ActionsBridge$1.run(ActionsBridge.java:49)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:541)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:963)
Comment 1 Torbjorn Norbye 2007-03-29 02:34:08 UTC
I fixed this bug this afternoon - fix is in build #608. (Somebody else reported it in a blog comment.)  The 
bug seems to be Windows specifc.
Comment 2 Jiri Kovalsky 2007-07-03 14:13:47 UTC
Reassigning this issue to newly created 'ruby' component.
Comment 3 Jiri Kovalsky 2007-07-03 14:44:19 UTC
Changing target milestone of all resolved Ruby issues from TBD to 6.0 Beta 1 build.