redhat-developer / redhat-developer/vscode-java

Java Language Server hangs while importing project

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

还没有人认领这个 Issue。

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

描述

When opening my work repository as a multi-root workspace, the Java Language Server seems to hang indefinitely while importing/refreshing the root project.

Environment
  • Operating System: Ubuntu 20.04.6
  • JDK version: 11 for the project, 17 for the extension
  • Visual Studio Code version: 1.78.2
  • Java extension version: 1.18.0
Steps To Reproduce

This happens as soon as I open my project in VSCode and the language server starts up. I can't link to the repository because it's private. This doesn't happen on smaller repositories.

Current Result

The language server output hangs after printing the output:

03ec6036 Reporting encoding changes. [Done]
f29dbd85 Importing root project: 31% Refreshing '<project root dir>'. [308/1000]
Expected Result

It should continue to import the project and then offer up the language features it advertises.

Additional Informations

Not sure if this is relevant, but sometime the output above shows a second message related to Gradle instead. We're currently migrating from using Maven to Gradle, and we have the structure for both build systems in the repository right now. I've disabled all the options for the Java LS extension related to Maven that I could find.

ls-client-logs.txt
ls-server-logs.txt

贡献指南

打开贡献指南

从这里开始

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

调研方向

首先检查附加的 ls-client-logs.txt 和 ls-server-logs.txt,然后在 VS Code 中打开一个大型多根工作区以重现挂起。比较 Maven 和 Gradle 的导入消息,并验证项目导入已完成且语言功能变得可用。

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

评估

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

把新 issue 发到你的邮箱

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