redhat-developer / redhat-developer/vscode-java
Java Language Server hangs while importing project
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 2.3k
- Forks
- 546
- Merge medio
- 20 h 1 min
- PR fusionados (30 d)
- 11
Descripción
When opening my work repository as a multi-root workspace, the Java Language Server seems to hang indefinitely while importing/refreshing the root project.
Environment
- Operating System: Ubuntu 20.04.6
- JDK version: 11 for the project, 17 for the extension
- Visual Studio Code version: 1.78.2
- Java extension version: 1.18.0
Steps To Reproduce
This happens as soon as I open my project in VSCode and the language server starts up. I can't link to the repository because it's private. This doesn't happen on smaller repositories.
Current Result
The language server output hangs after printing the output:
03ec6036 Reporting encoding changes. [Done]
f29dbd85 Importing root project: 31% Refreshing '<project root dir>'. [308/1000]
Expected Result
It should continue to import the project and then offer up the language features it advertises.
Additional Informations
Not sure if this is relevant, but sometime the output above shows a second message related to Gradle instead. We're currently migrating from using Maven to Gradle, and we have the structure for both build systems in the repository right now. I've disabled all the options for the Java LS extension related to Maven that I could find.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza revisando los archivos adjuntos ls-client-logs.txt y ls-server-logs.txt; después, reproduce el bloqueo abriendo un espacio de trabajo multi-raíz grande en VS Code. Compara los mensajes de importación de Maven y Gradle y verifica que la importación del proyecto se complete y que las funcionalidades de lenguaje estén disponibles.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, typescript, vscode
- Área
- devtools
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Necesita aclaración
- Aptitud para principiantes
- 30/100