Community
    • Login

    [Sessionmanager-Plugin] Name not shown in PluginManager & Error @ Start

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    12 Posts 3 Posters 6.8k 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.
    • Jim DaileyJ
      Jim Dailey
      last edited by

      I’m using version 1.4.2 with NPP version 6.8.3 with no issues.

      1 Reply Last reply Reply Quote 0
      • tsfgT
        tsfg
        last edited by

        thank you, Jim,
        I not quite sure since which version this behaviour, occurred in my installation. I think the issue occurred beginning at version 6.8.7 or maybe at 6.8.6.
        Maybe someone has an environment with this versions and can report the behaviour?

        1 Reply Last reply Reply Quote 0
        • Claudia FrankC
          Claudia Frank
          last edited by

          No, neither on 6.8.7 nor with 6.8.8 I do have this issue as shown here.
          I do have a local config, do you use %appdata% config?

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          • tsfgT
            tsfg
            last edited by

            Sorry for delayed reply, I had some days off.

            Interesting point. @Claudia-Frank
            How to figure out ?
            I found a Npp folder in %appdata% containing the config.xml, which is not present in the Npp-folder in the programs folder.
            Is there any possibility to switch to the local config?
            Has somebody any idea why the behaviour depends on the type of storing the config ?

            Cheers
            Henning

            Claudia FrankC 1 Reply Last reply Reply Quote 0
            • Claudia FrankC
              Claudia Frank @tsfg
              last edited by

              Hello Henning,

              a local config is identified by npp if there is a doLocalConf.xml in the install directory of npp.
              File hasn’t any content. I don’t know why this happens from time to time but it seems that there are
              certain circumstances that a appdata installation makes troubles. Unfortunattely I didn’t found the
              time yet to test what is really going on in such cases.

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0
              • tsfgT
                tsfg
                last edited by

                Hello Claudia,

                I couldn’t amend the last post…
                I found in the debug info: Local Conf mode : OFF. Which is in agreement with the non existing doLocalConf.xml in the Npp-folder.
                It seems this behaviour occurred suddenly. I am not sure if simultaneous with installing an update. I just thought waiting for the next version would solve the situation. It didn’t.

                To change to Local Confi Mode, I just create the doLocalConf.xml and copy the config-folder from %appdata% to the Npp-folder?

                Do you have some hints for me how to start, I will try to investigate and find some reasonable points for that behaviour. Form your replay I guess there are other strange behaviours you assume to be related to the config-location issue?

                Cheers
                Henning

                Claudia FrankC 1 Reply Last reply Reply Quote 0
                • Claudia FrankC
                  Claudia Frank @tsfg
                  last edited by Claudia Frank

                  Hello Henning,

                  To change to Local Confi Mode, I just create the doLocalConf.xml and copy the config-folder from %appdata% to the Npp-folder?

                  I would think so, actually I didn’t try it as I’m using npp in a portable manner always.
                  Better you download a zipped version and give it a try so you don’t mess with the current installation in case of errors.

                  Regarding the appdata installation, different users reported different strange errors which were solved once the
                  appdata notepad directory was removed/renamed. Like suddenly npp wasn’t able to open .txt files anymore or
                  style changes weren’t saved and even shortcuts weren’t working anymore.
                  I assume that actions, which are needed to be run/loaded with additional information from config files failed
                  because of … ?? privilege issues ??

                  I thought about using procmon to see what’s going on but the main problem is that you have to encounter the problem first ;-)

                  Cheers
                  Claudia

                  1 Reply Last reply Reply Quote 0
                  • tsfgT
                    tsfg
                    last edited by

                    Hello Claudia,

                    I already thought of privileges… On the other hand: why should the privileges change ?
                    This was one of the ideas I had and thought of changes in the installer at version 6.8.6 / 6.8.7.
                    But, until now, I had no detailed look to this…
                    procmon is one of the tools I had in mind… I will have a look to the installation and run.
                    Starting on my test system, to see if the issue occurs there as well.

                    Cheers
                    Henning

                    Claudia FrankC 1 Reply Last reply Reply Quote 0
                    • Claudia FrankC
                      Claudia Frank @tsfg
                      last edited by

                      Hello Henning,

                      I agree, why the heck should this happen suddenly and randomly.
                      Are files corrupt? Why? Backup/Snapshot!?
                      These files aren’t used that much. Hmm … you see … I’m fishing in troubled water.
                      Thank you for trying to find a possible issue. ;-)

                      Cheers
                      Claudia

                      1 Reply Last reply Reply Quote 0
                      • tsfgT
                        tsfg
                        last edited by

                        Hello Claudia,

                        do you have any idea what is meant by the Error 15?
                        Does this is an error code provided by Npp or by the sessionmanager-plugin, What do you think?
                        Do you know whether the author of sessionmanager is active in this board ?

                        Cheers
                        Henning

                        Claudia FrankC 1 Reply Last reply Reply Quote 0
                        • Claudia FrankC
                          Claudia Frank @tsfg
                          last edited by

                          Hello Henning,

                          Error comes from the plugin.

                          /** Loads the settings.xml file if it has not already been loaded. Creates it if
                              it doesn't exist. */
                          bool readSettingsFile()
                          {
                              DWORD lastErr;
                              tXmlError xmlErr;
                              LPCWSTR settingsFile;
                          
                              if (!_xmlDocument) {
                                  settingsFile = sys_getSettingsFile();
                                  if (!pth::fileExists(settingsFile)) {
                                      pth::createFileIfMissing(settingsFile, INITIAL_CONTENTS);
                                      _isDirty = true;
                                  }
                                  _xmlDocument = new tinyxml2::XMLDocument();
                                  xmlErr = _xmlDocument->LoadFile(settingsFile);
                                  if (xmlErr != kXmlSuccess) {
                                      lastErr = ::GetLastError();
                                      msg::error(lastErr, L"%s: Error %u loading the settings file.", _W(__FUNCTION__), xmlErr);
                                      return false;
                                  }
                              }
                          
                              return true;
                          }
                          

                          Seems that plugin can’t find settings.xml file.

                          Do you know whether the author of sessionmanager is active in this board ?
                          No, I don’t know.

                          Cheers
                          Claudia

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