jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

No feedback for simple errors in Python for Processing 4 #347

Open celinelatulipe opened 2 years ago

celinelatulipe commented 2 years ago

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
Gyroglm commented 1 year ago

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

gsingh93 commented 1 year ago

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.

btingle commented 1 year ago

Same here, windows 11.

friedelleprof commented 1 year ago

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

villares commented 1 year ago

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