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 268535

Summary: IllegalArgumentException: Not a Gradle project: /home/frederick.bass/code/SP9-Patch10/satcat/satcat-ejb-services@bc026c9c:353af5ec
Product: groovy Reporter: fbass
Component: GrailsAssignee: bruno.flavio
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 226664
Attachments: stacktrace

Description fbass 2016-10-14 23:46:49 UTC
Build: NetBeans IDE 8.2 (Build 201609300101)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.102-b14, Java(TM) SE Runtime Environment, 1.8.0_102-b14
OS: Linux

User Comments:
GUEST: When I want to save a js file.

GUEST: Save all

GUEST: Save file

GUEST: My project is npm + bower, no Gradle.

fbass: I opened a Maven (v3.3.9) project, edited a Java file (Jdk8), and clicked the Save button to produce this error.




Stacktrace: 
java.lang.IllegalArgumentException: Not a Gradle project: /home/frederick.bass/code/SP9-Patch10/satcat/satcat-ejb-services@bc026c9c:353af5ec
   at org.netbeans.gradle.project.NbGradleProjectFactory.getGradleProject(NbGradleProjectFactory.java:61)
   at org.netbeans.gradle.project.java.tasks.CompileOnSaveAction.isGradleProject(CompileOnSaveAction.java:51)
   at org.netbeans.gradle.project.java.tasks.CompileOnSaveAction.performTask(CompileOnSaveAction.java:34)
   at org.netbeans.modules.editor.lib.BeforeSaveTasks$TaskRunnable$1.run(BeforeSaveTasks.java:173)
   at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:356)
   at org.netbeans.modules.editor.lib.BeforeSaveTasks$TaskRunnable.run(BeforeSaveTasks.java:156)
Comment 1 fbass 2016-10-14 23:46:52 UTC
Created attachment 162514 [details]
stacktrace
Comment 2 fbass 2016-10-17 21:01:24 UTC
I'm using NetBeans 8.2 with Gradle Support plugin version 1.3.9

The workaround I'm currently using is to deactivate the Gradle Support plugin, so I am able to save a file after editing it.


Note: Netbeans 8.1 does not give me this problem at all.