microsoft / microsoft/vscode-java-debug

Main Method Not found

Abierto
#1,228 2 comentarios 3 reacciones 1 asignado Ver en GitHub

@testforstephen ya está trabajando en esto.

Desde el 8/10/2022.

ai-triaged bug feature request launch ux
Lenguaje dominante
TypeScript
Estrellas
591
Forks
429
Merge medio
1 d 9 h
PR fusionados (30 d)
19

Descripción

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

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.