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 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

ai-triaged bug
主要语言
TypeScript
星标
591
派生
429
平均合并
1 天 9 小时
30 天内合并 PR
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. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在列出的 Java 开发容器中运行附带的 demo2.zip 项目,并复现保存 src/main/resources/application.properties 的过程。将其与直接从 IDE 运行进行比较,然后跟踪开发容器情况下涉及的资源刷新路径;当编辑内容出现在 bin/main/application.properties 中,且无需手动重新构建整个项目时,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, spring-boot, vscode
领域
build-system, devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。