You are here

Notepad++ 5.6.8 Rev 2 locks out customizations

7 posts / 0 new
Last post
sidtheduck
Offline
Last seen: 14 years 6 months ago
Joined: 2010-04-01 16:26
Notepad++ 5.6.8 Rev 2 locks out customizations

I recently installed the Notepad++ 5.6.8 Rev 2 portable version and have the FTP_synchronize and Functionlist plugins installed. I've noticed that on occasion (if closing Notepad++ and re-opening quickly) that the customizations get locked out and I lose syntax highlighting, my FTP accounts, and my custom function searches. They stay that way no matter if I close Notepad++ and restart again.

However, if I close out of everything, stop the USB flash drive, re-start the flash drive, and start Notepad++ up again, the FTP and Functionlist customizations are still there, but the syntax highlighting and configuration settings are not (they have been re-created from the .model. versions). I've updated the .model. versions of styles and config so that this is not an issue right now, but I understand this can be an issue during upgrade later on (these files will be overwritten).

Anyone else having this same issue? It seems to happen with or without the 2 addon plugins that I'm using, but I haven't tried it without the default plugins (Plugin Manager, Light Explorer, Spell Checker, etc.).

Bruce Pascoe
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-15 16:14
...

If you quit Notepad++ Portable and then try to run it again too soon (before Notepad++Portable.exe completely terminates), it seems to have a tendency to lose settings. This is a long-standing issue with N++ Portable and really should be fixed.

John T. Haller
John T. Haller's picture
Offline
Last seen: 11 hours 36 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Few Seconds

Don't restart an app for a few seconds after you close it. Notepad++ itself needs to shut down, write its settings out and then the launcher moves the files back to data. It waits around 2 seconds to ensure it is not auto-restarting due to the plugin manager. Short answer, don't close and then immediately reopen an app.

Sometimes, the impossible can become possible, if you're awesome!

sidtheduck
Offline
Last seen: 14 years 6 months ago
Joined: 2010-04-01 16:26
Thanks.

Thanks for the reply. Makes total sense.

One thing in your response makes me wonder, however, does the auto-restart from the plugin manager cause the settings to be lost? I haven't yet updated anything from the plugin manager, so I haven't run across this issue, but wouldn't this be a similar situation to shutting down and immediately reopening? Just curious.

c(.)

Bruce Pascoe
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-15 16:14
Technically

Any launcher that has to move files or registry stuff back and forth shouldn't allow a second instance to be started until the first launcher terminates. Adding this check would alleviate so many headaches. Trust me, it's far too easy to open another instance too soon, especially when you're using something like eXpresso or PFA where if you close one file and then immediately open another, whammo, instant data loss.

John T. Haller
John T. Haller's picture
Offline
Last seen: 11 hours 36 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
It Does

It does check about one closing first. But if you click close and then restart at the right time, it gets messy.

Sometimes, the impossible can become possible, if you're awesome!

Bruce Pascoe
Offline
Last seen: 12 years 9 months ago
Joined: 2006-01-15 16:14
...

Here's how I would do it: If Notepad++Portable.exe is still running, then check for an instance of the Notepad++ window class, and if none exists then show the user an error and block the second instance (since that means N++ itself has closed but you're still cleaning up). If the launcher has already terminated, then by definition you're fully cleaned up and it should be safe to restart.

Log in or register to post comments