microsoft / microsoft/vscode-java-debug

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

Đang mở
#1,366 1 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

ai-triaged bug
Ngôn ngữ chính
TypeScript
Star
591
Fork
429
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
19

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách chạy dự án demo2.zip đính kèm trong Java dev container được liệt kê và tái hiện việc lưu src/main/resources/application.properties. So sánh với việc chạy trực tiếp từ IDE, sau đó lần theo đường dẫn làm mới tài nguyên liên quan trong trường hợp dev container; được coi là hoàn tất khi các chỉnh sửa xuất hiện trong bin/main/application.properties mà không cần xây dựng lại thủ công toàn bộ dự án.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, spring-boot, vscode
Lĩnh vực
build-system, devtools
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.