• Login
Community
  • Login

findText

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
5 Posts 2 Posters 358 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.
  • P
    Paul Wormer
    last edited by Feb 24, 2022, 10:52 AM

    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.dll

    Does anybody have any suggestions? Thanks in advance.

    E 1 Reply Last reply Feb 24, 2022, 11:32 AM Reply Quote 0
    • E
      Ekopalypse @Paul Wormer
      last edited by Feb 24, 2022, 11:32 AM

      @paul-wormer

      You need to update PythonScript due to the changes made in Npp 8.3.

      P 2 Replies Last reply Feb 24, 2022, 12:22 PM Reply Quote 0
      • P
        Paul Wormer @Ekopalypse
        last edited by Feb 24, 2022, 12:22 PM

        @ekopalypse
        Thank you, I didn’t know that.

        1 Reply Last reply Reply Quote 0
        • P
          Paul Wormer @Ekopalypse
          last edited by Feb 24, 2022, 12:30 PM

          @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?

          P 1 Reply Last reply Feb 24, 2022, 12:39 PM Reply Quote 0
          • P
            Paul Wormer @Paul Wormer
            last edited by Feb 24, 2022, 12:39 PM

            @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.

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