Main Method Not found

Aberta
#1,228 2 comentários 3 reações 1 responsável Ver no GitHub

@testforstephen já está trabalhando nisso.

Desde 8/10/2022.

Avaliação

Esta issue ainda não foi avaliada.

Descrição

ai-triaged bug feature request launch ux

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
Linguagem predominante
TypeScript
Estrelas
591
Forks
429
Merge médio
1d 9h
PRs com merge (30d)
19

Guia de contribuição

Abrir o guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de microsoft/vscode-java-debug

Todas as issues de microsoft/vscode-java-debug

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.