Processing.py-Bugs icon indicating copy to clipboard operation
Processing.py-Bugs copied to clipboard

No feedback for simple errors in Python for Processing 4

Open celinelatulipe opened this issue 3 years ago • 5 comments

There is no feedback on errors in Python for Processing 4.

Two examples.

  1. Lack of cast. In the code in this screenshot, I am forgetting to cast a numeric variable (diam) to a str before concatenating it with a string variable. The sketch hangs and there is no feedback on the source of the error: image

  2. Mistyped variable name. In the code in this screenshot, I fixed the error above, but introduced a typo in the variable name (capitalized 'D' in diam). Again, the sketch hangs and there is no feedback in the Processing window about where and what the error is.
    image

celinelatulipe avatar Feb 17 '22 02:02 celinelatulipe

Confirming no runtime error messages for simple mistakes such as misspelled variables. program simply hangs

Gyroglm avatar Oct 11 '22 06:10 Gyroglm

Same issue here on macOS 12.6.1. I actually installed 3.5.4 as well as I've heard other say it worked, but I'm having the same issue there as well.

gsingh93 avatar Oct 30 '22 02:10 gsingh93

Same here, windows 11.

btingle avatar Nov 19 '22 05:11 btingle

I confirm, it is very confusing for students who are learning programming because they get stuck without knowing why.

friedelleprof avatar Dec 27 '22 15:12 friedelleprof

Dear @gsingh93, @btingle and @friedelleprof, please bear in mind that at this point Processing Python mode needs a new maintainer: https://discourse.processing.org/t/python-mode-needs-a-new-project-owner/36399/1

You might want to explore other options for teaching: https://github.com/villares/Resources-for-teaching-programming/blob/main/README.md#processing--python-tools-table

villares avatar Dec 27 '22 21:12 villares