Community
    • Login

    Notepad++ v8.8.4 Release Candidate

    Scheduled Pinned Locked Moved Announcements
    31 Posts 5 Posters 1.6k 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.
    • donhoD
      donho
      last edited by donho

      Notepad++ 8.8.4 RC is available here:
      http://download.notepad-plus-plus.org/repository/8.x/8.8.4.RC/
      http://download.notepad-plus-plus.org/repository/8.x/8.8.4.RC2/

      RC2 make NppShell work with self-signed certificate.

      Notepad++ v8.8.4 regression-fixes, bug-fixes & new features:

      1. Fix -notabbar & asNotepad.xml stop hiding tabbar regression (from v8.7.9). (Fix #16794)
      2. Fix “Edit with Notepad++” not removed by uninstaller regression (from v8.8.3). (Fix #16896)
      3. Fix possible heap memory leak. (implement #16883)
      4. Increase search input length from 2046 to 16383. (Fix #1088, #16749)
      5. Add warning tip for the max length on search input (Find/Replace). (Fix #16749)
      6. Fix JavaScript listed twice in Language & Indent settings of Preferences issue. (Fix #4521, #16861, #16884)
      7. Fix external lexers showing several time in Indent settings issue. (Fix #16462)
      8. Add button to insert variables in the run dialog. (implement #16820)
      9. Enhance “Go to settings”: guide users to the related setting explicitly. (Fix #16846)
      10. Add a clear button for filter field in Shortcut Mapper. (Fix #15742)
      11. Make NFO font overridable by adding font name in Lexer “nfo” of stylers.xml. (Fix #16839)
      donhoD 2 Replies Last reply Reply Quote 2
      • donhoD
        donho @donho
        last edited by

        I’m changing the old release machine to a new one.
        It seems no problem, except for NppShell (context menu command “Edit with Notepad++”):
        When I recompile it from the latest change of master, it doesn’t work completely.

        Here are 3 installers with rebuilt NppShell:
        https://download.notepad-plus-plus.org/repository/MISC/NppShellNotWorking/

        You can see the installers on above link, with x64 installer, it doesn’t show on context menu, you have to click on “Show more option” to see “Edit with Notepad++” command item; whereas with x86 installer, same problem with x64 one, but the “Edit with Notepad++” command doesn’t work at all.

        Due to the issue described above, I use 3 NppShell DLL of v8.8.3 to not have the regression in this RC.

        I’m searching the cause, please confirm me this issue also happens to you. I will provide info as soon as I find it.

        xomxX 1 Reply Last reply Reply Quote 1
        • xomxX
          xomx @donho
          last edited by

          @donho said in Notepad++ v8.8.4 Release Candidate:

          I’m searching the cause, please confirm me this issue also happens to you.

          I can confirm the issue.

          Maybe a restriction for the current self-signed NppShell certificate in Windows?

          donhoD 1 Reply Last reply Reply Quote 0
          • donhoD
            donho @xomx
            last edited by donho

            @xomx

            I can confirm the issue.

            Thank you for the conformation.

            Maybe a restriction for the current self-signed NppShell certificate in Windows?

            I don’t think so. If you check the certificate of NppShell.dll in the current v8.8.4 RC (after the installation), you will see it’s signed by the one issued from Notepad++ self-signed certificate - the same certificate used in the installers which don’t work. OTOH, thanks to you hypothesis, I’m wondering if the system (Windows 11) has got the fingerprint of old NppShell.dll binaries without/before the signature.
            Can anyone here confirm my hypothesis?

            xomxX 1 Reply Last reply Reply Quote 1
            • xomxX
              xomx @donho
              last edited by

              @donho said in Notepad++ v8.8.4 Release Candidate:

              Maybe a restriction for the current self-signed NppShell certificate in Windows?
              

              I don’t think so.

              You’re right. I did the following test:

              1. Uninstalled N++.
              2. Installed the working v8.8.4RC - new Win11 NppShell ctx menu functionality ok.
              3. From your “the installers which doesn’t work”, I manually extracted the NppShell.dll & NppShell.msix (+ also the notepad++.exe to be completely sure) and replaced the working ones in the “C:\Program Files\Notepad++” and - new Win11 NppShell ctx menu still ok!
              4. Tried logoff/logon sequence - new Win11 NppShell ctx menu still ok!
              5. Uninstalled N++.
              6. Installed your problematic “the installers which doesn’t work” - the new ctx menu is not visible.

              So the problem should be in your latest installer (procedure?) and not in the NppShell.

              donhoD 1 Reply Last reply Reply Quote 1
              • donhoD
                donho @xomx
                last edited by donho

                @xomx said in Notepad++ v8.8.4 Release Candidate:

                So the problem should be in your latest installer (procedure?) and not in the NppShell.

                The building installer procedure was almost not changed (same as v8.8.3, with even the same certificate), here’s the only change, so I don’t think the problem comes here.

                BTW, I used the 2 old PCs + 1 new PC to recompile NppShell (latest master + NppShell v15 + NppShell v14) and build installers - not working as well, so it’s not about the compiler’s version, either about NppShell’s source code (regression).

                That’s why I suppose it’s due to old NppShell build’s fingerprint.

                xomxX 1 Reply Last reply Reply Quote 0
                • xomxX
                  xomx @donho
                  last edited by

                  @donho

                  Ok, I did another test and now I think it’s about the latest (“the installers which doesn’t work”) NppShell failing during the registration regsvr32 process.

                  I took Registry snapshots before&after installing v8.8.4rc and also after installing “the installers which doesn’t work ” over the working v8.8.4rc. Result is clear - your latest problematic installer removes the needed NppShell extension records from the Registry.

                  So my previous test was misleading, as I used the ok NppShell from the v8.8.4rc installation for the registration (“regsvr32 NppShell.dll”), which created the necessary records in the Registry 1st. Then the manual replacing with the problematic latest NppShell files were ok, as the needed registration has been already done before the replacement.

                  So you need to debug the NppShell module during its “regsvr32 NppShell.dll”.

                  donhoD 1 Reply Last reply Reply Quote 2
                  • donhoD
                    donho @xomx
                    last edited by

                    @xomx
                    Could you please get these 2 NppShell.dll (x86 & x64) from “the installers which don’t work” and sign them with your personal code signing certificate (you’ve got one, IIRC - if that doesn’t bother you, of course), and send them to me (don.h@free.fr) for some test from my side?

                    xomxX 1 Reply Last reply Reply Quote 0
                    • xomxX
                      xomx @donho
                      last edited by xomx

                      @donho said in Notepad++ v8.8.4 Release Candidate:

                      you’ve got one

                      do not have, can create a testing one, but it’s not necessary, I found the culprit of the issue - you forgot to sign also the NppShell.msix (in the latest installer) with your new cert.

                      Without the signed msix, you’ve got the TRUST_E_NOSIGNATURE (0x800B0100) in the NppShell::Installer::RegisterSparsePackage, that’s it.

                      donhoD 1 Reply Last reply Reply Quote 1
                      • donhoD
                        donho @xomx
                        last edited by donho

                        @xomx said in Notepad++ v8.8.4 Release Candidate:

                        I found the culprit of the issue - you forgot to sign also the NppShell.msix (in the latest installer) with your new cert.

                        In v8.8.3, NppShell.msix is not signed either, because of signing error for unknown reason.

                        do not have

                        OK, no problem. We can use the ones of v8.8.3 for the release v8.8.4.

                        Edit: I just realized the fact of not signing NppShell.msix again keeps its old validate signature of old certificate - it could be the cause indeed. So NppShell.msix is not signed COULD BE the problem. The thing is, even there’s no signing problem with the self-signed certificate on NppShell.msix, I wonder if the system tolerates it.

                        Edit2: For x32, NppShell.msix is not necessary. So that doesn’t explain why x86 version doesn’t work.

                        xomxX 2 Replies Last reply Reply Quote 1
                        • xomxX
                          xomx @donho
                          last edited by xomx

                          @donho said in Notepad++ v8.8.4 Release Candidate:

                          NppShell.msix is not signed COULD BE the problem.

                          IT IS the problem.

                          For sparse packages registering, only the msix-file (with a valid sign) is important (I tried/debugged - one can have the NppShell.dll unsigned but if the NppShell.msix is signed according to its corresponding xml manifest (CN=“Notepad++”, O=“Notepad++”, L=Saint Cloud, S=Ile-de-France, C=FR), the new N++ Win11 context menu gets registered & works ok).

                          @donho said in Notepad++ v8.8.4 Release Candidate:

                          send them to me (don.h@free.fr ) for some test from my side

                          I sent you binaries of my x64 Debug build of the current NppShell master, signed by my fake N++ self-signing cert created. I tested them on my Win11 ok - new context menu works as it should.

                          No time yet for the x86 tests, sorry.

                          Edit: Please ignore (click on the OK btn) the debugger attaching point of my NppShell.dll binary sent:

                          NppShell-Debug-attach.png

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

                            It looks like 8.8.2 is the last version that allows a portable version to use the plugin admin to install plugins, or am I the only one having this problem? With the newer versions you still see the dialog that Npp needs to be restarted but the restart or installation of the plugin does not take place.

                            PeterJonesP 1 Reply Last reply Reply Quote 2
                            • PeterJonesP
                              PeterJones @Ekopalypse
                              last edited by

                              @Ekopalypse said in Notepad++ v8.8.4 Release Candidate:

                              am I the only one having this problem?

                              I concur. I saw it yesterday with DSpellCheck on 8.8.3, but thought it was just that one plugin, and didn’t look into it more deeply. I confirmed today with 8.8.3 portable and 8.8.4-RC portable that I cannot get DSpellCheck or ConfigUpdater or CollectionInterface plugins to install through Plugins Admin. (And confirmed that v8.8.2 portable is able to install plugins using Plugins Admin)

                              Looks like a regression in v8.8.3 that wasn’t noticed.

                              EkopalypseE 1 Reply Last reply Reply Quote 3
                              • EkopalypseE
                                Ekopalypse @PeterJones
                                last edited by

                                @PeterJones

                                its blocked

                                bfd73a89-e4dc-4aca-853a-79d009adcc74-grafik.png

                                unblocking it solves it.

                                PeterJonesP donhoD 2 Replies Last reply Reply Quote 4
                                • PeterJonesP
                                  PeterJones @Ekopalypse
                                  last edited by

                                  @Ekopalypse said in Notepad++ v8.8.4 Release Candidate:

                                  unblocking it solves it.

                                  Confirmed.

                                  For future readers: you can also unblock the zipfile before unzipping, then none of the executables will be marked as “blocked” when they are extracted.

                                  1 Reply Last reply Reply Quote 5
                                  • xomxX
                                    xomx @donho
                                    last edited by

                                    @donho said in Notepad++ v8.8.4 Release Candidate:

                                    NppShell.msix is not signed either, because of signing error for unknown reason.

                                    Probably because of:

                                    npp-cert-CN-problem-vs-msix-xml.png

                                    donhoD 1 Reply Last reply Reply Quote 1
                                    • donhoD
                                      donho @xomx
                                      last edited by donho

                                      @xomx
                                      It should match certificate’s Subject, not Issuer. (the issuer of the old certificate was DigiCert).
                                      I’ve checked your “home-mde” certificate comes with NppShell.dll (Thank you BTW), the content of both issuer and subject is identical.
                                      So with the new self-signed certificate, we need to add E=don.h@free.fr, at the begining.

                                      However, I still have signing problem:

                                      SignTool Error: An unexpected internal error has occurred.
                                      Error information: "Error: SignerSign() failed." (-2147024885/0x8007000b)
                                      

                                      Could you pass me your command to sign NppShell.MSIX please?

                                      donhoD 1 Reply Last reply Reply Quote 0
                                      • donhoD
                                        donho @donho
                                        last edited by donho

                                        NppShell.msix is not signed either, because of signing error for unknown reason.

                                        With some searches, it seems that MSIX just cannot be signed by a self-signed certificate, a lot of ppl have the same issue:
                                        https://techcommunity.microsoft.com/discussions/msix-discussions/can-not-sign-the-msix-pacakge-with-self-signed-certificate/218928

                                        @xomx
                                        I’m really curious how did you made it.

                                        xomxX donhoD 2 Replies Last reply Reply Quote 0
                                        • donhoD
                                          donho @Ekopalypse
                                          last edited by

                                          @Ekopalypse said in Notepad++ v8.8.4 Release Candidate:

                                          unblocking it solves it.

                                          Is it due to its signature from the self-signed certificate?

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

                                            @donho said in Notepad++ v8.8.4 Release Candidate:

                                            Is it due to its signature from the self-signed certificate?

                                            No, it’s the Mark of the Web that browsers add when you download a zip or exe. For a normal exe, when you run it if it has the MotW, Windows will just ask you if you agree it’s safe… but because the gup.exe wasn’t run from the GUI but from inside Notepad++, the OS apparently doesn’t ask you, so N++ just cannot spawn the gup.exe.

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