Community
    • Login

    [Version 8.1] Impossible to save a temporary file when a directory was selected when saving another temporary file

    Scheduled Pinned Locked Moved General Discussion
    18 Posts 5 Posters 1.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dany isenguerreD
      dany isenguerre
      last edited by

      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

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @dany isenguerre
        last edited by

        @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:

        1. Create file with text
        2. Save in FolderForFirstFile\ as alpha.txt
        3. Create a new file (new 1)
        4. Paste clipboard into the new 1 tab
        5. Go to alpha.txt tab, edit, and save
        6. Switch to new 1 tab`
        7. Save unsaved changes:
          • navigate to FolderForSecondFile\one\two\three\four\five\six\seven using the top bar to go up to the parent nppCommunity\ 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

        I cannot replicate your problem.

        1 Reply Last reply Reply Quote 0
        • Eric J. KatowitzE
          Eric J. Katowitz
          last edited by

          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.

          PeterJonesP 1 Reply Last reply Reply Quote 0
          • PeterJonesP
            PeterJones @Eric J. Katowitz
            last edited by PeterJones

            @Eric-J-Katowitz ,

            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 
            
            PeterJonesP 1 Reply Last reply Reply Quote 1
            • PeterJonesP
              PeterJones @PeterJones
              last edited by

              @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?

              Gilad DG 1 Reply Last reply Reply Quote 0
              • mere-humanM
                mere-human
                last edited by

                It would be nice to see a video or at least the Debug Info.

                1 Reply Last reply Reply Quote 1
                • Gilad DG
                  Gilad D @PeterJones
                  last edited by

                  @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.
                  PeterJonesP 1 Reply Last reply Reply Quote 0
                  • PeterJonesP
                    PeterJones @Gilad D
                    last edited by

                    @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.

                    Gilad DG 1 Reply Last reply Reply Quote 0
                    • Gilad DG
                      Gilad D @PeterJones
                      last edited by

                      @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.

                      PeterJonesP 1 Reply Last reply Reply Quote 2
                      • PeterJonesP
                        PeterJones @Gilad D
                        last edited by

                        @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.

                        Gilad DG 1 Reply Last reply Reply Quote 0
                        • Gilad DG
                          Gilad D @PeterJones
                          last edited by

                          @PeterJones Thanks!

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post
                          The Community of users of the Notepad++ text editor.
                          Powered by NodeBB | Contributors