findText
-
I have several scripts that use
editor.findText
. Since some time it does not find anything. Example:from __future__ import print_function from Npp import * # DELIMITER pos = editor.findText(FINDOPTION.WHOLEWORD, 0, editor.getLength(), "DELIMITER") print(pos) # --> none
My debug info is:
Notepad++ v8.3.1 (64-bit)
Build time : Feb 13 2022 - 15:41:12
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Home (64-bit)
OS Version : 2009
OS Build : 19043.1526
Current ANSI codepage : 1252
Plugins : ColumnTools.dll DSpellCheck.dll HexEditor.dll mimeTools.dll NppConverter.dll NppExport.dll PythonScript.dllDoes anybody have any suggestions? Thanks in advance.
-
You need to update PythonScript due to the changes made in Npp 8.3.
-
@ekopalypse
Thank you, I didn’t know that. -
@ekopalypse
I removed pythonscript (per Plugins Admin) and reinstalled it (also per Plugins Admin). I now have 1.5.4.0, but it still does not work. Do I have to update via another route? -
@paul-wormer I updated to version 2.0.0 via GitHub and now it works. Windows defender warned severely for viruses though, which I somewhat reluctantly ignored.