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



  • Two issues with the SessionManager-Plugin:
    a) After installation in the “Installed” -Tab In the “Plugin”-, “Category”- and “Stability”- columns show no entry only the “Installed Version”- column shows 1.4.2. to identify the Plugin…
    b) at Npp (v.6.8.8) Start an error message pops up: Title: “Session Manager Error” Text: “NppPlugin::`anonymous-namespace’::readSettingsFile: Error 15 loading the settings file.”

    A reinstall of the plugin does not change anything.
    On my side the issue started at least at
    Any one else with a similar behaviour?
    Or ideas ?



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



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



  • 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



  • 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



  • 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



  • 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



  • 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



  • 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



  • 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



  • 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



  • 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


Log in to reply