microsoft / microsoft/vscode-java-debug
Flink official demo debug will get error :Cannot find a class with the main method
Open
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
- curl https://flink.apache.org/q/quickstart.sh | bash -s 1.6.1
- open the quickstart dir with vscode and press F5 to debug,will get the error:

- if I assign the class in launch.json, I will get another error:

[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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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