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

Summary: Files does not refresh in project view with symlinks
Product: platform Reporter: emoranchel
Component: FilesystemsAssignee: Jaroslav Havlin <jhavlin>
Status: NEW ---    
Severity: normal CC: tstupka, tzezula
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: Windows 8 x64   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 237882    
Bug Blocks:    
Attachments: Possible fix

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:
-J-Dnb.fs.watch.symlinks=true