processing / processing/processing4

Python sketches that are not in Examples fail to load in the IDE

Open
#793 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug contribution has attachment pde
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:

Screenshot from 2023-10-08 14-10-49

Steps to Reproduce

  1. Install Python Mode for Processing 4 via Contribution Manager (version 4001)
  2. 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.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.