redhat-developer / redhat-developer/vscode-java

Maven source and dependencies are built incorrectly at initial compile time

未关闭
#805 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

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

描述

When the top level pom.xml is just a wrapper for two modules, the workspace does not build correctly.
When the workspace is first loaded, references from imports or from within the source are not loaded correctly. Once a file is opened, these errors go away.

Environment
  • Operating System: Linux 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 UTC 2019 x86_64
  • JDK version: openjdk version "10.0.2" 2018-07-17
  • Visual Studio Code version:
Version: 1.31.1
Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
Date: 2019-02-12T02:19:29.629Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-45-generic
  • Java extension version:
Name: Language Support for Java(TM) by Red Hat
Version: 0.38.0
  • Using Java extension pack:
Id: vscjava.vscode-java-pack
Version: 0.6.0
Steps To Reproduce
  1. Open a project in vscode with the main pom.xml containing only modules and with dependencies in the modules

This can be seen in
This project. The v2.7 branch has the source issue

attach logs

Errors in debug window:

[[object Object]]src/main/com/blazingkin/interpreter [in blz-ospl] is not on its project's build path
src/main/com/blazingkin/interpreter [in blz-ospl] is not on its project's build path
	at /home/blazingkin/.vscode/extensions/redhat.java-0.38.0/dist/extension.js:1
	at /home/blazingkin/.vscode/extensions/redhat.java-0.38.0/dist/extension.js:1
	at Immediate.module.exports.T.size.setImmediate (/home/blazingkin/.vscode/extensions/redhat.java-0.38.0/dist/extension.js:1)
	at runCallback (timers.js:696)
	at tryOnImmediate (timers.js:667)
	at processImmediate (timers.js:649)
Current Result
Expected Result
Additional Informations

贡献指南

打开贡献指南

从这里开始

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

调研方向

在 VS Code 中使用 blz-ospl v2.7 项目重现该问题,使用其顶层 pom.xml 和两个模块 pom.xml 文件,并启用日志记录。首先检查导入和 build-path 日志;当初始加载能够解析模块源代码和依赖项,而无需打开文件时,即表示完成。

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

评估

技术栈
java, typescript, vscode
领域
build-system
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

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