microsoft / microsoft/vscode-java-debug

Flink official demo debug will get error :Cannot find a class with the main method

Open
#478 17 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ai-triaged buildtool question
Dominant language
TypeScript
Stars
591
Forks
429
Avg merge
1d 9h
Merged PRs (30d)
19

Description

[provide a description of the issue]

Environment
  • Operating System:macos 10.14.1
  • JDK version: 1.8.0_144
  • Visual Studio Code version:1.29.1
  • Java extension version:0.4.0
  • Java Debugger extension version:0.15.0
Steps To Reproduce
  1. curl https://flink.apache.org/q/quickstart.sh | bash -s 1.6.1
  2. open the quickstart dir with vscode and press F5 to debug,will get the error:
    image
  3. if I assign the class in launch.json, I will get another error:
    image

[attach a sample project reproducing the error]
attach logs

Current Result

Cannot find a class with the main method

Expected Result

Could debug well.

Additional Informations

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure from the Flink 1.6.1 quickstart using the listed macOS, JDK, VS Code, and extension versions. Inspect the generated project and launch.json, then compare F5's class discovery with the explicitly assigned class; done means the official demo starts debugging without either reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, vscode
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.