redhat-developer / redhat-developer/vscode-java

Java package taking 100% CPU under very specific conditions

Abierto
#4,052 2 comentarios 3 reacciones 1 asignado Ver en GitHub

@snjeza ya está trabajando en esto.

Desde el 30/1/2026.

performance upstream
Lenguaje dominante
TypeScript
Estrellas
2.3k
Forks
546
Merge medio
20 h 1 min
PR fusionados (30 d)
11

Descripción

Here are the minimal conditions needed to reproduce this issue:

  • A Java package has a dependency on Lombok.
  • A method uses Lombok's @NonNull on a parameter.
  • The first line of the method is a comment.
  • The line after the comment is NOT empty.
  • The lombok.nonNull.exceptionType = JDK option is set in a lombok.config file.

If you open this project in VS Code with the redhat.java extension, any modification in that same file that does not break the above criteria (such as adding a comment on the last line and saving) will take 100% of one CPU core. Do it 5 times, and it will take 5 cores!

This high CPU usage stops after a while, but it makes the whole machine unresponsive if you make several modifications quickly.

You can use this minimal repo to reproduce the bug: ipkiss42/vscode-java-4052.

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.