microsoft / microsoft/vscode-java-debug
Does not refresh files under resources in Spring Boot Gradle project on save when running in dev container
Nessuno ha ancora preso questa issue.
- Lingua principale
- TypeScript
- Stelle
- 591
- Fork
- 429
- Merge medio
- 1g 9h
- PR unite (30g)
- 19
Descrizione
This is a similar issue as #1059 but it only occurs when running in dev container.
When editing a file under the resources folder(e.g. src/main/resources/application.properties), the same file under bin folder(e.g. bin/main/application.properties) is not getting refreshed on save if running in dev container. If it's running directly, it gets refreshed without issue.
Environment
- Operating System: Dev Container: java:1-17-bullseye / Direct run: Win11 x64
- JDK version: openjdk 17.0.7 2023-04-18 LTS
- Visual Studio Code version: 1.80.1
- Java extension version: 1.20.0
- Java Debugger extension version: 0.52.0
Steps To Reproduce
- Run attached project with Dev Container
- Try editing src/main/resources/application.properties, e.g. modifying the value of 'some.property'
- Check if the change is reflected in bin/main/application.properties
Current Result
Files under resources are not getting refreshed upon save and require manually triggering the rebuild of the entire project to get them refreshed.
Expected Result
The files under resources should be refreshed upon saving just like the behavior when running the IDE directly.
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 eseguendo il progetto demo2.zip allegato nel dev container Java indicato e riproduci il salvataggio di src/main/resources/application.properties. Confrontalo con un’esecuzione diretta dall’IDE, quindi traccia il percorso di aggiornamento delle risorse coinvolto nel caso del dev container; il lavoro è completato quando le modifiche compaiono in bin/main/application.properties senza dover ricostruire manualmente l’intero progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- java, spring-boot, vscode
- Ambito
- build-system, devtools
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100