Opening project as workspace causes language server to ignore java.jdt.ls.vmargs
@testforstephen ci sta già lavorando.
Dal 5/5/2022.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
I can't reproduce this on all workspaces, but for a strange reason some projects have issues with Lombok auto-generated methods when using the Java Extension Pack where the language server fails to recognize Lombok auto-generated methods.
The root cause appears to be that the java.jdt.ls.vmargs global setting is ignored, and the language server JVM is launched without the -javaagent:/path/to/lombok.jar that the VS Code Lombok extension injects. When opening the same affected project as a folder instead of as a workspace, the vmargs are injected correctly.
Environment:
- VS Code Version: v1.66.2
- Extension Version: v0.22.4
- JDK Type & Version: Termurin 18
- OS Type & Version: Mac
Step to Reproduce:
- Open project as workspace
- Enable/install Java Extension Pack and Lombok extensions
- Write a POJO making use of
@Getterand@SetterLombok annotations - Try to call the getters of said POJO from another class
Expected Behavior:
Code intellisense/autocomplete shows Lombok-generated getters and setters, and code written calling the getters and setters has no errors.
Actual Behavior:
VS Code claims the getters and setters are undefined methods, and will not build or compile the project. Maven can compile the code with a mvn clean compile normally.
Related Issues:
Possibly related to https://github.com/redhat-developer/vscode-java/issues/1802
- Lingua principale
- TypeScript
- Stelle
- 352
- Fork
- 166
- Merge medio
- 17h 47m
- PR unite (30g)
- 32
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
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.
Altre issue di microsoft/vscode-java-pack
-
Memory Leak in Linux Apertaai-triaged bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
microsoft/vscode-java-pack#1543 · 8 commenti · 4 reazioni ·
-
ai-triaged bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
microsoft/vscode-java-pack#1443 · 1 commento · 2 reazioni ·
-
ai-triaged bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
microsoft/vscode-java-pack#1425 · 1 commento ·
-
ai-triaged enhancement feature-request
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
microsoft/vscode-java-pack#1423 · 2 commenti · 1 reazione ·
-
ai-triaged area/jdtls bug needs-investigation
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
microsoft/vscode-java-pack#1420 · 1 commento ·
Tutte le issue di microsoft/vscode-java-pack
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
copse-dev/agent-pane#2953 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
[Bug]: Matrix progress drafts fail with "Matrix runtime not initialized" during tool activity Apertabug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
calcite-components needs triage refactor
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Esri/calcite-design-system#15203 ·