#4277 File cannot be saved if File Status Auto-Detection is disabled and read only status changes outside of npp

All
open
nobody
None
5
2013-04-16
2013-04-16
michalma
No

This happens when File Status Auto-Detection is disabled. This is necessary when working with slow network shares.

Repro:
Open read only file (stored in Perforce, TFS etc.)
Outside of npp mark it as read-write - manually or by executing source control command
Back in npp
Reload file from disk

Expected:
file is marked as RW on the tab (blue icon instead of grey)
Actual:
File status is not refreshed

Clear read only flag from npp
Write something
Try to save

Expected:
Success
Actual:
Complains that file is used by another program

It looks like reloading file from disk messes up stuff. If I skip that step and just mark file as RW then it is fine. However it can be frustrating if forgotten and using perforce or similar.

Discussion