Community
    • 登入

    Session lost after Windows 10 update, recovery options?

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    10 貼文 5 Posters 550 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Career ScarceC
      Career Scarce
      最後由 編輯

      Windows ran an update while my system was sleeping. N++ has always come up fine after updates so I just started it. It opened to a new session. I closed it then checked AppData\Roaming\Notepad++ and found session.xml and config.xml had recent time stamps.
      Are there any recovery options for my previous session?
      Are there any suggestions about how to prevent this? (Other than the obvious “be a better sysadmin,” #humor )

      EkopalypseE 1 條回覆 最後回覆 回覆 引用 0
      • EkopalypseE
        Ekopalypse @Career Scarce
        最後由 編輯

        @Career-Scarce

        A session configuration is written when you exit Npp.
        So after you started and closed Npp, it overwrote these settings. If you have used temporary files within the session, you can check the backup directory to see if they still exist.

        Career ScarceC 1 條回覆 最後回覆 回覆 引用 1
        • Career ScarceC
          Career Scarce
          最後由 編輯

          So it sounds like Window’s winning streak of well-behaved shut-downs has been broken. I’ll just have to be more vigilant when they announce the next one.
          Thanks

          1 條回覆 最後回覆 回覆 引用 0
          • Career ScarceC
            Career Scarce @Ekopalypse
            最後由 編輯

            @Ekopalypse All my open files were saved so nothing of note in the recent directory, thanks for the heads-up.
            And AppData\Roaming\Notepad++\session.XML is the only copy of the session, correct?
            Much appreciated

            EkopalypseE 1 條回覆 最後回覆 回覆 引用 0
            • EkopalypseE
              Ekopalypse @Career Scarce
              最後由 Ekopalypse 編輯

              @Career-Scarce

              If it is an installed version, then yes, that is the one being used, otherwise it would be the one from the directory where notepad++.exe is.

              1 條回覆 最後回覆 回覆 引用 0
              • mere-humanM
                mere-human
                最後由 編輯

                Maybe, periodic backup might help you in the future.
                Take a look at the options in Preferences > Backup.

                PeterJonesP 1 條回覆 最後回覆 回覆 引用 0
                • PeterJonesP
                  PeterJones @mere-human
                  最後由 編輯

                  @mere-human said in Session lost after Windows 10 update, recovery options?:

                  Maybe, periodic backup might help you in the future.
                  Take a look at the options in Preferences > Backup.

                  periodic backup applies only to files that are being edited in the editor, not to the config files. The OP’s complaint is that the session information was lost.

                  Alan KilbornA 1 條回覆 最後回覆 回覆 引用 1
                  • Alan KilbornA
                    Alan Kilborn @PeterJones
                    最後由 編輯

                    @PeterJones said in Session lost after Windows 10 update, recovery options?:

                    The OP’s complaint is that the session information was lost.

                    Well, probably that was one aspect of it.
                    The actual “data loss” was probably more important, which might be what @mere-human was meaning…getting the actual “files” back.
                    But of course you need the “pointers” to the file (session.xml) to know you have all of them.

                    EkopalypseE 1 條回覆 最後回覆 回覆 引用 2
                    • EkopalypseE
                      Ekopalypse @Alan Kilborn
                      最後由 編輯

                      @Alan-Kilborn said in Session lost after Windows 10 update, recovery options?:

                      What data loss are you referring to?

                      Alan KilbornA 1 條回覆 最後回覆 回覆 引用 1
                      • Alan KilbornA
                        Alan Kilborn @Ekopalypse
                        最後由 編輯

                        @Ekopalypse said in Session lost after Windows 10 update, recovery options?:

                        What data loss are you referring to?

                        Well, OP said he lost his existing session in favor of some presumably empty one.
                        The presumption is that he had a session of a bunch of unsaved, unnamed, temporary files.
                        In such a case, which is one that I do not operate under myself, haven’t you lost track of all of your “files”?

                        As you said, you might find them in the backup directory…

                        Ah, okay, I later see OP said:

                        All my open files were saved

                        So that’s a good thing.
                        But this is probably not how most people that ask such a question as the OP’s original actually work.

                        1 條回覆 最後回覆 回覆 引用 0
                        • 第一個貼文
                          最後的貼文
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors