microsoft / microsoft/vscode-java-debug
Does not refresh files under resources in Spring Boot Gradle project on save when running in dev container
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 591
- フォーク
- 429
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 19
説明
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.
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、記載されている Java dev container で添付の demo2.zip プロジェクトを実行し、src/main/resources/application.properties の保存を再現します。直接 IDE から実行した場合と比較し、その後、dev container のケースで関係するリソース更新パスを追跡します。プロジェクト全体を手動で再ビルドしなくても、編集内容が bin/main/application.properties に現れれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, spring-boot, vscode
- 領域
- build-system, devtools
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100