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.

Bug 116316 - [60cat] External file changes sometimes not picked up automatically by IDE
Summary: [60cat] External file changes sometimes not picked up automatically by IDE
Status: RESOLVED DUPLICATE of bug 109900
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 6.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: Milos Kleint
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-21 14:17 UTC by host
Modified: 2007-10-01 16:38 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
This shows the discrepancy between editor and tree (86.94 KB, application/octet-stream)
2007-10-01 13:11 UTC, host
Details

Note You need to log in before you can comment on or make changes to this bug.
Description host 2007-09-21 14:17:24 UTC
[ 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.
Comment 1 Jesse Glick 2007-09-26 18:47:22 UTC
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.
Comment 2 host 2007-09-26 18:54:13 UTC
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. ;-)
Comment 3 Jesse Glick 2007-09-26 18:59:11 UTC
Need exact steps to reproduce such a problem (which would be a DEFECT).
Comment 4 host 2007-09-26 19:18:08 UTC
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.
Comment 5 Jesse Glick 2007-09-26 19:37:29 UTC
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?
Comment 6 host 2007-10-01 13:11:41 UTC
Created attachment 49880 [details]
This shows the discrepancy between editor and tree
Comment 7 host 2007-10-01 13:15:51 UTC
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.
Comment 8 Milos Kleint 2007-10-01 13:29:52 UTC
what is the project type of the source code that shows this wrong behavior? 
Comment 9 host 2007-10-01 14:17:04 UTC
I created the project with "New Project..." -> "Java" -> "Java Project with Existing Ant Script"
Comment 10 Jesse Glick 2007-10-01 16:35:22 UTC
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.
Comment 11 Jesse Glick 2007-10-01 16:38:46 UTC
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 ***