Lost session
-
I have Notepad++ 7.9, and I’ve been using it with several unsaved files open in tabs.
I did not update the software.
However, there has been a Windows Update which rebooted my PC.
On reboot, the only files with a recent timestamp are:
config.xml session.xml
Basically, the session file has no items.
However, all my unsaved files are in the backup subdir.So obviously something went wrong…
Since there are quite a few of these files in the backup subdir, is there a way to auto-update the session.xml file with references to the backed up files?
I did not “save session” previously, so I can’t restore it.
Can a session be saved automatically like the files in the backup dir?Thanks
-
v7.9 is from 2020. v8.7.5 is the official “stable” version (the one that shows up when you check for updates), and v8.7.8 is slated be released this week, so you’re rather out-of-date in your version.
In v8.6.5 from March 2024, there was a fix which might have prevented your loss of session.
Can a session be saved automatically like the files in the backup dir?
That’s not the way it was implemented in v8.6.5, but a more-recent version work better for you than the ancient version you are using.
If you haven’t updated in nearly 5 years, I’m not sure how you would expect to see any new features, even if they were added as a result of your request, unless you are now willing to update Notepad++ more frequently. Your copy is actually old enough that you’re lucky it’s just your session file that was lost; a common problem back then was that after a Windows crash, entire files were replaced with NULL bytes instead of the actual bytes of the file. I highly recommend updating to at least v8.7.5 as soon as possible, to get all the stability and security fixes, along with a plethora of feature improvements from the last half-decade.
-
@Vieri-Di-Paola said in Lost session:
However, there has been a Windows Update which rebooted my PC.
That was probably the old infamous issue with emptying the N++ session-file due to the Windows reboots (fixed in N++ v8.4.7+, point No.1).
-
Thank you both very much!
Updated to v8.7.5.
Copied backup dir content to another folder, and opened that as “workplace folder”.
I can now access my unsaved data, review it, delete it, etc.
Once done I’ll clear the backup dir (making sure there’s no unsaved data in the tabs) and get rid of my workplace folder (or maybe not).Thanks
-
@Vieri-Di-Paola said:
…or maybe not
It seems like a common sense new way of working for you would be to not keep working with “unsaved” data. But hey, do what you think is best!