Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

config.xml file is overwritten every time np++ closed, even when no changes are made #4829

Open
graememeyer opened this issue Sep 7, 2018 · 2 comments

Comments

@graememeyer
Copy link

Description of the Issue

The config.xml file is overwritten every time notepad++ is closed, even if no changes are made. This can cause unnecessary alerts/triggers if using directory monitoring software.

Steps to Reproduce the Issue

  1. Check file hash of config.xml and last modified time.
  2. Open Notepad++
  3. Close Notepadd++ (without making any changes/doing anything)
  4. Check the file hash of config.xml and last modified time.

Expected Behavior

I expect that if nothing has changed, the file need not be written over.

Actual Behavior

The file is written over every time Notepad++ is closed.

Debug Information

Notepad++ v7.5.8 (32-bit)
Build time : Jul 23 2018 - 02:03:53
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : JSMinNPP.dll PluginManager.dll XMLTools.dll DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll

This is not a new issue as far as I know, I believe it has been the case for at least a year, possibly always.

@sasumner
Copy link
Contributor

sasumner commented Sep 7, 2018

I concur with the "possibly always" part. :-)

@CookiePLMonster
Copy link
Contributor

I investigated it a bit and looks like it's actually not as stupid as it seems - this file contains last file opened history, and it's being flushed/recreated every time n++ is open.

That said, it'd be nice to resolve it but with this History thing in place, I'm not 100% sure how to do it (yet).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants