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 270916

Summary: Renaming a folder causes contents to no longer be updated in project explorer.
Product: projects Reporter: Dev-Marc
Component: Generic Projects UIAssignee: Tomas Stupka <tstupka>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 8.2   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description Dev-Marc 2017-06-20 12:05:56 UTC
Environment Details:

Product Version: NetBeans IDE 8.2 (Build 201609300101) 
Updates: NetBeans IDE is updated to version NetBeans 8.2 Patch 2 
Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13 
Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13 
System: Mac OS X version 10.11.6 running on x86_64; UTF-8; de_DE (nb) 


Observed behavior:

When a folder is renamed new files and deleted files don’t appear until NetBeans is restarted. In the new file dialogue (any) the Finish and Cancel button glitch (flicker) around as well as the namespace box. New files are not being colored (using git) until ide is restarted.
This behavior continuous until the original folder is renamed back to its original name.


Expected behavior:

After a folder is renamed its contents should be usable as normal.


Steps to reproduce:

>Open an existing Project or create a new one.
>Create folder.
>Create files and/or folders in folder.
>Rename folder by either the Rename… or Refractor->Rename… dialog, or by changing the filename manually in the systems file explorer while NetBeans is closed.
>Create a new file or folder with the New… dialog.
>! See that namespace box and buttons flicker.
>Try to hit Finish at the right time.
>! File opens up but doesn’t show up in project explorer.
>Restart NetBeans.
>! See that the new file is displayed now.
> Delete that new file.
>! See that the file is still displayed
> Rename original folder back to its original name.
> Create new file/folder in original folder.
>! See that the new file/folder is now showing in the project explorer and the buttons no longer flicker


Workaround:

The only workaround I found so far is to delete the folder with its contents completely and create a new folder with the desired name.