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.
Summary: | Editor does not open generated Groovy class | ||
---|---|---|---|
Product: | groovy | Reporter: | tkellerer <tkellerer> |
Component: | Code | Assignee: | bruno.flavio |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Screenshot showing the problem |
Description
tkellerer
2014-09-17 07:36:41 UTC
Created attachment 149281 [details]
Screenshot showing the problem
This is still the same with 8.1beta Hello, thank you for reporting this. Regarding the issue: Are you trying to open a Java or a Groovy class when this happens? The file shown in the screenshot appears to be a groovy class but has the .java extension, is this the case? Those are indeed Java classes. I checked this with NetBeans 8.2 RC and it still doesn't work properly. The classes are generated into "target/generated-sources/groovy-stubs/test". So below that is "com/mycompany/somepackage". But NetBeans 8.2 uses "test" as the first part of the package name and thus complains about com.mycompany.somepackage being wrong because the it uses test/com/mycompany/somepackage as the file location and thus expects the classes to be in the package "test.com.mycompany.somepackage". Note that the Maven project builds fine on the command line. I am the only one in the team using NetBeans. The setup works fine for all the IntelliJ and Eclipse users, so there is nothing I can do about it. |