microsoft / microsoft/vscode-java-debug

Add/Delete Method not implemented - Hot Code Replace

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

@testforstephen đang làm issue này rồi.

Từ ngày 5/8/2022.

ai-triaged bug hcr question
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ả

My company works on a larger sized Java project, and we cannot get hot code replace to work in vscode. I suspect this is probably related to something about our specific project and how it's set up, and I'm hoping someone can give further direction for troubleshooting the problem.

Environment
  • Operating System:
    • Host: Ubuntu 22.04/21.10
    • Running App (Docker Images):
      • FROM ghcr.io/graalvm/graalvm-ce:java17-21.3.0
      • FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:18-bullseye (installing graal manually)
  • JDK version: 17 (graal, but also tested using open-jdk)
  • Visual Studio Code version: 1.69.2
  • Java extension version: 1.9.0 (Redhat)
  • Java Debugger extension version: 0.43.0
Steps To Reproduce

Due to the complex nature of our project, I'm not sure how to provide a reproducible example. Here are some things we've tried.

  • We run our java app in a container managed by kubernetes. We are able to attach the debugger to the running process, but hot code deploy will fail to work.
  • We've recently ported our app into a vscode dev container, attached to that local running process, and unsuccessfully done hot code deploy

We came from using NetBeans where this worked flawlessly, and just confirmed it still works. I've also confirmed Intelij can successfully do hot code deploy as well with our project.

Current Result

Our most simple test is adding a system.out to an existing method. No other changes. That produces the following stacktrace.

image

Other Information

We've reviewed the information at here and here with no luck.

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.

Đánh giá

Issue này chưa được đánh giá.

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.