-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Notepad++ not responding state when network file is disconnected #8055
Comments
This issue creates lots of suffering if you work lots on different enviroments.. Please Fix it... Thank you! |
Until there is a fix, a quick workaround is to delete %APPDATA%/Notepad++/session.xml. However, this will also delete all the information regarding any other files that were open in other tabs. To prevent that, you might edit session.xml instead of deleting it and remove only problematic "File" elements with paths leading to disconnected network drive. After quick analysis, Microsoft's Here's a link to my Microsoft's report: https://aka.ms/AAgz0ej It seems this function relies heavily on how Windows handles network drives. When you use Windows file explorer and try to open a network drive shortly after it's disconnected, explorer itself will freeze for some time. Eventually, when it fails and there is an error message displayed, explorer and this function both start to work correctly. I don't think Microsoft is going to change it, so maybe we should use some other function, instead of |
Came here to open this exact issue. I can confirm that this is also happening for version 8.6.2. |
possible workarounds:
I am wondering if a simple replacement by a WIN32 equivalent (e.g. GetFileAttributes, FindFirstFile, CreateFile ...) of that Windows shell SHLWAPI could help. Personally, I am a bit skeptical that just that simple func swapping would work. Funcs like GetFileAttributes or PathFileExists are just synchronous, that's it. Even using of the asynchronous IO with the help of CreateFile & FILE_FLAG_OVERLAPPED cannot help (you can then use asynchronous ReadFile/WriteFile WINAPI IO on the file handle created by such CreateFile, but the CreateFile call itself is still synchronous!) I have no simple and clean solution here, sorry.
|
Description of the Issue
Notepad++ not responding state when network file is opened and the network location is no longer available
Steps to Reproduce the Issue
Expected Behavior
A notification that the network drive is no longer available. A faster response.
Actual Behavior
Notepad++ went to not responding state.
Debug Information
The text was updated successfully, but these errors were encountered: