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 270561 - NetBeans / git does not consistently detect externally modified files
Summary: NetBeans / git does not consistently detect externally modified files
Status: NEW
Alias: None
Product: ide
Classification: Unclassified
Component: Code (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ide
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-04 13:48 UTC by mclaborn
Modified: 2017-07-26 18:37 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (107.57 KB, text/plain)
2017-05-04 13:48 UTC, mclaborn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2017-05-04 13:48:19 UTC
Product Version = NetBeans IDE 8.2 (Build 201609300101)
Operating System = Linux version 4.4.0-75-generic running on amd64
Java; VM; Vendor = 1.8.0_112
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.112-b15

Reproducibility: Happens sometimes, but not always


Fairly frequently, I have a code generation process that runs outside of NetBeans that changes some of my Java source files, in projects that use git as the source control. Most of the time when I use this process, the externally updated files are not detected by NetBeans.  When I do a git -> show changes, the changed files are not listed. Same with a commit. The only way I've found to cause NetBeans to realize that the file has changed is to open the file and make an innocuous change in the source code.

This seems like a bug, as sometimes the change IS detected. 

PS - Is there a way to force NetBeans to scan the source files or something looking for external changes?
Comment 1 mclaborn 2017-05-04 13:48:23 UTC
Created attachment 164246 [details]
IDE log
Comment 2 mclaborn 2017-07-26 18:37:49 UTC
This is still a problem. 

Interestingly, when this happens and I open a file that I know was changed by the external process, the changed markers show up in the left margin (green) but the tab title color does not change to blue (changed with respect to source control).