Community
    • Login

    Notepad++ release 8.9.9

    Scheduled Pinned Locked Moved Announcements
    23 Posts 6 Posters 942 Views 3 Watching
    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.
    • PeterJonesP Online
      PeterJones @andrecool-68
      last edited by PeterJones

      @andrecool-68 ,
      If the Notepad++ window is already open, then the file (ANY) does not open at all through the context menu. If the Notepad++ window is closed, open it through the context menu. This appeared only in this new version; if you take any older version of Notepad++, then such a problem was not observed.

      Are you sure? … {deleted my original answer}

      see @donho’s answer, below… my memory seems to be wrong; and like Don, when I try to replicate it (rather than going off of memory) with my installed 8.9.9 running in Admin mode, whether I open a protected file or a non-protected file from explorer, Notepad++ opens it just fine. (I was apparently misremembering things)

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @guy038
        last edited by

        @guy038 said:

        I did not notice any change at all, even after modifying the new option in Settings > Preferences… General > Dialog Font

        I am not sure when Notepad++ assigns the font to the various dialogs. It may have already assigned fonts when it created the dialog (maybe even behind the scenes), and not dynamically changed them. If you exit Notepad++ and restart, it should take effect.

        When I did:

        1. Open Notepad++
        2. Open FIND, take screenshot, close dialog
        3. Set General > Dialog Font = Comic Sans MS
        4. Open FIND, it’s still original font
        5. Exit Notepad++
        6. Open Notepad++
        7. Open FIND. it’s Comic Sans MS now, take screenshot

        5c267966-dd32-4a2c-9715-5a312575a609-image.jpeg

        Continuing the procedure:
        8. Exit Notepad++
        9. Run Notepad++
        10. Set General > Dialog Font = Segoi UI
        11. FIND => still shows comic sans
        12. Exit Notepad++
        13. Rerun Notepad++
        14. FIND => back to normal UI font

        It appears that, at least for some dialogs, that option requires restarting Notepad++.

        1 Reply Last reply Reply Quote 0
        • donhoD Offline
          donho @andrecool-68
          last edited by donho

          @andrecool-68 said:
          If the Notepad++ window is already open, then the file (ANY) does not open at all through the context menu. If the Notepad++ window is closed, open it through the context menu. This appeared only in this new version; if you take any older version of Notepad++, then such a problem was not observed.
          I checked ‘Notepad++ Release Candidate 2 v8.9.9’, and it turned out that this version does not have this problem at all, unlike the final version.

          Official released Notepad++ v8.9.9 opened in Administrator mode from C:\Program Files\Notepad++\notepad++.exe,
          and I cannot reproduce the bug you reported - File is opened as expected.

          One thing you should ensure that the opened Notepad++ path should be the one that NppShell.dll points to (Normally C:\Program Files\Notepad++\notepad++.exe), otherwise the operation will be abandoned for the security reason (harden in v8.9.9).

          andrecool-68A 1 Reply Last reply Reply Quote 2
          • donhoD Offline
            donho @peter-fb
            last edited by donho

            @peter-fb

            The “culprit” is:
            https://github.com/notepad-plus-plus/notepad-plus-plus/blame/master/PowerEditor/src/ScintillaComponent/FindReplaceDlg.rc#L93

            It was introduced at least 16 years ago for being able to use ALT+y to check/uncheck Transparency checkbox.
            So it’s rather a feature, not a bug.

            peter-fbP 1 Reply Last reply Reply Quote 1
            • peter-fbP Online
              peter-fb @donho
              last edited by

              @donho And it somehow only shows up now with version 8.9.9, not with version 8.9.8.1. Do I understand that correctly?

              donhoD 1 Reply Last reply Reply Quote 0
              • andrecool-68A Offline
                andrecool-68 @donho
                last edited by

                @donho said:

                One thing you should ensure that the opened Notepad++ path should be the one that NppShell.dll points to (Normally C:\Program Files\Notepad++\notepad++.exe), otherwise the operation will be abandoned for the security reason (harden in v8.9.9).

                I always have the portable version in which there is no NppShell.dll file at all, and for many years I have added Notepad++ via a batch file. These problems only started in the final version.

                REM Open file in Notepad++ (Открыть файл в Notepad++)
                Reg.exe add "HKCR\*\shell\Open file in Notepad++" /v "Icon" /t REG_SZ /d "%~dp0notepad++.exe,0" /f
                Reg.exe add "HKCR\*\shell\Open file in Notepad++\command" /ve /t REG_SZ /d "\"%~dp0notepad++.exe\" \"%%1\"" /f
                
                PeterJonesP 1 Reply Last reply Reply Quote 0
                • donhoD Offline
                  donho @peter-fb
                  last edited by

                  @peter-fb said:

                  @donho And it somehow only shows up now with version 8.9.9, not with version 8.9.8.1. Do I understand that correctly?

                  cdfcdcd1-5287-4524-b686-6b564468579c-image.jpeg

                  PeterJonesP 1 Reply Last reply Reply Quote 0
                  • PeterJonesP Online
                    PeterJones @donho
                    last edited by PeterJones

                    @donho, regarding your reply about @peter-fb’s visual difference:

                    This is the extra / new line that @peter-fb is talking about:
                    5604c8e4-ca8f-4f9e-af8c-eee83fff6cf8-image.jpeg
                    The left images are from @peter-fb’s 8.9.8.1 screenshot (upper is normal, lower is zoomed 4x); the right images are from @peter-fb’s 8.9.9 screenshot (upper is normal, lower is zoomed 4x). I showed a green arrow to the extra line that shows up in the newest version.

                    Your screenshot from 8.7.8 does not have the extra line, either:

                    572ef7ee-b5dc-4e1b-aa41-a04c3ca1731b-image.jpeg

                    It appears v8.9.9 grew the vertical height of the FIND dialog slightly, and that you can now see the bottom border line for the tab-selector object that used to be hidden under the status bar on that dialog.

                    peter-fbP 1 Reply Last reply Reply Quote 3
                    • peter-fbP Online
                      peter-fb @PeterJones
                      last edited by

                      @PeterJones Thank you so much! You explain it far better than I ever could. Here’s a comparison I just made, but the one you posted is much clearer.

                      comparison.png

                      And if I’m completely misunderstanding what Don Ho means, then I’m sorry.

                      1 Reply Last reply Reply Quote 2
                      • PeterJonesP Online
                        PeterJones @andrecool-68
                        last edited by PeterJones

                        @andrecool-68 said:

                        I always have the portable version in which there is no NppShell.dll file at all, and for many years I have added Notepad++ via a batch file. These problems only started in the final version.

                        I have no such problem:

                        see video:
                        PortableRightClick.gif

                        Equivalent to what Don said, you need to make sure that the registry entry and the active Admin Notepad++ have the exact same path (from their own perspective). See my screenshot, where I show both the REG QUERY results for the keys created, and the Debug Info which confirms they are the same:
                        e97a220d-a901-419d-b61f-d83389fcf9dd-image.jpeg

                        andrecool-68A 1 Reply Last reply Reply Quote 1
                        • guy038G Online
                          guy038
                          last edited by guy038

                          Hello, @peter-fb, @donho, @peterjones and All,

                          Ah … @peter-fb, I clearly see, now, what you meant !

                          Indeed, with the last N++ v8.9.9 release, here are two snapshots of the Find dialog :

                          ea3cc32b-23a0-4922-a07d-1bcd4f06f5de-image.jpeg

                          0f132061-0d4f-4cd0-b6ef-955af07ca2fd-image.jpeg

                          So, you can also notice this problem within the reduced / compact version !

                          BR

                          guy038

                          PeterJonesP 1 Reply Last reply Reply Quote 1
                          • PeterJonesP Online
                            PeterJones @guy038
                            last edited by

                            @guy038 said:

                            So, you can also notice this problem within the reduced / compact version !

                            Personally, I wouldn’t call it a “problem”, just a change in appearance.

                            If anything, I would consider the old to be the problem, and the new to be “correct” (except for maybe the ^ button).

                            In the old, the status bar was covering the bottom line of the border for the tabbed subview control. In the new, the bottom border for the tabbed subview is visible, as would be expected.

                            Here’s a conceptual version:
                            67eb2e90-ae76-49b3-9c60-2610d671cffb-image.jpeg

                            • on the left is the v8.9.8.1 (and earlier) layout
                              • the bottom edge of the tabbed view (green outline) is covered by the status bar (orange)
                            • on the right is the v8.9.9 layout
                              • the bottom edge of the tabbed view is above the status bar, so you can see the entirety of both

                            Really, that’s not quite it, either, because as you can see in my screenshots, for some environments, the ^ button slightly covers the bottom and right edges still:
                            5655b9b9-4791-4d0e-972b-fad747670c02-image.jpeg
                            But your screenshot do not show that.

                            And to me, this is rather unimportant, as I wouldn’t’ve noticed it if @peter-fb hadn’t pointed it out. But I’d prefer it as it is in v8.9.9, rather than the cover-the-border from v8.9.8.1-and-earlier. (If there was a change, I’d say move the button 1 up and 1 left, to make sure that it doesn’t extend over the edge of the border in the different environments… but I don’t really care if that’s not done.)

                            1 Reply Last reply Reply Quote 0
                            • guy038G Online
                              guy038
                              last edited by guy038

                              Hi, @peter-fb, @peterjones, @donho and All,

                              When I said :

                              So, you can also notice this problem within the reduced / compact version !

                              Those words went beyond what I was thinking. I should have said :

                              So, you can also notice the changes within the reduced / compact version !


                              Do note that, initially, I did even not see where the “problem” was, at first place !

                              BR

                              guy038

                              1 Reply Last reply Reply Quote 0
                              • andrecool-68A Offline
                                andrecool-68 @PeterJones
                                last edited by

                                @PeterJones said:

                                I have no such problem:

                                see video:

                                1. Deleted the folder npp.8.9.9.portable.x64
                                2. Unpacked the same archive npp.8.9.9.portable.x64.7z
                                3. Installed all the necessary plugins
                                4. Made the necessary settings for notepad++
                                5. Added notepad++ to the context menu via my old bat file

                                And a “miracle” happened: my notepad++ began to behave as expected when opening files and “folders as a project”. I don’t understand what’s going on at all. About a month ago there was a situation where the “manage plugins” menu item disappeared.

                                Can anyone tell me what the problem might be?

                                xomxX PeterJonesP 2 Replies Last reply Reply Quote 0
                                • xomxX Offline
                                  xomx @andrecool-68
                                  last edited by

                                  @andrecool-68

                                  For surety, I tried the right-clicking shell context menu after the v8.9.9 installation in a Win7 VM and it works ok for me as well. Even with your “Admin mode: ON” N++.

                                  Can anyone tell me what the problem might be?

                                  Maybe a previously registered NppShell.dll remained loaded in the Windows Explorer shell, then after you logoff/reboot, the new one (in a new registered location) is finally loaded by rightclick.

                                  andrecool-68A 1 Reply Last reply Reply Quote 0
                                  • xomxX Offline
                                    xomx @donho
                                    last edited by

                                    @donho said:

                                    1. Vulnerability: Fix TOCTOU risk when saving temp file under UAC. CVE ID not assigned yet

                                    This caused a regression in the v8.9.9 (PR fix).

                                    1 Reply Last reply Reply Quote 0
                                    • andrecool-68A Offline
                                      andrecool-68 @xomx
                                      last edited by

                                      @xomx said:

                                      Maybe a previously registered NppShell.dll remained loaded in the Windows Explorer shell, then after you logoff/reboot, the new one (in a new registered location) is finally loaded by rightclick.

                                      Read all my messages in this thread. As I said above, in the portable version there is ABSOLUTELY no such file!

                                      1 Reply Last reply Reply Quote 0
                                      • PeterJonesP Online
                                        PeterJones @andrecool-68
                                        last edited by

                                        @andrecool-68 said:

                                        Can anyone tell me what the problem might be?

                                        I gave you a practical step, which would have provided useful information to try to find the problem, had you grabbed that information before deleting/re-unzipping. That information is obviously gone now, so the best anyone can do is guess.

                                        And the best guess is still what Don and I were both indicating: a mismatch in apparent paths (two different strings that possibly refer to the same physical drive location: maybe junctions or symbolic links or similar) or a mismatch in real paths (two different portable copies, where the one actively running is not the same as the one your registry was invoking).

                                        Modern security prevents the non-elevated registry command from passing data across the “boundary” to the elevated Admin Notepad++ that was running (though if they are using the same path to the executable, as in my experiements where it worked, then the data can cross that boundary)

                                        And a “miracle” happened:

                                        Not a miracle. your deletion and re-unzip likely got rid of the mismatch that we were trying to help you find.

                                        About a month ago there was a situation where the “manage plugins” menu item disappeared.

                                        “Plugins Admin”. It would have disappeared because of Mark of the Web. As, IIRC, we told you, about a month ago.

                                        1 Reply Last reply Reply Quote 0

                                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                        With your input, this post could be even better 💗

                                        Register Login
                                        • First post
                                          Last post
                                        The Community of users of the Notepad++ text editor.
                                        Powered by NodeBB | Contributors