Auto-recovery of saved and unsaved files not working
-
Until a couple of months ago, Npp was by far my favorite program, because it was so rock-solidly reliable, and every time I started Npp, it came up looking just the way it was last time I used it (all tabs present and correct, whether I had specifically saved them or not. However, when new updates are advertised, I install them as a matter of course, which turns out to be an error. Now, the auto-recovery of files has intermittently stopped working, and every two or three times I start Npp, all of my tabs have disappeared, and I have to restore them manually from the backup folder shown in …
Settings/Preferences/Backup
There are a lot of files in the directory, but not all of them get restored, even when it is working as desired. There must be some sort of marker on the files that tells Npp which ones to reload, but I don’t know what it is, so it involves looking at a lot of files and manually deciding (and trying to remember) which ones to reload - and suddenly, Npp is no longer the friend it used to be.
I have two boxes checked - “Remember current session for next launch” and also
“Enable session snapshot and periodic backup”, with the period set to 7 seconds.I see on the forums that other people are having this problem too, so can anybody tell me what revision of Npp does not have this bug, so that I can downgrade to it?
Advance thanks.
-
welcome to the notepad++ community, @Mike-Collins
i’m sorry to hear that.
can anybody tell me what revision of Npp does not have this bug, so that I can downgrade to it?
there haven’t been major changes to the session handling lately, as seen at the commit list >>> here <<<, so i don’t really know which version would work better.
(there are some slight changes if you use split left/right views, but they should not cause this, as they only concern cases where all files of the left view are closed, and only right views are kept open)
one thing you could try is to test a clean 7.7 portable version, in addition to your installed one, for a while, to verify, if this would do the same.
-
download the notepad++ 7.7 portable version from >>> here <<<.
(the portable version does not require any installation and runs completely independent and isolated from your installed version. all custom settings, as well as any stuff you might want to try at the portable version, will not modify your installed version) -
extract
npp.7.7.bin.zip
to your desktop. -
important note: make sure to close all instances of notepad++ that might be running, before starting the portable version at the next step, to make sure you are using this portable version.
-
open the extracted
npp.7.7.bin
folder and start this portable version by double-clicking onnotepad++.exe
inside this folder.
(note: notepad++.exe will just be seen as notepad++, if you have enabled to hide all known file extensions at your explorer settings) -
use it occasionally with many open saved and unsaved files and see what happens.
I have two boxes checked - “Remember current session for next launch” and also
“Enable session snapshot and periodic backup”, with the period set to 7 seconds.that’s how it should be, nothing wrong at your settings.
There are a lot of files in the directory, but not all of them get restored, even when it is working as desired. There must be some sort of marker on the files that tells Npp which ones to reload
the triggers i know so far, are also valid and reproducible for older versions:
- files on a nas or network drive, that runs into a timeout (e.g. prolonged wakeup time after a hdd deep sleep), will disappear.
- files on usb drives, changing drive letters or availability, do the same.
- on all updated windows 10 releases, an automatic windows update reboot while notepad++ is still open, will no longer wait for notepad++ (or other applications) to end gracefully, but kill the tasks prematurely, which will either cause the session never to be written, resulting in having an older session with different files that were open at an older state, or session corruption, which usually will result in a blank notepad++ when reopening.
it would be cool, if you have time to see what has caused it for you, or if you really find a version that doesn’t do that, so that we can have a specific look at the code changes.
(the portable zip versions are ideal for such tests, as they allow you to have as many different simultaneous versions as you want, without influencing another)many thanks for your help and best regards.
-
-
Hi @Mike-Collins , @Meta-Chuh ,
Mike,
Do you have some plugins installed?
If yes, could you please write which are they? And try testing without any plugins if you can.I’m starting to think that if you have plugins that are not specifically rebuilt for Notepad++ 7.7 they might introduce hidden errors that manifest in all kinds of weird behavior.
BR
-
- list item
-
@Meta-Chuh This problem started so suddenly after such a long time (10 years?) of working perfectly, that I was pretty sure it was due to an update - but I hear what you say. Thanks for the advice about Npp.7.7 portable. I’ll give that a go.
My PC only has the C: drive - no remote drives on USB or an any network. It’s a lap-top, running Windows-7 Pro.
If I find any good, pertinent information about it, I’ll come back and tell you.
Many thanks for your time.
-
@pnedev - I do have some plugins. I have Compare, DSpellCheck, and then 3 that are installed as default, though I never use them - Mime tools, Converter, and NppExport.
I have only ever loaded plugins with the Plugins Admin, which comes with Npp. Compare is the only one I loaded - the others came with Npp. At one time, I was using the hex editor frequently, but it kept disappearing every time I had an upgrade to the program, and I haven’t used it for a couple of years now.
“I’m starting to think that if you have plugins that are not specifically rebuilt for Notepad++ 7.7”
My version is V7.6.6 (32 bit) -
@Mike-Collins said:
My version is V7.6.6 (32 bit)
Ou, I came to the impression that you started having these issues after updating to Notepad++ v7.7.
Then my assumption is wrong.
Anyway, it is worth trying without any plugins, just in case.BR