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 you compile a file, file systems are not refreshed and you get the following error: java.lang.AssertionError: Could not get a represent file object from masterfs at org.apache.tools.ant.module.bridge.impl.BridgeImpl$1.run(BridgeImpl.java:243) at org.openide.util.Task.run(Task.java:136) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686) To reproduce: - create a new project (java application with main class) - compile the main class (F9) - it is successfully compiled but status of the class is not refreshed and 'build' directory doesn't appear in the Files view - when you try F9 once more the above error is printed out Probably it happens only on Windows. On Linux it works as I was said. Tested in build 20040524-1220, JDK1.4.2_04, WindowsXP.
Jesse, please reassign
Radek, I guess you removed MFS delegates for some disk drives. This seems to have broken Ant's hack to refresh all files. Same in o.n.c.actions.RefreshAllFilesystemsAction. I'm not sure what the proper solution actually is. I want some bit of safe code that will find masterfs and refresh it.
Fixed. You can't get a represented file object anyway (e.g. floppy disk isn't inserted) and then nobody can't rely on it. /cvs/core/src/org/netbeans/core/actions/RefreshAllFilesystemsAction.java,v new revision: 1.4; previous revision: 1.3 /cvs/ant/src-bridge/org/apache/tools/ant/module/bridge/impl/BridgeImpl.java, new revision: 1.16; previous revision: 1.15
Verified in build 20040526-0016.