Open
Description
#312 introduced persistence of the console window. I think that code has problems.
Try this user startup.py:
try:
startup_already_ran
print('NOT running startup things a second time')
except:
startup_already_ran = True
print('running startup things...')
console.show()
(note that the try/except wrapper is because of this other bug: #339 )
Exit Notepad++ with the console window showing and restart. At restart the console window will NOT be shown. Removing the console.show()
line in the script results in correct persistence behavior of the console window.
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.3737
Current ANSI codepage : 1252
Plugins :
mimeTools (3.1)
NppConverter (4.6)
NppExport (0.4)
PythonScript (3.0.18)