microsoft / microsoft/vscode-java-debug

Does not refresh files under resources in Spring Boot Gradle project on save when running in dev container

オープン
#1,366 コメント 1 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

ai-triaged bug
主要言語
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.

image

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
  1. Run attached project with Dev Container
  2. Try editing src/main/resources/application.properties, e.g. modifying the value of 'some.property'
  3. Check if the change is reflected in bin/main/application.properties

demo2.zip

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.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。