microsoft / microsoft/vscode-java-dependency
Java project in subdirectory of workspace
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 199
- Fork
- 105
- Merge medio
- 1g 22h
- PR unite (30g)
- 27
Descrizione
Hello,
I'm in the same situation as https://github.com/microsoft/vscode-java-dependency/issues/493 and would like to understand how things are supposed to be configured.
I'm having a folder structure like
my-project/ (workspace)
L java-app/
L pom.xml
L frontend/
L some-other-sub-project/
L my-project.code-workspace
My workspace file looks like
{
"folders": [
{
"path": "."
}
],
"launch": {
"configurations": [
{
"type": "java",
"name": "Launch My project java app",
"request": "launch",
"mainClass": "com.example.javaApp.MainClass"
"envFile": "${workspaceFolder}/.env",
"projectName": "java-app",
"args": "--spring.profiles.active=development"
}
],
"compounds": []
}
}
But
- the "Java Projects" section in the explorer is empty
- when running my launch config I'm getting
ConfigError: The project 'newstimeline-server' is not a valid java project.
When I change my workspace to
"folders": [
{
"path": "."
},
{
"path": "java-app"
},
],
then my project is shown in the "Java Projects" section and I can get the launch config to somehow work.
But that seems more like a workaround.
How would the java extension pack expect me to configure this situation?
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
Riproduci la disposizione del workspace segnalata con java-app/pom.xml e la configurazione di avvio .code-workspace fornita. Inizia esaminando come l’estensione Java rileva i progetti nelle cartelle del workspace annidate e risolve projectName. Il lavoro è completo quando la vista Java Projects riconosce il progetto annidato senza aggiungere java-app come cartella del workspace separata e la configurazione di avvio funziona in modo coerente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, typescript, vscode
- Ambito
- developer-experience, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100