microsoft / microsoft/vscode-java-debug

Main Method Not found

未关闭
#1,228 2 条评论 3 个 reaction 已指派 1 人 在 GitHub 查看

@testforstephen 已经在做这个了。

开始于 2022年10月8日。

ai-triaged bug feature request launch ux
主要语言
TypeScript
星标
591
派生
429
平均合并
1 天 9 小时
30 天内合并 PR
19

描述

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

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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