processing / processing/processing4

`boolean record = true;` causes a syntax error even thought it is valid Java

Abierto
#1,241 3 comentarios 0 reacciones 1 asignado Ver en GitHub

Nadie ha tomado este issue todavía.

bug
Lenguaje dominante
Java
Estrellas
494
Forks
183
Merge medio
4 h 39 min
PR fusionados (30 d)
3

Descripción

Most appropriate sub-area of Processing 4?

PDE

Processing version

main

Operating system

macOS/Windows/Linux?

Bug description

Adding boolean record = true; anywhere to the sketch causes the preprocess to emit an Error even though it is valid Java.

This is what I know so far:

  • record is a java keyword
  • changing it to boolean record1 = true; suppresses the error
  • I tried changing the antlr version back to what it was defined in the Ant build system but that didn't help either
Steps to reproduce this
  1. Add boolean record = true; to a sketch

  2. See the preprocessor be unhappy

snippet
boolean record = true;

void setup() {

}

void draw() {
 
}
Additional context

No response

Would you like to work on the issue?

Yes, I’d like to help with this

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.