microsoft / microsoft/vscode-java-debug

Cannot find main method for Maven project with subprojects

オープン
#1,006 コメント 5 件 リアクション 3 件 担当者 1 名 GitHub で見る

@testforstephen がすでに取り組んでいます。

2021年12月1日 から。

ai-triaged bug launch
主要言語
TypeScript
スター
591
フォーク
429
平均マージ
1日 9時間
マージ済み PR(30日)
19

説明

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

lsp.log

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。