redhat-developer / redhat-developer/vscode-java
Build path error
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 2.3k
- Fork
- 546
- Merge medio
- 20h 1m
- PR unite (30g)
- 11
Descrizione
Hi, I have a problem about build directory.
cd /home/ray/dev/JavaProject ; /usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /home/ray/.vscode-server/data/User/workspaceStorage/154ea3c966ddc0a55d55766b94e4cd89/redhat.java/jdt_ws/jdt.ls-java-project/bin App
This command run when I open the java project in workspace and click Run.
usr/bin/env /usr/lib/jvm/java-11-openjdk-amd64/bin/java -cp /home/ray/dev/JavaProject/originaldemo/bin App
This command run when I open the project individually rather than in a workspace and click Run.
The directory structure when opened from the workspace, springdemo is another java project
Directory structure when opened separately
I can use "java.project.outputPath" option to set build directory in file JavaProject.code-workspace and it works. However, I want to set the build directory of each project in the workspace to the root directory of the project instead of the only directory of the workspace and I set this option in file settings.json under folder .vscode in this project, but this setting doesn't seem to work.
So, I want to build and run the java project using the build directory I set up for each project in my workspace instead of using the default directory under .vscode-server or the only directory of the workspace. How should I set it up to serve my purpose or is this a bug?
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 con il file workspace JavaProject.code-workspace e con il file .vscode/settings.json di ciascun progetto, confrontando il modo in cui viene applicato java.project.outputPath quando i progetti vengono aperti insieme o separatamente. Riproduci l’azione Run con la disposizione del progetto mostrata; il lavoro è completato quando ogni progetto del workspace usa la propria directory di output configurata invece del percorso condiviso .vscode-server.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, vscode
- Ambito
- build-system, developer-experience
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100