redhat-developer / redhat-developer/vscode-java
"The type X is not accessible" in modular Maven project
未关闭
还没有人认领这个 Issue。
bug
Maven
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 547
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
When opening the attached project, errors are reported on the Main.java file, even though something like mvn clean build is successful.
Environment
- Operating System: Windows 10
- JDK version: 13.0.1
- Visual Studio Code version: 1.43.0
- Java extension version: 0.58.0
Steps To Reproduce
- unzip foo.zip
- add the unzipped folder to the workspace
- open the Main.java file
Current Result
problems are reported:

Expected Result
no problems are reported
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
解压 foo.zip,将其添加为工作区,并在 VS Code 中打开 Main.java;将报告的可访问性错误与成功的 mvn clean build 结果进行比较。使用复现中的 Java 扩展版本和模块化项目来追踪这一差异,并在 Main.java 不显示任何问题而 Maven 构建仍然成功时,认为 issue 已完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, typescript, vscode
- 领域
- developer-experience, tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100