• Login
Community
  • Login

Session bug in v7.8.5 ?

Scheduled Pinned Locked Moved General Discussion
13 Posts 4 Posters 2.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.
  • D
    donho
    last edited by Apr 3, 2020, 2:39 AM

    Hi,

    Is it only me or the C++ folding restoring from previous session is broken in v7.8.5 ?
    XML folding restoring is working though.

    1 Reply Last reply Reply Quote 0
    • D
      donho
      last edited by Apr 3, 2020, 3:03 AM

      The bug is persisted only when load from %APPDATA%\Notepad++\session.xml - ie. without doLocalConf.xml beside of your notepad++.exe.

      1 Reply Last reply Reply Quote 0
      • G
        guy038
        last edited by Apr 3, 2020, 12:09 PM

        Hello, @Don-Ho and All,

        As for me , I can say, that folding is really kept in a C, C++ and C# files, of my session, after stopping and re-starting my portable N++ v7.8.5 configuration, which contains, of course, the zero-length doLocalConf.xml file !

        Best Regards

        guy038

        1 Reply Last reply Reply Quote 1
        • D
          donho
          last edited by Apr 3, 2020, 12:31 PM

          Thank you @guy038 for your test.
          Could you do again the test without doLocalConf.xml please ?

          E 1 Reply Last reply Apr 3, 2020, 1:10 PM Reply Quote 0
          • E
            Ekopalypse @donho
            last edited by Apr 3, 2020, 1:10 PM

            @donho

            seems to work for me

            2f9aa16f-488f-473a-809e-9231b4ba6475-image.png

            1 Reply Last reply Reply Quote 1
            • G
              guy038
              last edited by Apr 3, 2020, 3:48 PM

              Hi @don-ho, and All,

              So, I cloned my v7.8.5 portable directory and, at this new location, I deleted the doLocalConf file

              Then, of course, the configuration files were created in C:\Documents and Settings\Guy\Application Data\Notepad++

              Up to now, the folding mechanism seems OK, both, with or without the doLocalConf file but, and it’s important to point it out, ONLY IF  files are not ANSI encoded. I tested with C, C++,C#, HTML, XML, Python, lua files !

              I’ll try to test folding, with other languages, with and without doLocalConf, as soon as possible ;-))

              BR

              guy038

              1 Reply Last reply Reply Quote 3
              • D
                donho
                last edited by Apr 3, 2020, 6:20 PM

                Thank you @Ekopalypse & @guy038 for your tests.

                I guess it’s my environment which makes this bugs. I’ll inform you if I find the cause.

                E 1 Reply Last reply Apr 3, 2020, 7:56 PM Reply Quote 1
                • E
                  Ekopalypse @donho
                  last edited by Apr 3, 2020, 7:56 PM

                  @donho

                  Did some further tests with my setup.

                  If I set settings->preferences->new document->encoding->utf-8
                  and check apply to opened ansi files then everything works as expected. In local conf mode as well as in appdata mode.

                  BUT every other combination under settings->preferences->new document->encoding
                  behaves like this

                  Every first document in each view remembers the folded lines but
                  every other document has everything unfolded, in local conf mode as well as in appdata mode.

                  A 1 Reply Last reply Apr 3, 2020, 8:15 PM Reply Quote 3
                  • A
                    Alan Kilborn @Ekopalypse
                    last edited by Apr 3, 2020, 8:15 PM

                    @Ekopalypse said in Session bug in v7.8.5 ?:

                    Did some further tests with my setup

                    Kudos. That is some serious debugging and detective work.

                    1 Reply Last reply Reply Quote 2
                    • G
                      guy038
                      last edited by guy038 Apr 5, 2020, 10:38 AM Apr 4, 2020, 9:00 PM

                      Hello, @don-ho, and All,

                      Presently, I’m trying to gather, in a folder , a short example of [ possibly foldable ] code of each language, handled by Notepad++ ! Of course, it probably will take some time to do such a task, using Google. For the moment, I’ve finished all languages starting with A. However, I can’t prevent me from reading a little bit of the documentation about each of them :-(

                      In a second step, I’ll test these pieces of code to detect if the folding behaviour is kept over sessions, in local and appdada conf mode and also with different encodings !

                      See you later,

                      BR

                      guy038

                      1 Reply Last reply Reply Quote 2
                      • D
                        donho
                        last edited by Apr 6, 2020, 2:26 AM

                        @Ekopalypse Awesome! I can reproduce it steadily now, though I still have no idea for the cause of bug from code.
                        BTW could you share your secret to find how to reproduce that?

                        Thank you @guy038 for your effort!

                        E 1 Reply Last reply Apr 6, 2020, 12:41 PM Reply Quote 4
                        • E
                          Ekopalypse @donho
                          last edited by Apr 6, 2020, 12:41 PM

                          @donho said in Session bug in v7.8.5 ?:

                          BTW could you share your secret to find how to reproduce that?

                          If I tell you that, then all the magic is gone. ;-)

                          Seriously, I just stumbled across it by accident.
                          I usually work with both views and several documents in each view.
                          When I tested it, I discovered it, after that it was curious to see
                          if this is also true for other settings.

                          1 Reply Last reply Reply Quote 3
                          • D
                            donho
                            last edited by Apr 8, 2020, 4:14 PM

                            Fixed in the following commit:
                            https://github.com/notepad-plus-plus/notepad-plus-plus/commit/a09c0a17dbdb4bb9a414a4a6fedf761987a80032

                            Thank you for your help!

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