Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User startup.py is being executed TWICE #339

Open
alankilborn opened this issue Jun 10, 2024 · 0 comments
Open

User startup.py is being executed TWICE #339

alankilborn opened this issue Jun 10, 2024 · 0 comments

Comments

@alankilborn
Copy link

In version 3.0.18, add following code to user startup.py:

try:
    hello
except:
    hello = 0
hello += 1
print('hello:', hello)

Make sure that the PythonScript console window is being shown when exiting Notepad++.

Upon restarting Notepad++, the code above will show that startup.py is being executed two times:

image


Notepad++ Debug Info:

Notepad++ v8.6.8 (64-bit)
Build time : Jun 4 2024 - 00:30:00
Path : C:\NotepadPlusPlus\Misc_NoBackup\Releases\npp.8.6.8\npp.8.6.8.portable.x64\notepad++.exe
Command Line : -titleAdd="8.6.8 64-bit" -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 11 Pro (64-bit)
OS Version : 23H2
OS Build : 22631.3593
Current ANSI codepage : 1252
Plugins :
mimeTools (3.1)
NppConverter (4.6)
NppExport (0.4)
PythonScript (3.0.18)


Probably introduced when #312 was solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant