• Login
Community
  • Login

Notepad ++ not responding when saving XML file

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
18 Posts 11 Posters 5.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.
  • K
    Kelly Kilowatt
    last edited by Mar 15, 2022, 7:00 PM

    When I attempt to save an XML file after editing it with the plugin “XML tools” the program goes not responding and crashes. I’ve tried uninstall/reinstall of notepad++, as well as an uninstall/reinstall of the plugin. when I uninstall the plugin everything is fine and I can save the XML file. It’s only when the plugin is present that the program crashes.

    E M 2 Replies Last reply Mar 15, 2022, 7:44 PM Reply Quote 0
    • E
      Ekopalypse @Kelly Kilowatt
      last edited by Ekopalypse Mar 15, 2022, 7:44 PM Mar 15, 2022, 7:44 PM

      @kelly-kilowatt

      It looks like you are using a newer Npp version that has introduced an ABI/API change and some plugins need to adapt to it.
      From what I see here, they are already implementing the changes.

      1 Reply Last reply Reply Quote 2
      • M
        Michael Vincent @Kelly Kilowatt
        last edited by Mar 15, 2022, 8:02 PM

        @kelly-kilowatt said in Notepad ++ not responding when saving XML file:

        When I attempt to save an XML file after editing it with the plugin “XML tools” the program goes not responding and crashes

        This does not happen for me. Please provide your Debug info:

        • Notepad++ ? menu and the “Debug Info…” menu item

        and the XML Tools version:

        • Notepad++ Plugins menu, “XML Tools” => “About XML Tools / Donate”

        For example, I’m using:

        XML Tools 3.1.1.12

        Notepad++ v8.3.3 (64-bit)
        Build time : Mar 13 2022 - 17:20:02
        Path : C:\usr\bin\npp64\notepad++.exe
        Command Line :
        Admin mode : OFF
        Local Conf mode : ON
        Cloud Config : OFF
        OS Name : Windows 10 Enterprise (64-bit)
        OS Version : 2009
        OS Build : 19042.1586
        Current ANSI codepage : 1252
        Plugins : XMLTools.dll

        Cheers.

        1 Reply Last reply Reply Quote 4
        • S
          SUNNY SAMANTARA
          last edited by Mar 16, 2022, 10:48 AM

          do we have any other solution right now, because it causes me a lot of problems?

          1 Reply Last reply Reply Quote 0
          • L
            Luc Verhoeven
            last edited by Mar 28, 2022, 2:41 PM

            I have the same problem. Only with “savie as” XSLT files.
            Some additional information. The problem seems to occur if NP++ has been unused (but open) for a longer time (> 1 hour)

            My debug info:
            Notepad++ v8.3.3 (64-bit)
            Build time : Mar 13 2022 - 17:20:02
            Path : C:\Program Files\Notepad++\notepad++.exe
            Command Line :
            Admin mode : OFF
            Local Conf mode : OFF
            Cloud Config : OFF
            OS Name : Windows 11 (64-bit)
            OS Version : 2009
            OS Build : 22000.556
            Current ANSI codepage : 1252
            Plugins : ComparePlugin.dll mimeTools.dll NppConverter.dll NppExport.dll NppHorizontalRuler.dll SQLinFormNpp64.dll XMLTools.dll

            1 Reply Last reply Reply Quote 0
            • M
              Michael Vincent
              last edited by Mar 28, 2022, 2:49 PM

              @luc-verhoeven
              @Kelly-Kilowatt
              @SUNNY-SAMANTARA

              I’ve asked but no one has supplied their XML Tools version.

              If there is no issue when running notepad++.exe -noPlugin and there is an issue only when XML Tools is installed, you’ll need to raise an issue at the appropriate place.

              Cheers.

              L 1 Reply Last reply Mar 28, 2022, 3:20 PM Reply Quote 1
              • L
                Luc Verhoeven @Michael Vincent
                last edited by Mar 28, 2022, 3:20 PM

                @michael-vincent
                7008fbba-6068-4f0f-905a-cf9375cca3b1-image.png

                M 1 Reply Last reply Mar 28, 2022, 3:36 PM Reply Quote 3
                • M
                  Michael Vincent @Luc Verhoeven
                  last edited by Mar 28, 2022, 3:36 PM

                  @luc-verhoeven

                  Thank you! It appears you’re on the latest XML Tools version (as of this thread) and the latest Notepad++ from your debug info above (thanks for that). I would open an issue on the XML Tools issue page if indeed the slow to save only happens when XML Tools is installed.

                  If Notepad++ has no issues saving XML / XLST without XML Tools installed, then it is most likely an XML Tools issue that should be resolved in that plugin’s code.

                  Cheers.

                  L 1 Reply Last reply Mar 29, 2022, 1:09 PM Reply Quote 3
                  • L
                    Luc Verhoeven @Michael Vincent
                    last edited by Mar 29, 2022, 1:09 PM

                    @michael-vincent
                    Yes, I can confirm that it is the XML-tools lugin that causes the problem. When I remove it, it will save in seconds (it is a very big XSLT file), if I reinstall the plugin (via de plugin admin) the behaviour is back. Saving the same XSLT (under a new name) makes notepad++ “not responding”

                    What I now notice as well, is that when I crash the not responding notepad++ and restart it, it will save the file without problem, when I do save as again to another filename, it is back to not responding…

                    I will submit a bug report on the XML-Tools on github. Thanks.

                    L 1 Reply Last reply Mar 29, 2022, 3:36 PM Reply Quote 3
                    • L
                      Luc Verhoeven @Luc Verhoeven
                      last edited by Mar 29, 2022, 3:36 PM

                      @luc-verhoeven
                      https://github.com/morbac/xmltools/issues/154

                      B 1 Reply Last reply Mar 29, 2022, 9:39 PM Reply Quote 2
                      • B
                        Bruce Hansen @Luc Verhoeven
                        last edited by Mar 29, 2022, 9:39 PM

                        I’m seeing similar issues when saving a large-ish (651k) XML file.
                        Notepad++ “hangs” for easily a minute or so before finally completing the save.
                        I do have XML Tools enabled, and (re)installed the latest v3.1.1.12 immediately after updating Notepad++.

                        M 1 Reply Last reply Mar 29, 2022, 10:05 PM Reply Quote 0
                        • M
                          Michael Vincent @Bruce Hansen
                          last edited by Michael Vincent Mar 29, 2022, 10:06 PM Mar 29, 2022, 10:05 PM

                          @bruce-hansen said in Notepad ++ not responding when saving XML file:

                          do have XML Tools enabled, and (re)installed the latest v3.1.1.12

                          Then follow the issue that @Luc-Verhoeven linked above. There’s already a potential solution there.

                          Cheers.

                          L 1 Reply Last reply Apr 4, 2022, 6:28 AM Reply Quote 2
                          • L
                            Luc Verhoeven @Michael Vincent
                            last edited by Apr 4, 2022, 6:28 AM

                            @michael-vincent and all,

                            Version d5b96276-0d40-4a72-8722-6599d8b04304-image.png is available on github and does solve my problem.

                            I do not know when the new version will be available in the plugin Admin, so I installed the dll manually in the folder plugins\XmlTools\

                            Joel RodriguezJ 1 Reply Last reply Apr 26, 2022, 9:44 PM Reply Quote 6
                            • Joel RodriguezJ
                              Joel Rodriguez @Luc Verhoeven
                              last edited by Apr 26, 2022, 9:44 PM

                              @luc-verhoeven Hello, i fixed s
                              disabling these options

                              8290e5ec-a39d-4fa4-8e83-57527d1ffbdf-imagen.png

                              now i can save all my XML faster i hope this works for you

                              ? NMC1992N 2 Replies Last reply Jun 10, 2022, 1:52 PM Reply Quote 2
                              • ?
                                A Former User @Joel Rodriguez
                                last edited by Jun 10, 2022, 1:52 PM

                                @joel-rodriguez Thank you!

                                This is what worked for me

                                1 Reply Last reply Reply Quote 0
                                • NMC1992N
                                  NMC1992 @Joel Rodriguez
                                  last edited by Jun 11, 2022, 11:29 PM

                                  @joel-rodriguez Thank you so much! I’ve been having this for a while, so a work-around is much appreciated! :)

                                  1 Reply Last reply Reply Quote 0
                                  • Nicholas JamesN
                                    Nicholas James
                                    last edited by Jul 28, 2022, 8:25 PM

                                    FYI, I just installed the July 15, 2022 build (v8.4.4) and the bug is back. Following the advice of @joel-rodriguez I was able to save my files without locking up.
                                    Thanks,
                                    Nick

                                    1 Reply Last reply Reply Quote 0
                                    • Graham CollinsG
                                      Graham Collins
                                      last edited by Nov 30, 2022, 5:25 PM

                                      This happened to me on 8.4.7. Disabling the options mentioned by @joel-rodriguez worked for me

                                      1 Reply Last reply Reply Quote 0
                                      • guy038G guy038 referenced this topic on Jan 16, 2024, 9:22 AM
                                      • First post
                                        Last post
                                      The Community of users of the Notepad++ text editor.
                                      Powered by NodeBB | Contributors