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

Attribute Error suggestions don't work in imported mode #276

Closed hx2A closed 1 year ago

hx2A commented 1 year ago

Fixed with #277

hx2A commented 1 year ago

@villares , this is now fixed.

% run_sketch test_static_imported.py
py5 encountered an error in your code:

--> 1    c = colour(255, 0, 0)
    2    background(c)

NameError: The name "colour" is not defined. Did you mean "color"?

Works for the py5bot and py5 kernels and the run_sketch command line utility.

hx2A commented 1 year ago

@villares I just uploaded the py5 test distribution files to the same place where you got the previous one. Thank you again for your testing and diligence finding bugs.

Also, this is the first GitHub Copilot-assisted code fix. It is not a magic wand but it did help move this long faster.

villares commented 1 year ago

Hurray! I have just tested it on Linux and it worked brilliantly.