Lost bookmarks



  • Hi,
    after I recently installed the 7.7.1 I got a problem with bookmarks. I work always with four files. The first and last have bookmarks set. When I run NPP it open the four files but it set the bookmarks only for the first file. If I look into session.xml the missing bookmarks are there. So I open this session file and all bookmarks will be set. It seems that NPP doesn’t set the bookmarks of the last file at start up (or they will be cleared).
    This happen systematically.

    This is the debug info:
    Notepad++ v7.7.1 (64-bit)
    Build time : Jun 16 2019 - 21:24:47
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS : Windows 10 (64-bit)
    Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll

    TIA
    Bye, Maurizio.



  • @Maurizio-Lotauro

    I don’t see your reported behavior.
    I create 4 temp files with the content

    line 1
    line 2
    line 3
    line 4
    

    Set a bookmark on line 1 in new1 and another bookmark on line4 in new4 file.
    Restarted npp and those bookmarks are there.

    When you check your session file, do you see something strange? Meaning that
    maybe the file got corrupted?

    Notepad++ v7.7.1 (64-bit)
    Build time : Jun 16 2019 - 21:24:47
    Path : D:…\notepad++.exe
    Admin mode : OFF
    Local Conf mode : ON
    OS : Windows 7 (64-bit)
    Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll



  • I have more than one bookmark.
    The session file seems ok. I can post there if you want, it is less than 3k long. And as I wrote, if I load it then all bookmarks will be set.
    What is “Local Conf mode”? Your is different than my.



  • @Maurizio-Lotauro

    Local Conf mode defines where your config files are stored.
    If set to ON it will search for the files in the directory where the npp executable is
    if set to OFF it will look in %APPDATA\notepad++% folder.

    I don’t know if it makes sense as long as I haven’t the files in question as well.
    Maybe you give it a try, if possible, to test with a portable npp version?

    How many bookmarks did you set in the different files?



  • I made a test with the portable version.
    I close the installed version of NPP. Run the portable version. Load the session, the four file are opened but the last one without bookmarks. Load again the session and the bookmark of the last file are set.
    Close NPP. Check the session of the portable version: bookmarks are there. Run NPP, file opened but the last one without bookmarks.
    Close all, load the “portable” session, again file opened but the last one without bookmarks.
    The first file has five bookmarks and the last one (now) has only two bookmarks.

    I have no problem to send you the four files and the session if you want to try yourself. It should be simple to reproduce.



  • @Maurizio-Lotauro

    I have no problem to send you the four files and the session

    okay, gmail (com) knows my username as well ;-)



  • Sent. Thank you!



  • @Maurizio-Lotauro

    Yes, can confirm - let me see if I can figure out what causes it.
    One question, what do you mean by

    Load again the session and the bookmark of the last file are set.

    ?
    Using Load Session from file menu?
    Because I still don’t see the bookmarks on the last file.



  • Yes, when I write “I loaded” I mean that I used “Load session” from menu.
    It seems that the bookmarks appear only when the file is already opened.

    Small update. I tried with the 7.7 and 7.6.6 portable version. The 7.7 has the same problem while the 7.6.6 works regularly.
    I think that I skipped the 7.7 version, so I noticed the problem only now.



  • Yes, can confirm 7.6.6 seems to work as expected
    and starting from 7.7 onward the issue begins.
    When having multi-instance defined a reload session will not restore the bookmarks
    whereas when having default mono-instance configured a load session does restore the bookmarks. Debugging ongoing.



  • @Maurizio-Lotauro

    actually there is already an issue open and it is related to the fact that the files are ansi encoded.
    If I convert the last file to utf8 it works as expected as well.



  • Thank you for the information!


Log in to reply