thonny-py5mode icon indicating copy to clipboard operation
thonny-py5mode copied to clipboard

Drop support for Thonny 3.x.x import layout

Open GoToLoop opened this issue 3 months ago • 4 comments

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

https://github.com/py5coding/thonny-py5mode/pull/14

GoToLoop avatar Sep 15 '25 07:09 GoToLoop

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.

hx2A avatar Sep 16 '25 03:09 hx2A

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.

GoToLoop avatar Sep 16 '25 07:09 GoToLoop

What exactly does file "py5_imported_mode_backend.py" do?

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

villares avatar Sep 16 '25 11:09 villares

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! 🕵️

GoToLoop avatar Sep 16 '25 16:09 GoToLoop