question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Reference to `frame` in `PApplet` should be removed?

See original GitHub issue

Getting a NoSuchFieldError on startup with Python Mode with 4.0 alpha 2 because frame has been removed, and it seems like there’s some sort of workaround that sets it null on startup:

https://github.com/jdf/processing.py/blob/master/runtime/src/jycessing/PAppletJythonDriver.java#L460

If this is still necessary, perhaps reflection to avoid calling this with newer PApplet?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
benfrycommented, Aug 4, 2021

@villares Ok, just pushed a fix for that one to the Processing 4 source (that code was making the assumption that all Modes would have an ErrorTable, which is not correct). For other issues, you’ll probably want to open something separate, since this issue is just about frame in PApplet.

2reactions
benfrycommented, Aug 6, 2021

Oh, and the “Save As” crash may be resolved by the solution described here: https://github.com/processing/processing4/issues/233#issuecomment-892615250

(Now I’m the one discussing multiple issues in the same report…)

Read more comments on GitHub >

github_iconTop Results From Across the Web

PApplet - GitHub Pages
As of Processing 3.0, we have removed Applet as the base class for PApplet. This means that we can remove lots of legacy...
Read more >
Set default close operation on PApplet (Processing)
I´ve added an window listener to get the window closing action: //frame.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE); frame.
Read more >
embedding PApplet in Java JFrame - Processing forum
"As of Processing 3.0, we have removed Applet as the base class for PApplet. This means that we can remove lots of legacy...
Read more >
core/src/processing/core/PApplet.java - Google Git
this will be cleared by draw() if it is not overridden. looping = true; ... reference to the parent PApplet is included, which...
Read more >
PROCESSING & Java
Encapsulate the Processing sketch as an object that inherits from PApplet;; Construct that object and add it to the GUI controller frame. 25....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found