microsoft / microsoft/vscode-java-debug

Main Method Not found

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

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

Từ ngày 8/10/2022.

ai-triaged bug feature request launch ux
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ả

The run/debug button on the editor does not respect the launch.json file. I have a particular project which the main class is actually in separate jar file. After configuring the runtime classpath and mainClass in the launch.json, I am able to run it fine using the command debug: start without debugging. However, the run/debug button complains that the main method is not found.

Environment
  • Operating System: macOS 12.6
  • JDK version: JDK 1.8
  • Visual Studio Code version: 1.7.1.2
  • Java extension version: RedHat 1.11.0
  • Java Debugger extension version: 0.44.0
Steps To Reproduce
  1. Create a jar file with a main function
  2. Add it to your classpath and configure the name of the main class
  3. A project that implements the missing functions in that jar file
  4. Click the run button

(Can not attach the project)

Current Result

Main method not found

Expected Result

This button should respect to my launch.json file

Additional Informations

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.