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.
[ JDK VERSION : 1.6.2 ] It would be nice to have menu entry in the (context) menus for projects to manually refresh projects view. When I am e.g. externally adding a new directory in directory that is a source directory in a NB project this change does not directly show up in the projects tree view. It would therefore be nice to have such a menu entry for projects to refresh the (view of such a) project manually.
We used to have such a menu item but removed it. It is not necessary in recent versions of NetBeans - changes on disk are picked up automatically e.g. after restoring focus to the NB main window.
Well, if the automatic refresh would function properly then ther would indeed be no need to have such a button. But since I experienced suhc issus that changes are not picked up automatically I would suggest readding this button. ...and from a UI point of view such a button would not be that disasterous. ;-)
Need exact steps to reproduce such a problem (which would be a DEFECT).
Ok, your summary is indeed much better than mine. ;-) ...and actually, it might be a Subversion problem: I have a project that is under Subversion control and have updated its Java source directories while NB was not running. During the update some new package directories where created and also some files added to already existing directories. After the update I started NB and then did perform a clean build on the project. There were some error in the build showing compilation errors for some files (so the ant script "found" the files). But when I tried to locate the files I could not find them in the tree. ...and also saw that some packages that had been checked newly did not appear. A restart of NB did NOT solve that tree problem.
Certainly a defect if this happens. I have not heard of such a problem. Possibly related to the IDE's Subversion caches, but bugs in this code should at worst affect e.g. modified badges, never the actual list of folders and files displayed in the Projects tab. The filesystems refresh code does not seem to be involved, since that does not persist anything across IDE sessions, and you claim that a restart did not solve anything. Do you have any way of reproducing from scratch? Otherwise there is no way to investigate. Are you positive you updated the same working copy as you had open in the IDE?
Created attachment 49880 [details] This shows the discrepancy between editor and tree
I cannot find the problematic points at the moment but I am SURE that this happened. If I can find them again I will post them directly to this issue. BUT what you can see is at least that the badges on the file in the tree and on the tab are not correct: the file is compilable without error and there is no error shown in the editor but an error is indicated in the file tree and the tab.
what is the project type of the source code that shows this wrong behavior?
I created the project with "New Project..." -> "Java" -> "Java Project with Existing Ant Script"
Reporter: please be sure to set the correct content type when adding an attachment. The screenshot shows issue #104665. I am not sure what this has to do with the other things reported in this issue.
Sounds like reporter is just talking about issues with CP scanning and background compilation, not with actual file refresh. *** This issue has been marked as a duplicate of 109900 ***