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.
I have several java source files inside a mounted local directory. After an external change to these files and a "Compile" or "Compile all" invocation nothing happens. The output window tells, that everything is up to date. The ide performs recompilation only after the filesystem refresh was activated.
I tested it on NB 3.4-beta 3 and it works for me. I tested it on MemoryView. I removed class files manually and immediately execute compile from IDE. It works fine and compiled MemoryView. Closing as woksforme. Please reopen if you have reproducible test case. Thanks.
Try the following: 1. Create a simple class with just a System.out.println() in it. 2. Make sure that the filesystem refresh interval is long enough (like 15000). 3. Start an external editor and load the testclass. Now try to modify the class file using the external editor and start the file immediately. Modify the println- statement each time to see a difference. I assume that NB will compile the file only if the action of the refresh interval has marked the file as changed. I must assume that this is not a real world scenario and may occurr only in rare circumstances. Nevertheless the file is out of date.
Thanks for explanation. I was able to reproduce it.
Fixed in trunk. File is now refreshed before up-to-date check is executed.
I think this up-to-date check should not be performed only for the file being executed but for all files added to the project too. Because Netbeans already recompiles every project file for which it thinks it is necessary (which is broken in 332 because of this bug).
I am sorry, but I did not get it. After the fix, if you issue Compile All on projects, every file is checked if is it up-to-date. This works OK now, so I don't see where is the problem.
Sorry for your confusion, the blame is on me :-). I was not aware that the fix works with Compile all too.
Nico, can you verify the fix? Thanks
Verified
Resolved for 3.4.x or earlier, no new info since then -> closing.