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.
Created attachment 117836 [details] Thread dump with test file hang NetBeans Dev 201203260401 I have a maven project and if I select "Build" or "Test" from the Project context menu, it works fine. However, if while editing the unit test, I press Ctrl-F6 (Test File), the test never starts and the status bar shows "myproject (test)" and a progress bar that never moves. If I save the file, then press Ctrl-F6, it works. But, if I don't explicitly save the file, it will hang every time. I'm attaching a thread dump taken when the test is hung.
It's not a good idea to call: IndexingManager.refreshIndexAndWait (wait until scan task finishes) from: IndexingManager.runProtected which blocks scans.
The project may be Maven-based, but the stack trace shows a unit test running in Compile on Save mode using Ant. (In reply to comment #1) > It's not a good idea to call: > IndexingManager.refreshIndexAndWait (wait until scan task finishes) > from: > IndexingManager.runProtected which blocks scans. How can this be avoided? The whole Ant process is wrapped in runProtected.
Reassigning for evaluation; unclear if bug is actually in BuildArtifactMapperImpl.ensureBuilt.
Possibly a duplicate of bug #211005; can this still be reproduced in dev builds? (I do not think I ever managed to reproduce it myself.)
I cannot reproduce it with the latest dev build (201205070400).
Then guessing it is a duplicate. *** This bug has been marked as a duplicate of bug 211005 ***