processing / processing/processing4

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

Đang mở
#793 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

bug contribution has attachment pde
Ngôn ngữ chính
Java
Star
494
Fork
183
Merge trung bình
4 giờ 39 phút
Pull request đã merge (30 ngày)
3

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện lỗi crash trong Processing 4.3 với Python Mode 4001 trên Linux Mint 21.2, so sánh việc tải bằng Open, Open Recent và Sketchbook với việc tải qua hộp thoại Examples. Hoàn thành khi một sketch Python được lưu bên ngoài vị trí Examples tải thành công mà IDE không bị đóng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, python
Lĩnh vực
desktop-dev, tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.