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 225558 - Files does not refresh in project view with symlinks
Summary: Files does not refresh in project view with symlinks
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.2
Hardware: PC Windows 8 x64
: P3 normal (vote)
Assignee: Jaroslav Havlin
: 212897 (view as bug list)
Depends on: 237882
  Show dependency tree
Reported: 2013-01-30 18:25 UTC by emoranchel
Modified: 2013-11-05 16:18 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:

Possible fix (8.01 KB, patch)
2013-11-05 16:17 UTC, Jaroslav Havlin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description emoranchel 2013-01-30 18:25:31 UTC
When opening a project that is stored in a symlinked folder when you update the files outside NetBeans the IDE does not update the file tree or the file contents (if a project is running).

Using NTFS file system and the mklink command

Steps to reproduce:
1. Create a new project (I used a Java Web project)
2. Close the project.
3. Create a symlink (Directory junction) to the project using a command prompt and  executing: mklink theCreatedProject newprojectfolder /J
4. Open the newprojectfolder project (junctioned folder)
5. Add a new file to the project (an html for example)
6. Netbeans does not display the new file.

- Temporary work around: close and open the project.

I suspect that the OS reports changes to the files only in the original folder not the junctions.

Is there a refresh button for this cases?
Comment 1 Jaroslav Havlin 2013-09-04 13:54:27 UTC
*** Bug 212897 has been marked as a duplicate of this bug. ***
Comment 2 Jaroslav Havlin 2013-11-01 10:30:10 UTC
> Is there a refresh button for this cases?
Main menu -> Source -> Scan for External Changes
Comment 3 Jaroslav Havlin 2013-11-05 16:17:54 UTC
Created attachment 141877 [details]
Possible fix

Patch with a possible fix for initial review.

Support for symlink watching has to be enabled by system property: