Skip to content

editor.getTextRange() not present in 3.0.23 release #391

Closed

Description

@alankilborn

I can't tell if this is intentional or not, as the "What's Changed" section is hard to read from a user perspective because it is auto-generated.

I tried: PythonScript_Full_3.0.23.0_x64.zip.

Image

Activity

  1. chcg commented on Jul 13, 2025

    @chcg
    Collaborator

    @alankilborn Intentionally, updated release notes:

    update to N++ 8.8.2 and removal of corresponding methods from pythonscript which are commented out from N++ scintilla interface:
    
    deprecated by N++ 2GB+ support via new scintilla interfaces from 5.2.3 (see https://www.scintilla.org/ScintillaHistory.html), please use SCI_GETTEXTRANGEFULL, SCI_FINDTEXTFULL,SCI_GETSTYLEDTEXTFULL and SCI_FORMATRANGEFULL and corresponding defines/structs
    

    Do you consider that as a major issue?

  2. alankilborn commented on Jul 14, 2025

    @alankilborn
    Author

    Do you consider that as a major issue?

    "major"...well, no, I guess not.

    But now all Pythonscript programmers are going to have to carry along the "Full" part (i.e., getTextRangeFull), which just feels awkward. As the arguments and return value are the same (at the Python level) for the old getTextRange and the current getTextRangeFull, it would have been nice for the plugin itself to convert calls to the former into the latter, as a convenience to the programmer.

  3. alankilborn commented on Jul 14, 2025

    @alankilborn
    Author

    Workaround:

    Put the following in user startup.py:

    editor.getTextRange = editor.getTextRangeFull
    editor1.getTextRange = editor1.getTextRangeFull
    editor2.getTextRange = editor2.getTextRangeFull
  4. gxhhaley commented on Jul 19, 2025

    @gxhhaley

    i want a release download

  5. Ekopalypse commented on Jul 19, 2025

    @Ekopalypse
    Contributor

    @gxhhaley - What do you mean? This?

  6. added a commit that references this issue on Sep 29, 2025
  7. chcg commented on Oct 1, 2025

    @chcg
    Collaborator

    @alankilborn added getStyledText(), findText(), getTextRange() again as substitutes to their corresponding Full versions. Hope that is fixing it for you, see https://github.com/bruderstein/PythonScript/releases/tag/v3.0.24 . Sorry for the long delay for it.

  8. Ekopalypse commented on Mar 9, 2026

    @Ekopalypse
    Contributor

    Any reason why this is still open? PS 2?

  9. chcg commented on Mar 11, 2026

    @chcg
    Collaborator

    Just waited for confirmation that the impl is what is expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions