microsoft / microsoft/vscode-java-debug
Cannot find main method for Maven project with subprojects
Offen
@testforstephen arbeitet bereits daran.
Seit 01.12.2021.
ai-triaged
bug
launch
- Vorherrschende Sprache
- TypeScript
- Sterne
- 591
- Forks
- 429
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 19
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Bewertung
Dieses Issue wurde noch nicht bewertet.