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 240632 - IllegalArgumentException: Parameter must be a valid folder.
Summary: IllegalArgumentException: Parameter must be a valid folder.
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-17 22:37 UTC by jdlee
Modified: 2014-01-18 12:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206690


Attachments
stacktrace (1.12 KB, text/plain)
2014-01-17 22:37 UTC, jdlee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jdlee 2014-01-17 22:37:03 UTC
Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Linux

User Comments:
jdlee: Trying to create a new Gradle-based project




Stacktrace: 
java.lang.IllegalArgumentException: Parameter must be a valid folder.
   at org.netbeans.spi.project.ui.support.ProjectChooser.setProjectsFolder(ProjectChooser.java:76)
   at org.netbeans.gradle.project.newproject.NewProjectUtils.setDefaultProjectDir(NewProjectUtils.java:61)
   at org.netbeans.gradle.project.newproject.GradleSingleProjectPropertiesPanel.getConfig(GradleSingleProjectPropertiesPanel.java:89)
   at org.netbeans.gradle.project.newproject.GradleSingleProjectConfigPanel.storeSettings(GradleSingleProjectConfigPanel.java:48)
   at org.netbeans.gradle.project.newproject.GradleSingleProjectConfigPanel.storeSettings(GradleSingleProjectConfigPanel.java:9)
   at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1615)
Comment 1 jdlee 2014-01-17 22:37:04 UTC
Created attachment 144092 [details]
stacktrace
Comment 2 Milos Kleint 2014-01-18 09:29:03 UTC
gradle project type related?
Comment 3 attila.kelemen 2014-01-18 12:31:33 UTC
(In reply to Milos Kleint from comment #2)
> gradle project type related?

Yes. Should now be fixed in master. This is most likely caused by deleting the last used "Project Location" folder. For now, the workaround is to adjust "~/NetBeans/7.4/config/Preferences/org/netbeans/gradle/gradle.properties": Remove the "default-project-dir" line.