Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Lost bookmarks

    General Discussion
    2
    12
    9055
    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.
    • Maurizio Lotauro
      Maurizio Lotauro last edited by

      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.

      Ekopalypse 1 Reply Last reply Reply Quote 0
      • Ekopalypse
        Ekopalypse @Maurizio Lotauro last edited by Ekopalypse

        @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

        1 Reply Last reply Reply Quote 1
        • Maurizio Lotauro
          Maurizio Lotauro last edited by

          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.

          Ekopalypse 1 Reply Last reply Reply Quote 0
          • Ekopalypse
            Ekopalypse @Maurizio Lotauro last edited by

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

            1 Reply Last reply Reply Quote 1
            • Maurizio Lotauro
              Maurizio Lotauro last edited by

              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.

              Ekopalypse 1 Reply Last reply Reply Quote 1
              • Ekopalypse
                Ekopalypse @Maurizio Lotauro last edited by

                @Maurizio-Lotauro

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

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

                1 Reply Last reply Reply Quote 1
                • Maurizio Lotauro
                  Maurizio Lotauro last edited by

                  Sent. Thank you!

                  Ekopalypse 1 Reply Last reply Reply Quote 0
                  • Ekopalypse
                    Ekopalypse @Maurizio Lotauro last edited by Ekopalypse

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • Maurizio Lotauro
                      Maurizio Lotauro last edited by

                      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.

                      Ekopalypse 1 Reply Last reply Reply Quote 2
                      • Ekopalypse
                        Ekopalypse last edited by

                        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.

                        1 Reply Last reply Reply Quote 1
                        • Ekopalypse
                          Ekopalypse @Maurizio Lotauro last edited by

                          @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.

                          1 Reply Last reply Reply Quote 1
                          • Maurizio Lotauro
                            Maurizio Lotauro last edited by

                            Thank you for the information!

                            1 Reply Last reply Reply Quote 2
                            • First post
                              Last post
                            Copyright © 2014 NodeBB Forums | Contributors