Cannot find main method for Maven project with subprojects
@testforstephen 已经在做这个了。
开始于 2021年12月1日。
评估
这个 Issue 还没有评估数据。
描述
Environment
- Operating System: Arch Linux
- JDK version: liberica-jdk-11-full
- Visual Studio Code version: VSCodium 1.56.2
- Java extension version: 0.77.0
- Java Debugger extension version: 0.33.1
Steps To Reproduce
Given a Maven project with subprojects, such as this one
And VSCode is open with the cwd set to the root of the project
And I open a file in one of the subprojects (e.g. XChartDemo.java)
And the language server starts successfully
And I wait for long enough for the project to be loaded
When I try to run the main method
Current Result
Then I get an error message:
Error: Main method not found in the file, please define the main method as: public static void main(String[] args)
Source: Debugger for Java (Extension)
Expected Result
Then the main method is started
Log
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/vscode-java-debug 的其他 Issue
-
ai-triaged enhancement
难度 3/5 1-2 天 新手友好度 55/100
microsoft/vscode-java-debug#1689 · 2 条评论 ·
-
ai-triaged bug
microsoft/vscode-java-debug#1666 · 1 条评论 · 已指派 1 人 ·
-
ai-triaged bug
难度 3/5 1-2 天 新手友好度 48/100
microsoft/vscode-java-debug#1658 · 1 条评论 ·
-
ai-triaged enhancement
难度 4/5 3-5 天 新手友好度 45/100
microsoft/vscode-java-debug#1628 · 3 条评论 ·
-
Feature support. 未关闭ai-triaged enhancement
难度 5/5 一周以上 新手友好度 25/100
microsoft/vscode-java-debug#1616 · 1 条评论 ·
查看 microsoft/vscode-java-debug 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 1/5 1 小时以内 新手友好度 85/100
-
check:passed streams:add
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 76/100
-
难度 2/5 1-3 小时 新手友好度 68/100