processing / processing/processing4
Python sketches that are not in Examples fail to load in the IDE
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 494
- Forks
- 183
- Avg merge
- 4h 39m
- Merged PRs (30d)
- 3
Description
In GitLab by @Zishan-Rahman on Oct 8, 2023, 15:34
Description
Whenever I try to load a Processing sketch in Python, other than an example sketch via the "Examples" selection dialog, the IDE crashes and closes by itself. I tried opening the sketch via "Open Recent", "Open" and even the "Sketchbook" selection dialog, but still the sketch fails to load. Java mode does not have this issue.
Expected Behavior
The Python sketch should load without further issues, just as a Java sketch would (and does).
Current Behavior
When I try to load the sketch, I get this error:
Steps to Reproduce
- Install Python Mode for Processing 4 via Contribution Manager (version 4001)
- Load a sketch via the aforementioned methods (any method other than the "Examples" dialog). I usually load an example sketch, save it in a different folder (using "Save As", of course), then close the IDE and try to open the same sketch from its new location.
- Wait for the error message to show up.
Your Environment
- Processing version: 4.3
- Operating System and OS version: Linux Mint 21.2
- Other information: Python Mode for Processing 4 version 4001
Possible Causes / Solutions
Hopefully it's just a fixable bug in file handling somewhere. I don't know for sure yet, though.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash in Processing 4.3 with Python Mode 4001 on Linux Mint 21.2, comparing Open, Open Recent, and Sketchbook loading with the Examples dialog. Done means a Python sketch saved outside the Examples location loads successfully without the IDE closing.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, python
- Domain
- desktop-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100