Cannot find main method for Maven project with subprojects

Aperta
#1,006 5 commenti 3 reazioni 1 assegnatario Vedi su GitHub

@testforstephen ci sta già lavorando.

Dal 1/12/2021.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

ai-triaged bug launch
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

Lingua principale
TypeScript
Stelle
591
Fork
429
Merge medio
1g 9h
PR unite (30g)
19

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoft/vscode-java-debug

Tutte le issue di microsoft/vscode-java-debug

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.