Skip to content

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

Open
@processing-bot

Description

@processing-bot

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontributionhas attachmentAttachment was not transfered from GitLabpdeProcessing Development Environment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions