processing / processing/processing4

Using right-click 'Jump to declaration' menu item causes Processing to lock-up in some sketches.

Aperta
#527 24 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

help wanted
Lingua principale
Java
Stelle
494
Fork
183
Merge medio
4h 39m
PR unite (30g)
3

Descrizione

Created by: matkeane

Description

Using right-click 'Jump to declaration' menu item causes Processing to lock-up in some sketches.

When selecting a variable or function name in the UI and clicking on 'Jump to declaration' Processing locks up - No error is shown in the console but the UI becomes unresponsive, menus no longer open and windows cannot be opened or closed. I did wonder if things were just slow, but 10-15 minutes later, Activity Monitor shows Processing as 'not responding' but using between 25-25% CPU.

I first noticed the problem when working on my own projects, so it's quite possible there's something horrible about my code which is triggering this (my current project has a few thousand lines of code in 28 files, so quite likely I guess). Having said that, the same project didn't trigger this problem using Processing 3.5.4, I only encountered this after opening the project in Processing 4. Different versions of the project compile and run without errors under versions 3 & 4 of Processing.

While the problem doesn't occur when opening single-tab examples or sketches, it does happen with some of the multi-file example code from the 'Generative Design' book, but doesn't occur when testing a sketch by Marius Watz in 2 tabs.

In addition to controlP5 (which doesn't trigger the error in other sketches) my current project imports the following libraries:

import java.util.Locale;
import java.awt.datatransfer.*;
import java.awt.Toolkit;
import java.io.FileInputStream; // File Streams.
import java.io.FileOutputStream;
import java.util.UUID;
import java.util.zip.ZipEntry;
import java.util.zip.ZipOutputStream;

Expected Behavior

In Processing 3, the 'Jump to declaration' menu item would jump straight to the appropriate variable/function declaration.

Current Behavior

In version 4, 'Jump to declaration' sometimes causes Processing to become unresponsive.

Steps to Reproduce

Some of the sketches which trigger the problem import external libraries, but I haven't found a sketch (other than my own) which always triggers the problem.

Your Environment

  • Processing version: Processing 4.0b8
  • Operating System and OS version: Mac OS 10.15.7

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia riproducendo il blocco in Processing 4.0b8 su macOS con sketch composti da più file, inclusi gli esempi di Generative Design, e confronta la stessa azione in Processing 3.5.4. L’indagine dovrebbe restringere il campo per determinare quale sketch o modello di importazione attiva il malfunzionamento; il lavoro è completato quando “Jump to declaration” rimane reattivo e raggiunge la dichiarazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
desktop-dev, developer-experience
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.