Community
    • Login

    Support for Plugins Admin & NppPluginList

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    75 Posts 33 Posters 135.9k Views 8 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.
    • SaturnusDJS Offline
      SaturnusDJ
      last edited by

      When I want to use the new Npp ‘Plugin Admin’ I have to run notepad++.exe as administrator. Why?

      dinkumoilD 1 Reply Last reply Reply Quote 0
      • Jeffrey MorleyJ Offline
        Jeffrey Morley
        last edited by

        So we want to fix the installer for our 3rd-party plugin RainLexer

        https://github.com/poiru/rainlexer

        Currently, the installer installs the plugin .dll to %APPDATA%\Notepad++\Plugins\RainLexer.dll and the supporting .xml file to %PROGAMFILES%\Notepad++\Plugins\Config\RainLexer.xml (64bit) or %PROGAMFILES(x86)%\Notepad++\Plugins\Config\RainLexer.xml (32bit).

        With 7.6 of Notepad++, I gather than for a “normal” install, it will now be the plugin .dll to %LOCALAPPDATA%\Notepad++\Plugins\RainLexer\RainLexer.dll and the supporting .xml file to %PROGAMFILES%\Notepad++\Plugins\Config\RainLexer.xml (64bit) or %PROGAMFILES(x86)%\Notepad++\Plugins\Config\RainLexer.xml (32bit).

        How do we handle those who install Notepad++ as “portable”? Is the structure the same, only self-contained in Notepad++'s single install folder?

        This really has nothing to do with the new Plugin Admin functionality, at this time we have no interest in using that.

        1 Reply Last reply Reply Quote 1
        • dinkumoilD Offline
          dinkumoil
          last edited by

          @Jeffrey-Morley

          For local/normal installations your current and your new locations for the DLL and the supporting .xml file are wrong.

          Old:
          DLL file: %PROGAMFILES%\Notepad++\plugins\RainLexer.dll (64bit) or %PROGAMFILES(x86)%\Notepad++\plugins\RainLexer.dll (32bit)
          Config file: %Userprofile%\AppData\Roaming\Notepad++\plugins\config\RainLexer.xml

          New (since v7.6)
          DLL file: %UserProfile%\AppData\Local\Notepad++\plugins\RainLexer\RainLexer.dll (all architectures)
          Config file: %Userprofile%\AppData\Roaming\Notepad++\plugins\config\RainLexer.xml (no changes)

          How do we handle those who install Notepad++ as “portable”? Is the structure the same, only self-contained in Notepad++'s single install folder?

          Portable installations are and have ever been self-contained. The location for the supporting .xml file should be <Notepad++ directory>\plugins\config\RainLexer.xml and the loaction for the plugin itself (since v7.6) <Notepad++ directory>\plugins\RainLexer\RainLexer.dll.

          The Notepad++ message interface provides the NPPM_GETPLUGINSCONFIGDIR message to query the location of the config dir.

          Since v7.6 there is also the NPPM_GETPLUGINHOMEPATH message to query the path to the directory that contains the subdirectories of all plugins, i.e. currently %Userprofile%\AppData\Local\Notepad++\plugins and in the future maybe %ProgramData%\Notepad++\plugins. You have to append the name of your plugin DLL file (excluding the .dll extension) and you get the path to your personal plugin directory.

          1 Reply Last reply Reply Quote 2
          • dinkumoilD Offline
            dinkumoil @SaturnusDJ
            last edited by dinkumoil

            @SaturnusDJ said:

            When I want to use the new Npp ‘Plugin Admin’ I have to run notepad++.exe as administrator. Why?

            Did you select the option “Do not use %APPDATA%” during installation? If yes, perform an uninstall. Then remove %LOCALAPPDATA%\Notepad++ and %PROGRAMFILES%\Notepad++ before reinstalling (enter %LOCALAPPDATA% in your explorer adress bar and delete the Notepad++ folder, repeat the same in %PROGRAMFILES%).

            1 Reply Last reply Reply Quote 1
            • scootergrisenS Offline
              scootergrisen
              last edited by

              How do i start Plugins Admin/Plugins Manager?

              1 Reply Last reply Reply Quote 0
              • Eric YWYE Offline
                Eric YWY
                last edited by

                I found that if I checked “Don’t use %APPDATA%” during the installation, the whole “Plugin” tab will be disappear from the tab menu
                Can it be resumed on next version of Notepad++?

                Meta ChuhM 1 Reply Last reply Reply Quote 0
                • Meta ChuhM Offline
                  Meta Chuh moderator @Eric YWY
                  last edited by

                  @Eric-Yau152

                  you just have to delete the file DoLocalConf.xml inside your C:\Program Files\Notepad++ folder if you installed the 64 bit version, or in C:\Program Files (x86)\Notepad++ if you installed the 32 bit version.

                  in case the plugins have never been installed to the correct path %localappdata%\Notepad++:
                  just download and reinstall your desired (32/64 bit) installer from here : https://notepad-plus-plus.org/download/v7.6.html

                  you don’t have to uninstall first, just install over it

                  Eric YWYE 1 Reply Last reply Reply Quote 0
                  • samcanS Offline
                    samcan
                    last edited by

                    I just installed 64-bit v7.6 on Windows 7, and I don’t have the plugins menu appear at all unless I run the program as an administrator. Then, the plugins menu does appear.

                    It seems like even if I can’t install any plugins as a standard user using the plugin manager, I still should be able to use the installed plugins, correct?

                    I don’t have Local Conf mode enabled like Eric Yau152.

                    Debug info as standard user follows:

                    Notepad++ v7.6 (64-bit)
                    Build time : Nov 13 2018 - 00:12:05
                    Path : C:\Program Files\Notepad++\notepad++.exe
                    Admin mode : OFF
                    Local Conf mode : OFF
                    OS : Windows 7 (64-bit)
                    Plugins : none

                    Debug info as admin user (in standard user, right-clicking and running as admin):

                    Notepad++ v7.6 (64-bit)
                    Build time : Nov 13 2018 - 00:12:05
                    Path : C:\Program Files\Notepad++\notepad++.exe
                    Admin mode : ON
                    Local Conf mode : OFF
                    OS : Windows 7 (64-bit)
                    Plugins : DSpellCheck.dll mimeTools.dll nppConverter.dll NppExport.dll

                    1 Reply Last reply Reply Quote 1
                    • Eric YWYE Offline
                      Eric YWY @Meta Chuh
                      last edited by

                      @Meta-Chuh

                      Thanks for you reply

                      I have

                      1. uninstalled the program and removed the custom settings in program file folder
                      2. removed folder “%localappdata%\Notepad++”
                      3. installed the program and checked “Don’t use %APPDATA%”
                        the whole “Plugin” tab is still NOT appeared at the tab menu

                      Env:
                      WIn 10 Pro 64 bit
                      i7 7600u + 16GB RAM

                      Please note, thanks

                      Meta ChuhM 1 Reply Last reply Reply Quote 0
                      • jackpozJ Offline
                        jackpoz
                        last edited by

                        It would be nice to have in Plugin Admin the same list of plugins previously available through Plugin Manager, for example TextFX and “Poor Man’s T-Sql Formatter” are missing. I had to revert to version 7.5.9 to be able to load these plugins.
                        It would be also nice to have the plugin list sorted by name.

                        1 Reply Last reply Reply Quote 0
                        • Meta ChuhM Offline
                          Meta Chuh moderator @Eric YWY
                          last edited by

                          @Eric-YWY

                          i think you misunderstood:
                          you should never select “Don’t use %APPDATA%” if you install to C:\Program Files or plugins and updater will not be shown

                          so your options are:

                          install to a custom folder you create
                          (example C:\Applications\Notepad++)
                          there you can activate "Don’t use %APPDATA%” in the installer
                          this type of installation allows every user to see the same plugins and setting

                          or

                          make a default install without selecting "Don’t use %APPDATA%”
                          this way every user has its own plugins folder inside %APPDATA%

                          Eric YWYE 1 Reply Last reply Reply Quote 3
                          • Eric YWYE Offline
                            Eric YWY @Meta Chuh
                            last edited by

                            @Meta-Chuh

                            noted, it works now, thank you!

                            1 Reply Last reply Reply Quote 1
                            • donhoD Offline
                              donho
                              last edited by

                              FYI, the new plugins schema (simplified) has been modified:
                              https://notepad-plus-plus.org/community/topic/16645/new-plugins-home-where-notepad-will-load-from

                              1 Reply Last reply Reply Quote 2
                              • Eric YWYE Offline
                                Eric YWY
                                last edited by

                                Found that the Notepad++ main program cannot be restarted after installing the update of plugin from Plugin Admin

                                1 Reply Last reply Reply Quote 0
                                • dinkumoilD Offline
                                  dinkumoil
                                  last edited by

                                  @Eric-YWY

                                  Which plugin did you install?

                                  It seems like the plugin has to be changed to adopt the new plugin hosting model of v7.6. Look for a folder with companion files and move this folder to <Npp-install-dir>\plugins.

                                  1 Reply Last reply Reply Quote 0
                                  • Dave BongfishtesterD Offline
                                    Dave Bongfishtester
                                    last edited by

                                    I’ve spent half a day now trying various versions of Notepad++ with PythonScript. The deadline for the files which my script was supposed to fix was yesterday afternoon.

                                    Thank you for the wonderfully bug-free and well-explained update process :-(

                                    Meta ChuhM 1 Reply Last reply Reply Quote 0
                                    • Meta ChuhM Offline
                                      Meta Chuh moderator @Dave Bongfishtester
                                      last edited by

                                      @Dave-Bongfishtester

                                      i apologise for your inconvenience.

                                      many thanks for your patience and best regards.

                                      1 Reply Last reply Reply Quote 0
                                      • ahmoy lawA Offline
                                        ahmoy law
                                        last edited by

                                        Hi all,
                                        I want to update the plugin list to add my new plugin but received this error,

                                        “remote: Permission to notepad-plus-plus/nppPluginList.git denied to ahmoylaw.
                                        fatal: unable to access ‘https://github.com/notepad-plus-plus/nppPluginList.git/’: Failure when receiving data from the peer”

                                        To be frank, i’m not that familiar with GitHub. What is the correct procedure to update the plugin list?

                                        Thanks

                                        1 Reply Last reply Reply Quote 1
                                        • cmeriauxC Offline
                                          cmeriaux
                                          last edited by

                                          @ahmoy-law

                                          • you have to fork the repository (tutorial https://help.github.com/en/github/getting-started-with-github/fork-a-repo )
                                          • add your plugin in your own forked repository, in the file src/pl.x86.json and src/pl.x68.json.
                                            commit and push this modification to your own forked repository
                                          • submit this commit to the original repository aka doing a pull request (tutorial https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork )
                                          1 Reply Last reply Reply Quote 5
                                          • ahmoy lawA Offline
                                            ahmoy law
                                            last edited by

                                            Many thanks to @cmeriaux .

                                            I think, I have managed to create a pull request to the master. Admin please evaluate whether my plugin is good enough to be inside the official Notepad++ plugins.

                                            1 Reply Last reply Reply Quote 2

                                            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