• Login
Community
  • Login

No Save-dialog when exiting

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 3 Posters 285 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.
  • R
    rogerbratseth
    last edited by Jul 19, 2023, 12:35 PM

    I was somewhat surprised when I didn’t get a save-dialog when exiting with unsaved text in buffer. This was when using the main exit-button in the top-right-corner. I tested using the tabs exit-button instead, and then I got the expected dialogue.
    Is this a new bug, or has it always been like this?

    Kind regards,
    Roger Bratseth

    Notepad++ v8.5.4 (64-bit)
    Build time : Jun 17 2023 - 20:42:45
    Path : C:\Program Files\notepad++\notepad++.exe
    Command Line :
    Admin mode : OFF
    Local Conf mode : OFF
    Cloud Config : OFF
    OS Name : Windows 10 Enterprise (64-bit)
    OS Version : 22H2
    OS Build : 19045.3086
    Current ANSI codepage : 1252
    Plugins :
    mimeTools (2.9)
    NppConverter (4.5)
    NppExport (0.4)
    XMLTools (3.1.1.13)

    A 1 Reply Last reply Jul 19, 2023, 12:36 PM Reply Quote 0
    • A
      Alan Kilborn @rogerbratseth
      last edited by Alan Kilborn Jul 19, 2023, 12:37 PM Jul 19, 2023, 12:36 PM

      @rogerbratseth

      If you restart Notepad++ and your unsaved data appears back again, Notepad++ is working as intended.

      Read the user manual HERE .

      R 1 Reply Last reply Jul 19, 2023, 12:47 PM Reply Quote 2
      • R
        rogerbratseth @Alan Kilborn
        last edited by rogerbratseth Jul 19, 2023, 12:52 PM Jul 19, 2023, 12:47 PM

        @Alan-Kilborn That is the problem, unsaved data does not appear back again, and is lost. Seems the ‘session snapshot and periodic backup’ function isn’t working properly. I can create new files in the backup path.
        When I uncheck ‘Enable session snapshot and periodic backup’ it works as expected.

        If I create a second document, the periodic backup works as expected. I don’t lose data.

        M 1 Reply Last reply Jul 19, 2023, 4:42 PM Reply Quote 0
        • M
          mkupper @rogerbratseth
          last edited by Jul 19, 2023, 4:42 PM

          @rogerbratseth said in No Save-dialog when exiting:

          When I uncheck ‘Enable session snapshot and periodic backup’ it works as expected.

          That seems to be a key element in reproducing the issue. I tried to reproduce what you reported but was not successful. You will need to experiment to see if you can figure out if and how others can reproduce the issue.

          Here is what I tried:

          Remember current session for next launch and Enable session snapshot and periodic backup are both enabled by default. The default is to back up every 7 seconds.

          I did a test where I changed the backup interval from 7 to 600 seconds, close exit Notepad++, restart Notepad++, Ctrl-N to open a new tab, type some garbage in the new tab and immediately closed. When I restarted Notepad++ the new tab with my garbage was present.

          If I turn off the Enable session snapshot and periodic backup option an retry the test then I’m prompted with

          ---------------------------
          Save
          ---------------------------
          Save file "new 1" ?
          ---------------------------
          Yes   No   Cancel   
          ---------------------------
          

          when I try to exit Notepad++. Apparently when Enable session snapshot and periodic backup is enabled it’s also doing a silent flush/save when I exit Notepad++ and not waiting for the 600 second save interval to roll around.

          If I turn Remember current session for next launch off then it it also turns off and grays out the Enable session snapshot and periodic backup part. I’m prompted to save my new tabs when I try to exit.

          The Backup section of Preferences also has a Backup on save section. It defaults to None. I did not experiment with this.

          R 1 Reply Last reply Jul 20, 2023, 12:25 PM Reply Quote 4
          • R
            rogerbratseth @mkupper
            last edited by rogerbratseth Jul 20, 2023, 12:26 PM Jul 20, 2023, 12:25 PM

            @mkupper Thanks for experimenting. I have done the same here at my end, as I did yesterday, and I’m not able to reproduce what I experienced yesterday. I suspect it can be related to us using virtual desktops at the office, and the user-folder needs to be copied from somewhere everytime you create a new session. The backup might have been overwritten from central storage when syncing?

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