microsoft / microsoft/vscode-java-debug
Flink official demo debug will get error :Cannot find a class with the main method
未关闭
还没有人认领这个 Issue。
ai-triaged
buildtool
question
- 主要语言
- TypeScript
- 星标
- 591
- 派生
- 429
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 19
描述
[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
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
使用列出的 macOS、JDK、VS Code 和扩展版本,复现 Flink 1.6.1 quickstart 中的失败。检查生成的项目和 launch.json,然后将 F5 的类发现结果与显式分配的类进行比较;当官方演示能够在不出现所报告的两个错误中的任何一个的情况下开始调试时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100