redhat-developer / redhat-developer/vscode-java

Compilation errors on a working codebase as soon as I install this extension

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

还没有人认领这个 Issue。

bug Maven
主要语言
TypeScript
星标
2.3k
派生
546
平均合并
20 小时 1 分钟
30 天内合并 PR
11

描述

As soon as I install this extension I start getting all kind of compilation errors in the PROBLEM view. Errors that don't make sense like saying it can't find a variable that's clearly defined.
If I close VSCode or uninstall the extension it starts working again.
Maybe something to do with classpath? Please help me figure this out, I'll pulling my hair out over this for days.

I have tried cleaning the workspace directory already.

Environment
  • Operating System: MacOS BigSur
  • JDK version: 8(Maven tells me 1.8)
  • Visual Studio Code version: 1.54.3
  • Java extension version: v0.76.0
Steps To Reproduce
  1. Open VSCode with extension installed
  2. Go to the terminal(either os terminal or VSCode terminal) and run mvn clean verify install

Sample project to reproduce the error
Logs

Current Result

Bunch of build errors

Expected Result

No build errors since this is a healthy project when it doesn't have the extension installed.

Additional Informations
  • Works normally with eclipse open.
  • Works normally with VSCode open but without this extension installed(I can install everything else in the https://github.com/Microsoft/vscode-java-pack). Meaning this is, indeed, the culprit.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

使用 mvn clean verify install,在所述版本的 macOS、JDK 8、VS Code 和 Java 扩展上复现 segmentio/analytics-java 示例项目中的问题。比较安装扩展后的 Problems 视图和构建行为,并检查链接的日志。当启用扩展时,运行正常的项目不再收到无端的编译错误,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
java, vscode
领域
developer-experience, devtools
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

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