Notepad++ stucks on start
Notepad++ freezes on start. I guess it happens due to unavailable files previously opened.
Is there an option of some timeout trying open files?
@alan-kilborn because some files was opened via a network and it’s unavailable now.
If I delete that file from %AppData%\Notepad++\session.xml the problem instantly disappears.
So Notepad++ needs timeout option that will check availability of files for estimated time.
In my experience, unavailable files from the last session will not prevent N++ from opening after a “reasonable” amount of time. However, the files will be removed from the session that is opened.
@alan-kilborn I have other expreince now.
Do you need video proof?
Well. How to fix that problem then?
The problem is probably for files in network shares.
Notepad++ tries to open a file which its path refers to a network share, Windows tries to reconnect with the shared folder and if the shared server is not accessible, the networking timeout is long until the file open fails. Since Notepad++ is single threaded timeouts for multiple files (mainly on different shares) can accumulate into a very long delay.
Notepad++ does not know if a path refers to a local file or to a network share so it can’t really do anything about it.
The only solution I am aware of is to give up the “Remember current session” and let Notepad++ open empty every time.