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

Summary: IllegalArgumentException: Parameter must be a valid folder.
Product: projects Reporter: jdlee <jdlee>
Component: Generic InfrastructureAssignee: Milos Kleint <mkleint>
Status: RESOLVED FIXED    
Severity: normal CC: attila.kelemen
Priority: P3    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 206690
Attachments: stacktrace

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.