Processing IDE 4.4.4 does not show line in error

void setup(){
  println("arrived at setup");
  // force a divide check to illustrate how errors are displayed
  int x= 0;
  int y= 2/x;
  x=y;
}

void setup(){
println(“arrived at setup”);
// force a divide check to illustrate how errors are displayed
int x= 0;
int y= 2/x;
x=y;
}

The code above is a short sample to illustrate. The real code has 1000+ lines and finding where the error happened is quite a chore. I may have to revert to IDE 3.5.3 just to get that help.

I have upgraded from the 3.5.3 IDE to 4.4.4. Run-time errors are not indicating the code line is question making debug a horrendous battle! I am working in Java mode and have reinstalled the IDE, same problem Do I have a setting wrong? Or any suggestions. Thanks

Please post the full code. :smiling_face_with_sunglasses:

Too many lines to post effectively. I will work up a short example. In the IDE 3.5.3 the editor window to switch to show where the error was detected and highlight that line. 4.4.4 just gives an error message with no clue where it occurred. I will amend my post soon.

I think it’s being worked on.:smiling_face_with_sunglasses:

Hello @rhole,

It works in Processing 4.3.4 in Windows 10:

Related:

This (from github issue) highlights error in Processing 4.3.4:

:)

It’s a known issue with Processing 4.4.4. You might consider dropping back to 4.3.x.

1 Like

Thanks, I installed 4.3.4 and it handles the errors as expected. Whew! What a relief!!!

1 Like

Processing 4.0 was a major leap forward from Processing 3.5.4 and certainly had its challenges along the way.

Processing 4.0:

Lots of other changes in between from 4.0 to 4.3.

Processing 4.4 is another step forward from 4.3 and will certainly also have challenges:

Most of the work happened behind the scenes, including various quality-of-life improvements for developers working on the codebase. Key updates include migrating the build system from Ant to Gradle and beginning the transition from Swing to Jetpack Compose Multiplatform . This is part of a global effort to modernize the project’s infrastructure to support future developments, and make it easier for more people to get involved.

“The only constant in life is change.” - Heraclitus

This applies to software as well!
We are all living with this reality and the challenges of updates… it is not just Processing.

Perusing the releases shows all the progress that has been made!
Releases · processing/processing4 · GitHub

It would like to see the issues communicated to users in a simple transparent way.
I don’t have a simple solution for this.
The Processing Community Forum and GitHub may not be used by everyone and if they do come here we could direct them to the issues resources as a first step.

A simplified list to current issues could be linked:

  • On the main Processing website where it is easy to find.
  • It should be one stop shopping, easy to find and maintained and up to date.
  • Links to Processing Community Forum and GitHub if further support is needed.
  • Alongside the download would a logical choice:
    Download Processing / Processing.org
  • Processing Community Forum may want to have a pinned post linking to it.
  • GitHub releases could link to it.

I am experienced and that simplifies the process of finding answers and solutions.
Finding help for Processing can be a challenge.
The Processing Community Forum and GitHub are full of useful information, but they also have a lot of different threads, versions, and operating systems to sort through.
It’s easy to get lost or overwhelmed when you’re just trying to find a simple solution.
New and inexperienced users will certainly struggle.
I can also struggle at times!
My preference is always a link to a resource that answer questions; in forum posts that I both read and post.
“Teach someone to fish instead of giving them the fish” (short version) empowers users.

All that being said… I would like to see a future update address the reporting of errors sooner than later.
I too find myself using Processing 4.3.4 for bug reporting alongside Processing 4.4.4.
This is an example of one of the issues that could be listed with the Processing 4.4.x current releases.

@ProcessingOrg
Thank you to the Processing team for all the work done in keeping Processing up to date!

:)

2 Likes

Thanks @glv for sharing these links and for your suggestions :blue_heart:

Processing is free and open-source, developed and maintained by two people, together with occasional volunteers, and with support from the Processing Foundation. We do our best to share updates as they happen, but we don’t always manage to cover every channel in real time.

As @glv rightly pointed out, Processing is currently undergoing a major technical upgrade behind the scenes and, while we work hard to keep everything functioning as expected, some bugs can slip through.

I know how frustrating it can be when something that used to work no longer does, especially when it slows down debugging your sketches. This particular issue will require bigger changes under the hood before it can be fixed, but we’re on it!

If you’d like to see more about the recent and ongoing work on Processing, these links are a good starting point:

We also welcome contributions from anyone interested in helping improve Processing! If you’d like to work on bug fixes or other improvements, we’re happy to help you get started contributing.

And yes, we have some exciting things in the works that we’ll be sharing soon!

2 Likes

In my experience w/ Processing’s major version transitioning is to stick w/ latest previous major version for more than 1 or more years!

IMO, Processing is too eager to present new major versions as stable, while it still has beta and even alpha issues.

It has been true from Processing 1.x.x to 2.x.x, and to 3.x.x; and now to 4.x.x.

BtW, I’m still using latest legacy 3.5.4 version. Here’s a link to major stable version releases:

1 Like

If you revert to an older version you will be repeatedly asked to update; here’s how to stop the update dialog:

Set update.check to false in Preferences:

1 Like

Some additional related references for the community:

https://processing.org > Documentation > Environment > Preferences section. Does not have all the details!

Processing Foundation · GitHub > processing4 > Wiki > Preferences > The full list of options is in there!

Have fun!

:)