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.
-have a source with missing import statement(s) -press Ctrl+Shift+I to fix imports => expected: missing imports are added/"Nothing to fix in import statements." msg appears in status bar/UI with available classes to import appears actual: nothing happens
Hint for import fixing in web-main dc3130d56586. Fix import is java specific action. So there would have to be an API/SPI to plug in language specific "fix imports" => changing to enhancement.
Integrated into 'main-golden', will be available in build *200910161401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/dc3130d56586 User: phejl@netbeans.org Log: #155567 Shortcut for fix import is missing
*** Bug 154543 has been marked as a duplicate of this bug. ***
Fixed in: web-main #66eb3b99af6a
Integrated into 'main-golden', will be available in build *201203130400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/66eb3b99af6a User: Martin Janicek <mjanicek@netbeans.org> Log: #155567 - Shortcut for fix import is missing
Functionality seems to have issues. Example source: class MyGroovyTest { @Test void succeed() { Assert.assertEquals(4, 2+2); } } Altough I have junit-4.8.1.jar in my test classpath (specified in maven pom, shows up correctly under "Test Dependencies"), import options I get are only: org.apache.cataline.deploy.Test junit.framework.Test Also for Assert I don't get any hint for missing import - this is like this for all static method calls. Tested build 20120530
Thanks for reporting this, those are definitely valid bugs. I'm going to fill an issue to track this.
I've created issue 213297. Closing this one, as the problem is more or less a bug (functionality is working only with some troubles :]) and there is no need to have opened two tickets for the same problem. I'll take a look at it soon..