redhat-developer / redhat-developer/vscode-java

"The type X is not accessible" in modular Maven project

未关闭
#1,327 6 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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
  1. unzip foo.zip
  2. add the unzipped folder to the workspace
  3. open the Main.java file
Current Result

problems are reported:
image

Expected Result

no problems are reported

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。