py5coding / py5generator

Meta-programming project that creates the py5 library code.
https://py5coding.org/
GNU General Public License v3.0
52 stars 13 forks source link

In Thonny, single line `setup()` functions with one space between `setup()` and `draw()` trips up py5 #117

Closed hx2A closed 2 years ago

hx2A commented 2 years ago

For example:

def setup():
    size(200, 200)

def draw():
    background(0)

This give an error that size cannot be used here. Somehow this is tripping up the split setup code.

Also, if those two functions are reversed, there is an additional error.

hx2A commented 2 years ago

This is a serious enough of an error to warrant a release in the near future. I'll make a few other small bug fixes and then do a release within the next week or two.