py5coding/py5generator

Issue on page /reference/py5functions.html

Closed this issue ยท 4 comments

harrih commented

Hi there just coming to py5 and python
Very happy to stumble across this development as Im attempting to do some fairly maths intensive work in the processing environment where python libs would be invaluable.

Trying to use with Thonny in an 86 osx environment
seems to all work with exception of code completion.
No idea if this is a Py5 or Thonny issue.

By whatever method I invoke code completion the cursor stalls just after
whatever suggestion is selected.
e g rect ^ (
^ represents stuck cursor position
The only response available from keyboard or mouse is to add repeated suggestions
"rects" in this case

eg i get rectrectrectrectrectrectrectrect ^ (
only way Ive found to exit this without shutting Thonny
is to go into options and turn off code completion and that will release the cursor.
makes py5 in Thonny very difficult to use at present

hx2A commented

Welcome, @harrih , and thank you for your interest in py5.

@villares , can you provide some insight here? You have more experience using py5 and Thonny.

@harrih , can you tell me more about what you want to do? For more elaborate quantitative programming, VSCode might be a good choice if you are comfortable using it.

harrih commented

Wellcome, @harrih!

I'm sorry I don't have that much insight about this. I wish @tabreturn could have a look at it...

I find the Thonny autocomplete a bit unreliable, I have noticed about a year ago that while a sketch is running things get worse, it used to freeze, and I have been fiddling with the settings to manually triggering completion, I think it helped a little.

I'm on Linux, not on Mac OS, but I'm using these settings:

image

The automatic parameters help seems to work on Python built-ins, or when using module mode (using everything with the py5. prefix).

hx2A commented

Thank you, @harrih . I hope you get Thonny working well for your situation. If you figure out a great solution, please let us know what you come up with!

I will close this Issue for now since there isn't a py5 issue for me to work on.