• Login
Community
  • Login

Notepad++ v8.4.7 Release

Scheduled Pinned Locked Moved Announcements
31 Posts 10 Posters 11.5k 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 Nov 8, 2022, 3:24 PM

    Notepad++ v8.4.7 Release is available here:
    https://notepad-plus-plus.org/news/v847-released/

    Change log:

    1. Fix empty session issue due to forced Windows update restart. (Fix #9850, #12389, #5737, #4148, #2730… and much more)
    2. Fix printing with extra background colors issue due to Change History. (Fix #12281)
    3. Update to scintilla 5.3.1 and lexilla 5.2.0. (Implement #12327)
    4. Updated nlohmann json to 3.11.2 and boost to 1.80.0. (Implement #12271, #12273)
    5. Make large file restriction configurable. (Fix #11389, #12260, #11670)
    6. Optimize open/save large files time. ( Commit)
    7. Remember Column Editor settings through the sessions. (Implement #12386)
    8. Fix plugin admin search issue. (Fix #12375)
    9. Installer enhancement: prevent arm64 installer from installing on non ARM64 system. (Fix #12320)
    10. Installer enhancement: remember “Don’t use_%APPDATA%” option. (Fix #12202)
    11. Add new API NPPM_GETBOOKMARKID for getting bookmark ID. (Fix Commit)
    12. Enhance “Go To” dialog: update line/position data dynamically. (Fix #12284)
    13. Fix lines hiding issue. (Fix #12184, #8149)
    14. Fix language detected from content not applied if default language is set. (Fix #11504)
    15. Fix long filters get truncated in Find in Files feature. (Fix #12041)
    16. Add ESC Key for aborting “Move to Recycle Bin” confirmation prompt. (Fix #12117)

    Enjoy v8.4.7 !

    D 1 Reply Last reply Nov 21, 2022, 3:22 AM Reply Quote 8
    • N
      Nino-kun
      last edited by Nov 17, 2022, 7:54 AM

      Regression in save on exit.
      Both “Remember current session for next launch” and “Enable session snapshot and periodic backup” are enabled in Preferences.
      If I close Notepad++ manually by pressing X, all works as expected - no save dialogs for changed files, program silently close and on next start all files opened again.
      If I restart Windows while Notepad++ still running, I get “This program preventing restart”, because N++ open save dialogs for all unsaved files.
      v8.4.6 behave identical in both cases.

      X 1 Reply Last reply Nov 17, 2022, 10:44 PM Reply Quote 1
      • X
        xomx @Nino-kun
        last edited by Nov 17, 2022, 10:44 PM

        @Nino-kun
        Hi, this is not regression but feature.

        If this new safer behavior bothers you, simply click on the “Restart anyway” in the blue Windows restart screen and you will get the same as before (“…close and on next start all files opened again.”).

        But if you have some important unsaved stuff in N++, I recommend to change the habit and save files before initiating the OS restart/shutdown.

        D 1 Reply Last reply Nov 18, 2022, 3:17 PM Reply Quote 2
        • D
          donho @xomx
          last edited by donho Nov 18, 2022, 3:21 PM Nov 18, 2022, 3:17 PM

          @xomx
          I’ve just observed 2 different behaviours, here’s the scenario to reproduce the 1st behaviour:

          1. open only 1 existing file in Notepad++
          2. add some text in the opened file without save it
          3. restart windows, “This program preventing restart” dialog appear, click on Cancel - the opened unsaved file is saved now.

          Whereas if user clicks on Restart anyway, relaunch Notepad++ after Windows restarting, the file in question is still unsaved (the 2nd behaviour).

          I would add a message box “Windows is forcing restarting. Do you want to save unsaved file” before the save all line:
          https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/NppBigSwitch.cpp#L2131
          And this line will be executed only when user replies Yes.

          What do you think?

          X 1 Reply Last reply Nov 18, 2022, 5:32 PM Reply Quote 3
          • X
            xomx @donho
            last edited by Nov 18, 2022, 5:32 PM

            @donho

            I can confirm this inconsistency, good catch!

            Reason - I overlooked this line:
            https://github.com/notepad-plus-plus/notepad-plus-plus/blob/6803b69c0b92057d2ac5700b7a312a6cf2f82b39/PowerEditor/src/NppIO.cpp#L1669

            So if I have 2 or more dirty files, it works as I intended - showing this dlg to the user:
            IDM_FILE_SAVEALL.png

            But for just one dirty file it directly saves without asking.

            Now about the solution.

            If we do what you proposed, there will be short (~5s I think) hang before the blue Windows restart screen with the “Restart anyway” & “Cancel” appears. That will be because of we did not immediately return TRUE/FALSE in the WM_QUERYENDSESSION as we should (Windows then thinks that the app hangs and arranges things according to that).

            So I’d rather adjust the problematic line in the Notepad_plus::fileSaveAll() to something like:

            if (nbDirty == 1 && curBuf->isDirty() && !nppParam.isEndSessionStarted())
            
            D 1 Reply Last reply Nov 19, 2022, 3:15 AM Reply Quote 2
            • D
              donho @xomx
              last edited by donho Nov 19, 2022, 3:17 AM Nov 19, 2022, 3:15 AM

              @xomx said in Notepad++ v8.4.7 Release:

              So I’d rather adjust the problematic line in the Notepad_plus::fileSaveAll() to something like:

              There’s no reason for me to modify bool Notepad_plus::fileSaveAll(), because since this function is used everywhere, it could bring another regression.
              Let’s focus on where there’s the problem to prevent from the regression.

              X 1 Reply Last reply Nov 19, 2022, 9:13 AM Reply Quote 0
              • N
                Nino-kun
                last edited by Nov 19, 2022, 6:05 AM

                I don’t get it, how this feature work. Program doesn’t try to save all modified files on manual exit.
                It would be logical to behave identical on normal/manual exit and OS restart, but now N++ doesn’t do that.

                X 1 Reply Last reply Nov 19, 2022, 9:37 AM Reply Quote 0
                • X
                  xomx @donho
                  last edited by Nov 19, 2022, 9:13 AM

                  @donho said in Notepad++ v8.4.7 Release:

                  There’s no reason for me to modify bool Notepad_plus::fileSaveAll(), because since this function is used everywhere, it could bring another regression.

                  What my proposal would do is to return the status before this speed optimization (1st in v8.4.3):

                  “Skip save all warning dialog if only current editing file is dirty. (Fix #10995)”

                  But only in case that Windows is being terminated.

                  It is simple patch and it reuses already existing N++ code, but if you do not like it, we can create a new N++ message (e.g. IDM_FILE_SAVEALL_AT_SHUTDOWN), where we show your message to the users and so on…

                  Should I create an issue for this where we can continue in discussion about solution?

                  D 1 Reply Last reply Nov 19, 2022, 12:32 PM Reply Quote 1
                  • X
                    xomx @Nino-kun
                    last edited by xomx Nov 19, 2022, 9:38 AM Nov 19, 2022, 9:37 AM

                    @Nino-kun said in Notepad++ v8.4.7 Release:

                    It would be logical to behave identical on normal/manual exit and OS restart, but now N++ doesn’t do that.

                    Simply saying - you are right.

                    I took the opportunity to alert the users that they do not have data (standardly) saved. So if there is a non-critical OS restart/shutdown users are now notified about this fact and by selecting “Cancel” on the restart screen, they can handle this. Otherwise by clicking on the “Restart anyway” they are relying on the N++ backup engine as before.

                    @donho
                    What do you think - should we also fix this “inconsistency” in between the normal N++ exit and N++ exit forced by OS restart/shutdown?

                    (possible solution is easy - just adding one more check for the active isSnapshotMode…)

                    1 Reply Last reply Reply Quote 2
                    • D
                      donho @xomx
                      last edited by Nov 19, 2022, 12:32 PM

                      @xomx said in Notepad++ v8.4.7 Release:

                      Should I create an issue for this where we can continue in discussion about solution?

                      Yes, please.

                      X 1 Reply Last reply Nov 19, 2022, 10:07 PM Reply Quote 1
                      • X
                        xomx @donho
                        last edited by Nov 19, 2022, 10:07 PM

                        @donho

                        Done, #12541 . You can assign it to me.

                        I hope you don’t mind that I combined both the N++ exit inconsistencies reported here into one issue. Otherwise let me know and I split these to two separate issues.

                        1 Reply Last reply Reply Quote 3
                        • D
                          donho @donho
                          last edited by Nov 21, 2022, 3:22 AM

                          FYI: Auto-update for Notepad++ v8.4.7 has been triggered.

                          PeterJonesP 1 Reply Last reply Nov 30, 2022, 3:22 PM Reply Quote 0
                          • PeterJonesP PeterJones referenced this topic on Nov 25, 2022, 5:48 PM
                          • PeterJonesP PeterJones referenced this topic on Nov 30, 2022, 2:16 PM
                          • PeterJonesP
                            PeterJones @donho
                            last edited by Nov 30, 2022, 3:22 PM

                            @donho ,

                            Unfortunately, @Craig-O-Neil has just reported a v8.4.7 regression in “New document | Default langauge not working for new NP++ instance”. I confirmed it and created the issue #12586.

                            1 Reply Last reply Reply Quote 1
                            • Professor AndreyP
                              Professor Andrey
                              last edited by Dec 11, 2022, 8:20 AM

                              I have a small (bag)

                              Please add Notepad++ on windows 11 context menu !

                              PeterJonesP 1 Reply Last reply Dec 11, 2022, 4:44 PM Reply Quote 0
                              • PeterJonesP
                                PeterJones @Professor Andrey
                                last edited by PeterJones Dec 11, 2022, 4:47 PM Dec 11, 2022, 4:44 PM

                                @Professor-Andrey said in Notepad++ v8.4.7 Release:

                                I have a small (bag)

                                Please add Notepad++ on windows 11 context menu !

                                Windows 11 has intentionally hidden that away, to steer users into a single Open With application. You can see the old-style menu by using Show More Options in the Right-click menu, or using Shift+F10 instead of Right clicking.

                                …
                                Or see the user manual section on the right -click for Windows 11 on this page: https://npp-user-manual.org/docs/other-resources/

                                1 Reply Last reply Reply Quote 1
                                • TroshinDVT
                                  TroshinDV
                                  last edited by Dec 12, 2022, 6:32 PM

                                  Notepad++ v8.4.7 (64-bit)
                                  Build time : Nov 1 2022 - 23:31:11
                                  Path : C:_ProgramF\Notepad++_portable\npp.8.4.7.portable.x64\notepad++.exe
                                  Command Line :
                                  Admin mode : ON
                                  Local Conf mode : ON
                                  Cloud Config : OFF
                                  OS Name : Windows 7 Ultimate (64-bit)
                                  OS Build : 7601.24511
                                  Current ANSI codepage : 1251
                                  Plugins :
                                  Explorer (1.9.5)
                                  mimeTools (2.9)
                                  NppConverter (4.5)
                                  NppExport (0.4)

                                  Screenshot_232.png

                                  Screenshot_233.png

                                  PeterJonesP 1 Reply Last reply Dec 12, 2022, 6:43 PM Reply Quote 0
                                  • PeterJonesP
                                    PeterJones @TroshinDV
                                    last edited by Dec 12, 2022, 6:43 PM

                                    @TroshinDV ,

                                    Yes, “enable smooth font” slightly changes how the font appears. this isn’t specific to v8.4.7, and is rather the point of the option.

                                    1 Reply Last reply Reply Quote 0
                                    • Mike7OM
                                      Mike7O
                                      last edited by Mike7O Dec 12, 2022, 6:58 PM Dec 12, 2022, 6:57 PM

                                      v8.4.7 this happens / worked in 8.4.6
                                      trying to open/edit multiple files …didn’t find any solution for it, however a lot of old reports showing the same errors

                                      Skärmbild 2022-12-12 195604.jpg

                                      PeterJonesP 1 Reply Last reply Dec 12, 2022, 7:14 PM Reply Quote 0
                                      • PeterJonesP
                                        PeterJones @Mike7O
                                        last edited by Dec 12, 2022, 7:14 PM

                                        @Mike7O ,

                                        Windows ShellExecute is limited in the number of characters it will accept; this was true in v8.4.6 and is still true in v8.4.7, because it’s part of the Microsoft Windows win32-api definition for maximum command length.

                                        You might consider not opening so many files from the same right-click from Explorer; then you can select the second half, and unless you have done something like telling Notepad++ to always open files in multisession, it will add the files to the existing Notepad++ window. Or just open the folder as a workspace from inside Notepad++.

                                        Mike7OM 1 Reply Last reply Dec 12, 2022, 9:48 PM Reply Quote 1
                                        • Mike7OM
                                          Mike7O @PeterJones
                                          last edited by Dec 12, 2022, 9:48 PM

                                          @PeterJones nice, haven’t explored that many features so anything that makes my work easier is appreciated 🤩

                                          Mike7OM 1 Reply Last reply Dec 14, 2022, 9:10 PM Reply Quote 0
                                          • First post
                                            Last post
                                          The Community of users of the Notepad++ text editor.
                                          Powered by NodeBB | Contributors