redhat-developer / redhat-developer/vscode-java
Java Language Server hangs while importing project
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia esaminando i file allegati ls-client-logs.txt e ls-server-logs.txt, quindi riproduci il blocco aprendo un workspace multi-root di grandi dimensioni in VS Code. Confronta i messaggi di importazione di Maven e Gradle e verifica che l’importazione del progetto venga completata e che le funzionalità del linguaggio diventino disponibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, typescript, vscode
- Ambito
- devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100