Renaming a variable leads to entire contents of the file editor being replaced with one word- Error

Abierto
#1,974 5 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
42/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
java, javascript
Área
devtools

Línea de trabajo

Reproduce el renombrado en un proyecto Gradle anidado que contenga archivos tanto de JavaScript como de Java, incluido el archivo JavaScript de dos líneas indicado en el informe. Compara Error Log, Problems view y language-server Console con un proyecto no anidado; se considera terminado cuando el renombrado ya no reemplaza el contenido del editor abierto por “Error” y el contenido modificado permanece visible sin volver a abrir el archivo.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I tried setting up an new project in my workspace and tried editing a JS file by refactoring (renaming) a variable which led to the entire contents of the file being replaced with just one word 'Error'. I would have to close the file and open it again to see its modified contents, which are correct.

What I've observed:

  1. I've observed that this only happens in a nested Gradle project which contains both Java and JavaScript files. I tried the same in a different project (not a Gradle project with sub-projects) and it worked without any issues.
  2. I created a new file in my project with just one small function with two lines and the same thing happened again.
  3. There are no unique errors reported in the 'Error Log' or 'Problems' view when comparing the two projects (one where the issue occurs and the other where it doesn't).
  4. I enabled printing language server logs to the 'Console' view and observed that there was no mention of words 'error' or 'parse' in the Console.
  5. I predicted it would be an issue with JSDT, so I downloaded Spring Tools Eclipse IDE which doesn't contain JSDT and I still get the same issue.

Any help would be appreciated.
Thank you for developing this project.

Lenguaje dominante
Java
Estrellas
203
Forks
76
Merge medio
1 d 5 h
PR fusionados (30 d)
30

Preparar el entorno

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.

Más de eclipse-wildwebdeveloper/wildwebdeveloper

Todos los issues de eclipse-wildwebdeveloper/wildwebdeveloper

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.