redhat-developer / redhat-developer/vscode-java

"Starting java language server" processing stops before 100% on workspaces with a non-existing project directory (causing "Classpath is incomplete")

Aperta
#1,303 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

classpath
Lingua principale
TypeScript
Stelle
2.3k
Fork
546
Merge medio
20h 1m
PR unite (30g)
11

Descrizione

The following workspace opens ok and "starting java language server" process finishes at 100%

{
	"folders": [
        {
            "path":"simple-project1"
        },
        {
            "path":"other-existing-dir"
        }
    ]
}

However the one below one stops at 30% because the first project path in the workspace does not exist. This causes also the following error when clicking on the code of Main.java: "Classpath is incomplete: Only syntax errors will be reported":

{
	"folders": [
        {
            "path":"non-existing-dir"
        },    
        {
            "path":"simple-project1"
        },
        {
            "path":"other-existing-dir"
        }
    ]
}
Environment
  • Operating System: Ubuntu 18.04.3 LTS
  • JDK version: 13
  • Visual Studio Code version: 1.42.1
  • Java extension version: 0.57.0 (got from changelog)
Steps To Reproduce
  • First open working-workspace.code-workspace and see the thumbs-up symbol on down-right side.
  • Then open problematic-workspace.code-workspace and see the thumbs-down symbol on down-right side.
Current Result
Expected Result
Additional Informations

code-missing-project-path-issue.tar.gz

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Direzione di ricerca

Inizia estraendo code-missing-project-path-issue.tar.gz e aprendo working-workspace.code-workspace e problematic-workspace.code-workspace in VS Code. Riproduci prima l'avvio del language server con il percorso del progetto inesistente, quindi confronta l'avanzamento e la diagnostica con il workspace funzionante. Il lavoro è completato quando l'avvio raggiunge il 100% e Main.java non segnala più un classpath incompleto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java, typescript, vscode
Ambito
devtools
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.