Skip to content

Drop support for Thonny 3.x.x import layout #89

Open

Description

@GoToLoop

Is thonny-py5mode expected to run on older Thonny versions like 3, given Thonny 5 is on the making?
https://github.com/thonny/thonny/releases/tag/v5.0.0a2

I'd like to drop these kinda try/except import blocks in order to simplify and eliminate type hint lint warnings:

https://github.com/py5coding/thonny-py5mode/blob/0.4.6-alpha/thonnycontrib/backend/py5_imported_mode_backend.py#L12-L26

#14

Activity

  1. hx2A commented on Sep 16, 2025

    @hx2A
    Collaborator

    The last 3.x.x Thonny release was in August of 2021.

    https://github.com/thonny/thonny/releases/tag/v3.3.14

    I think we can safely forget about 3.x.x.

  2. GoToLoop commented on Sep 16, 2025

    @GoToLoop
    ContributorAuthor

    What exactly does file "py5_imported_mode_backend.py" do?
    Is it supposed to add auto-completion for py5 + Processing API?
    B/c it doesn't seem to work for me. Only Python stuff is offered completion!
    The changes I made to that file didn't work either.

  3. villares commented on Sep 16, 2025

    @villares
    Collaborator

    What exactly does file "py5_imported_mode_backend.py" do?

    I think it adds special syntax coloring to the py5 vocabulary.

  4. GoToLoop commented on Sep 16, 2025

    @GoToLoop
    ContributorAuthor

    I think it adds special syntax coloring tho the py5 vocabulary.

    For some reason I thought it was about typing auto-completion! 🤦‍♂️

    But in order to check if it's actually doing syntax coloring, I've typed nonsense wrong syntax inside "py5_imported_mode_backend.py".

    Thonny warned me this:

    Warning: Failed loading plugin thonnycontrib.backend.py5_imported_mode_backend.
    See backend.log for more info.

    But somehow, py5 syntax coloring was still working!!! 😮

    Also, I could still run the sketch even w/ that red crash warning! 🤔

    I'm suspicious "py5_imported_mode_backend.py" isn't doing anything at all! 🕵️

  5. villares commented on Apr 27, 2026

    @villares
    Collaborator

    Let's do this @GoToLoop!
    @tabreturn can you help us clarifying if py5_imported_mode_backend.py is needed?
    We should drop support for Thonny 3.x.x and close this :)

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions