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.
When I create groovy classes (e.g. domain classes, controllers, etc), there is no code completion for their methods inside other Groovy classes that use them (e.g. I'm writing a unit test that uses the domain class). In contrast, if I create a Java class inside of src/java, code completion for the methods of the java classes is available. Similarly, in the import statements, there is no code completion for imports of Groovy classes in packages , whereas there is completion for Java classes in packages.
Created attachment 83380 [details] a sample project illustrating the issue
In the example project : public void foo() { Monkey m = new Monkey(); // code completion works here, Groovy class in default package m.abcd(); Donkey d = new Donkey() // code completion works here, Java class d.doNothing() BarDonkey bd = new BarDonkey(); // code completion doesn't work here, Groovy class in a package' bd.doSomething(); } I poked around the source, I checked out the project metadata and the project seems to contain all the right places in the classpath (e.g. the source roots). Any tips of what the classpath/completion infrastructure needs to recognize Groovy classes in packages ?
This has been working for a while now.