[Version 8.1] Impossible to save a temporary file when a directory was selected when saving another temporary file
-
@dany-isenguerre Hello, sorry to spam.
I found a way to systematically produce the bug on my current session.
I save a temporary file
In the dialog, I change (or not) the file name.
As soon as I change the directory of the top hierarchical navigation (Windows 10), C:\SVN\trunk\VSS\Product\Generic, the bug appears. My only escape then is to close the dialog.
But I I use the left navigation tree when the dialog opens, it works.
This is strange because you use the top hierarchical navigation too in your checks. I’ll investigate more.
Yours,
Dany
-
Hello all,
I found a way to reproduce the bug systematically on my computer
When I create a new file and paste the clipboard in it, not saving it
If this is the first file I want to save since I opened Notepad++, it works. In the saving dialog, I can navigate using the top hierarchy and the left tree, change/select the name and save the file.
If there are other previously saved files, if I first go to one of these files and save it. When I come back to my temporary file I want to save now, the default directory changed to the existing file directory I just saved.
In that case, if I use to top hierarchy to navigate, the bug appears (note: these directories use SVN and Tortoise and are 7 or 8 levels deep, would it be related ?), I can’t change the file name anymore and the “save” button is no more responding.
Could you try ?
I’ll check for Tortoise and directories depth.
Yours,
Dany
-
@dany-isenguerre said in [Version 8.1] Impossible to save a temporary file when a directory was selected when saving another temporary file:
Could you try ?
My directory structure:
C:\users\peter.jones\Downloads\TempData\nppCommunity\FolderForFirstFile\ C:\users\peter.jones\Downloads\TempData\nppCommunity\FolderForSecondFile\one\two\three\four\five\six\seven\
My steps:
- Create file with text
- Save in
FolderForFirstFile\
asalpha.txt
- Create a new file (
new 1
) - Paste clipboard into the
new 1
tab - Go to
alpha.txt
tab, edit, and save - Switch to
new 1
tab` - Save unsaved changes:
- navigate to
FolderForSecondFile\one\two\three\four\five\six\seven
using the top bar to go up to the parentnppCommunity\
directory, then use the tree view to dig down into...\seven\
- click in File Name box
- successfully type
beta.txt
- click save
- file saves correctly
- navigate to
I cannot replicate your problem.
-
I am having the same bug, except mine occurs randomly when I try to save any temporary file that was created during that session. It doesn’t matter if I saved anything before that, as this can occur on the first file save.
When I go to save and choose the directory, I can’t edit the filename, backspace takes me up a directory level, and the save button does nothing (dialog stays open and nothing occurs).
If I close Notepad++ and then reopen it the problem is resolved.
This issue only started occurring after upgrading to Version 8.1.1. I am using the 64-bit version on Windows 10.
Let me know if you need any additional information to help diagnose the issue.
-
Can you show your ? menu’s Debug Info – maybe the exact version of windows, or the way you are calling Notepad++, affects it… and Debug Info gives lots of helpful info. As I showed above in my replies to the original posts, I cannot replicate the problem in v8.1-64bit with Windows 10 version 1903 (build 18362.1256).
Notepad++ v8.1 (64-bit) Build time : Jun 17 2021 - 01:56:07 Path : C:\usr\local\apps\notepad++\notepad++.exe Command Line : Admin mode : OFF Local Conf mode : ON Cloud Config : OFF OS Name : Windows 10 Enterprise (64-bit) OS Version : 1903 OS Build : 18362.1256 Current ANSI codepage : 1252 Plugins : ComparePlugin.dll ExtSettings.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConsole.dll NppConverter.dll NppEditorConfig.dll NppExec.dll NppExport.dll NppFTP.dll NppUISpy.dll PreviewHTML.dll PythonScript.dll QuickText.dll TagLEET.dll XMLTools.dll
-
@Eric-J-Katowitz / @dany-isenguerre ,
It looks like this problem has persisted into at least v8.1.1
Can one of you that’s having difficulty with saving files see if the problem persists when using v8.1.2-RC?
-
It would be nice to see a video or at least the Debug Info.
-
@PeterJones I was having this exact same issue in 8.1.1, and it continues in 8.1.2.
I am able to consistently reproduce it using the following steps.- Create a new document in Notepad++.
- Edit it.
- Press Ctrl+S.
- Change the current folder to another location (Using the “bread-crumbs” folder selection in the top of the window! This issue doesn’t happen when I browse the folders structure using the keyboard or the left-hand folders panel).
- Try to enter a new file name. Nothing is entered.
I’m happy to send a video of this in action, if needed.
OS is Windows 7, by the way.
-
@Gilad-D ,
OS is Windows 7
There was an issue #10238 created because something similar was happening in Windows Vista. @mere-human submitted a fix which has been accepted; can you confirm if this fixes it on Windows 7 as well?
To run with the latest not-yet-released build (which includes that fix), please follow the instructions at
https://github.com/notepad-plus-plus/notepad-plus-plus/wiki/Testing#using-the-current-build-version-of-notepad. -
@PeterJones
I followed the instructions and the issue seems to be resolved in that debug version.
Hopefully this fix can be integrated into the next release of NPP. -
@Gilad-D said in [Version 8.1] Impossible to save a temporary file when a directory was selected when saving another temporary file:
I followed the instructions and the issue seems to be resolved in that debug version.
Good!
Hopefully this fix can be integrated into the next release of NPP.
Yes, the code is already integrated into the main codebase, so whenever the next release occurs, that fix will be included.
-
@PeterJones Thanks!