• Login
Community
  • Login

Unable to run notepad++ with debug mode (for testing plugin)

Scheduled Pinned Locked Moved Notepad++ & Plugin Development
9 Posts 3 Posters 837 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.
  • A
    ahmoy law
    last edited by Sep 21, 2023, 9:59 AM

    Hi Plugin Community,

    I have downloaded notepad++ and gup.exe (debug mode) from here https://npp-user-manual.org/docs/plugins to test my plugin.

    but whenever i run the notepad++, it will prompt me to download a new package and overwrite the debug mode binaries.

    Is there a new version for debug mode binaries which will not prompt to download a new package?

    Thanks,
    Law

    P 1 Reply Last reply Sep 21, 2023, 12:56 PM Reply Quote 0
    • P
      PeterJones @ahmoy law
      last edited by Sep 21, 2023, 12:56 PM

      @ahmoy-law said in Unable to run notepad++ with debug mode (for testing plugin):

      Is there a new version for debug mode binaries which will not prompt to download a new package?

      No. But you can change the Settings > Preferences > MISC to not enable auto-updater, and from then on, it won’t ask you.

      A 1 Reply Last reply Sep 21, 2023, 1:43 PM Reply Quote 2
      • A
        ahmoy law @PeterJones
        last edited by ahmoy law Sep 21, 2023, 1:50 PM Sep 21, 2023, 1:43 PM

        @PeterJones

        I think, I dont have the auto-updater on.

        Settings.png

        Whenever i run the debug mode binary, i will get this Exception error…

        Error.png

        then another popup screen will appear even before i click OK on the Exception screen!

        update.png

        and If i click at the “No” or “Never”, Notepadd++ will not continue and wont able to see anything.

        A P R 3 Replies Last reply Sep 21, 2023, 1:47 PM Reply Quote 0
        • A
          ahmoy law @ahmoy law
          last edited by Sep 21, 2023, 1:47 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • P
            PeterJones @ahmoy law
            last edited by Sep 21, 2023, 2:31 PM

            @ahmoy-law said in Unable to run notepad++ with debug mode (for testing plugin):

            Whenever i run the debug mode binary, i will get this Exception error…

            I haven’t done plugin debugging, so I won’t be able to help you with that part (though I think that has to do with the scintilla library being signed now… I think there’s a way around the signed-vs-unsigned-check, but I don’t know it). Hopefully one of the people who have done plugin debugging/development will be able to answer this part more fully.

            I think, I dont have the auto-updater on.

            From that screenshot, it appears you don’t have auto-updater on. But was your screenshot showing no-updater from the normal binary, or the debug-mode binary? Because the debug-mode binary might be using a different settings location, so if your screenshot was from the normal binary, it might not be the same settings as the debug-mode-binary.

            Also, you might just delete gup.exe, because it cannot try to update without gup.

            A 1 Reply Last reply Sep 22, 2023, 1:50 AM Reply Quote 1
            • R
              rdipardo @ahmoy law
              last edited by Sep 21, 2023, 7:29 PM

              @ahmoy-law said in Unable to run notepad++ with debug mode (for testing plugin):

              Whenever i run the debug mode binary, i will get this Exception error…

              Error.png

              Your current version (7.8.1) needs a dynamic library called SciLexer.dll to run. Since version 8.0 of Notepad++ , that DLL is no longer distributed (being now a static component of the main application). If SciLexer.dll was deleted by an aborted upgrade or some other accident, version 7.8.1 will not function at all.

              A portable installation is the best way to test a plugin. If you choose a package named as *minimalist.7z, there will be no updater or other plugins to interfere with yours.

              A 1 Reply Last reply Sep 22, 2023, 1:52 AM Reply Quote 4
              • A
                ahmoy law @PeterJones
                last edited by Sep 22, 2023, 1:50 AM

                @PeterJones

                1. Yes, the screenshot is from a normal binary since i could not bring up the debug mode version at all.
                2. No, i cannot delete gup.exe since i need it to test the updating plugin process.
                1 Reply Last reply Reply Quote 0
                • A
                  ahmoy law @rdipardo
                  last edited by Sep 22, 2023, 1:52 AM

                  @rdipardo

                  It sounds like the debug mode binary is already outdated and cannot be tested anymore with the latest binary.
                  Should I use the debug mode binary with the old binary then? but then i’m scared that the new binary may bring something new (imcompatible) to the plugin.

                  Thanks,
                  Law

                  1 Reply Last reply Reply Quote 0
                  • A
                    ahmoy law
                    last edited by Sep 22, 2023, 5:59 AM

                    Hi Plugin Community,

                    I have managed to test my plugin using notepad++ old version 7.8.9.

                    Thanks,
                    Ahmoy Law

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