Community
    • Login

    PythonScript: "New Script" not shown

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 4 Posters 102 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.
    • S
      snafu423
      last edited by snafu423

      Hi
      I’m new to PS, but find it very handy to create (and update) automations in npp :)

      I’m having issues creating new scripts … which was “type of working” before.

      Clicking on: => Plugins => Python Script => New Script
      this opens the file selector in the folder .\plugins\config\PythonScript\scripts
      after creating some random file, it does neither show up under
      => Plugins => Python Script => Scripts
      nor
      => Plugins => Python Script => Configuration ...
      ... even after restarting npp
      

      Seems to me this is what is recommended in “FAQ: How to install and run a script in PythonScript” …
      … or do I miss any step or do anything wrong?

      Best regards!
      Peter

      Not sure if this matters: using npp portable (v8.9)
      (first posted on PythonScript’s forum on sourceforge - but got no reply)

      Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @snafu423
        last edited by Alan Kilborn

        @snafu423

        Probably start by posting your Notepad++ Debug Info.

        Details on how to do that:
        In your Notepad++, click on the “?” menu (found to the right of “Window” in the menu bar). In the menu that drops down, choose “Debug Info…”. A dialog will open detailing specifics about your Notepad++ version, plugins, etc. CLICK ON THE BUTTON “Copy debug info into clipboard”. Do a PASTE HERE.

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

          @snafu423 said in PythonScript: "New Script" not shown:

          after creating some random file, it does neither show up under
          => Plugins => Python Script => Scripts

          I had never noticed before, but I just tried the experiment: when you first create an empty file that way, it doesn’t show up. But as soon as you put any text in that script and save it (whether it’s just the initial from Npp import editor line, or even a simple # comment line), after you’ve saved it with content, then it does show up in the Scripts sub-menu. (One more experiment: I created a new file, then typed a space then a backspace, and saved it, and it still showed up. So it just takes an active save after creating the empty file for PythonScript to add it to the menu.)

          1 Reply Last reply Reply Quote 2
          • S
            snafu423 @Alan Kilborn
            last edited by

            @Alan-Kilborn

            this is what Debug Info tells:

            Notepad++ v8.9 (64-bit)
            Build time: Dec 27 2025 - 14:28:33
            Scintilla/Lexilla included: 5.5.8/5.4.6
            Boost Regex included: 1_85
            TinyXML-2 included: 11.0.0
            nlohmann JSON included: 3.12.0
            Path: C:_shared_apps\PortableApps\Notepad++Portable\App\Notepad++64\notepad++.exe
            Command Line:
            Admin mode: OFF
            Local Conf mode: ON
            Cloud Config: OFF
            Periodic Backup: ON
            Placeholders: OFF
            Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1)
            Multi-instance Mode: monoInst
            asNotepad: OFF
            File Status Auto-Detection: cdEnabledNew (for current file/tab only)
            Dark Mode: OFF
            Display Info:
            primary monitor: 1920x1080, scaling 100%
            visible monitors count: 3
            installed Display Class adapters:
            0000: Description - Intel® Arc™ 140V GPU (16GB)
            0000: DriverVersion - 32.0.101.8247
            OS Name: Windows 11 Enterprise (64-bit)
            OS Version: 24H2
            OS Build: 26100.8037
            Current ANSI codepage: 1252
            Plugins:
            ComparePlugin (2.0.2)
            mimeTools (3.1)
            NppConverter (4.7)
            NppExport (0.4)
            PythonScript (2.1)

            @PeterJones
            yes, I think what you describe is the way it should work … unfortunately, it does not for me 🤷

            Alan KilbornA mpheathM 2 Replies Last reply Reply Quote 1
            • Alan KilbornA
              Alan Kilborn @snafu423
              last edited by

              @snafu423 said:

              PortableApps

              Are you truly using the “PortableApps” version of Notepad++?
              Or is this just your directory naming?

              1 Reply Last reply Reply Quote 0
              • mpheathM
                mpheath @snafu423
                last edited by

                @snafu423

                I installed PortableApps v30.3 with Notepad++ v8.9.3 into a virtual machine to test.

                The directory path expected from your Debug Info path for the scripts would be:

                C:\_shared_apps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\scripts
                

                This is the output from running UserInfo.py from my testing:

                # All paths listed in sys.path:
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\lib
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\lib
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\scripts
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\scripts
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\lib\lib-tk
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\python27.zip
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\DLLs
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\lib
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\lib\plat-win
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\lib\lib-tk
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\lib\site-packages
                
                # Can make user dirs:
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\lib
                
                # Can add user scripts to the path:
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\scripts
                
                # Can add user startup.py with this path:
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\scripts\startup.py
                
                # Startup method:
                Undefined
                
                # Can add user libraries for importing to the path:
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\Config\PythonScript\lib
                
                # Can view documentation in this path:
                C:\PortableApps\PortableApps\Notepad++Portable\App\Notepad++64\plugins\PythonScript\doc
                
                

                Installed PortableApps to C:\PortableApps so the name looks doubled.

                It looks similar with the sub directory paths of the portable Notepad++ from Github.

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