Community
    • 登入

    Session Manager Error every time Notepad++ is autosaving

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

      Hi guys, hope someone can help me out with this because it’s driving me crazy.

      So there was a storm earlier, I lost my power and PC went off of course. After restarting my PC I noticed an error after saving something new in my Notepad++ session.

      I’ll type something new in, after a couple seconds Notepad++ will autosave it then I immediately get a Session Manager Error.

      This is the error: NppPlugin::prp::updateGlobalFromSession: Error 4 saving the global properties file. Error 1224:

      Hope you guys can help me figure this out. On the bright side it looks like Notepad++ is saving new text but this error is popping up every single time right after so I’d like to fix this.

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

        @Steve

        I never used session manager plugin but my first thought would be that a file, written by this
        plugin has been corrupted. If you post your debug info, which is available via the last menu item, the ? menu, we could find out where to look for such a file.

        1 條回覆 最後回覆 回覆 引用 0
        • SteveS
          Steve
          最後由 編輯

          @Ekopalypse

          Hi, nice to see someone offering to help on this issue.

          Here is the debug info below.

          Notepad++ v7.5.3 (32-bit)
          Build time : Dec 5 2017 - 10:45:46
          Path : C:\Program Files (x86)\Notepad++\notepad++.exe
          Admin mode : OFF
          Local Conf mode : OFF
          OS : Windows 10 (64-bit)
          Plugins : AutoSave.dll autosave2.dll DSpellCheck.dll HexEditor.dll mimeTools.dll NppConverter.dll NppExport.dll PluginManager.dll SessionMgr.dll

          Thank you very much for your time trying to help me with this.

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

            @Steve

            as your local conf mode is off, configuration files should be available in
            your APPDATA directory. Meaning, you should see a directory
            %APPDATA%\notepad++\plugins\config
            which contains a file used by session manager plugin.
            What the name of such a file is, I don’t know but I would assume that once you see the content
            of the config directory you can guess which file it is.
            My first try would be

            1. renaming that file
            2. start npp
            3. check if the file has been recreated and if error is gone.
              if this doesn’t help post the content of the config and the plugins directory from the appdata directory.
            1 條回覆 最後回覆 回覆 引用 3
            • SteveS
              Steve
              最後由 Steve 編輯

              I really don’t want to mess with the wrong file and break my notepad++ so I’ll just show you what it looks like in those directories.

              Screenshot: https://imgur.com/T8hDA4V

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

                @Steve

                Except for autosave.ini and SessionMgr directory I know that the others are NOT part of the session manager plugin and used by other plugins.
                So. because of autosave functionality I would give it a first try to rename AutoSave.ini to AutoSave.txt and restart npp.
                If this doesn’t help, I would rename the SessionMgr directory to SessionMgr2 and give it another try.

                1 條回覆 最後回覆 回覆 引用 1
                • SteveS
                  Steve
                  最後由 編輯

                  What!

                  YOU DID IT!

                  Renaming the SessionMgr folder to SessionMgr2 actually fixed it! No more errors!

                  How is that such a simple change solved this problem? I don’t understand. Because the error was saying something about GlobalProperties and I’m thinking there is some kind of file that is broken and there’s no way to replace it because it’s unique to my notepad++ session but a simple folder rename fixed it?! That’s amazing, you’re a genius, can’t thank you enough.

                  But I just can’t help but to think I’m missing something, I’m worried there might be some broken/corrupted file somewhere and worried at the thought of that broken file breaking other things in the future. Because I have a lot of important saved information in my Notepad++ files like usernames/passwords, todo lists, etc

                  Thank you very much Ekopalypse. The only one coming to help me immediately solved my problem. If you have a paypal I’d like to send you a small donation just as thanks for that.

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

                    @Steve said:

                    How is that such a simple change solved this problem?

                    Not so hard to understand. There was something “corrupt” in the existing file(s); removing them forced the plugin to see that they were gone and recreating default config files (which, of course work just fine).

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

                      @Steve - my pleasure and I can only second what @Alan-Kilborn said

                      1 條回覆 最後回覆 回覆 引用 3
                      • Steven GlickS
                        Steven Glick
                        最後由 編輯

                        @Ekopalypse said in Session Manager Error every time Notepad++ is autosaving:

                        rename the SessionMgr directory to SessionMgr2

                        This problem has been bugging me for months.

                        As suggested here, I renamed the SessionMgr directory to SessionMgr2 and then restarted NPP. The problem was gone!

                        Thanks.

                        1 條回覆 最後回覆 回覆 引用 1
                        • Arnaldo CavalcantiA
                          Arnaldo Cavalcanti
                          最後由 編輯

                          Remove the file “C:\Users<User>\AppData\Roaming\Notepad++\plugins\Config\SessionMgr\global.xml” and restart the Notepad++

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