Community
    • Login

    findText

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 2 Posters 648 Views 1 Watching
    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.
    • Paul WormerP Offline
      Paul Wormer
      last edited by

      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.

      EkopalypseE 1 Reply Last reply Reply Quote 0
      • EkopalypseE Offline
        Ekopalypse @Paul Wormer
        last edited by

        @paul-wormer

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

        Paul WormerP 2 Replies Last reply Reply Quote 0
        • Paul WormerP Offline
          Paul Wormer @Ekopalypse
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • Paul WormerP Offline
            Paul Wormer @Ekopalypse
            last edited by

            @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 WormerP 1 Reply Last reply Reply Quote 0
            • Paul WormerP Offline
              Paul Wormer @Paul Wormer
              last edited by

              @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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors