redhat-developer / redhat-developer/vscode-java

Java Language Server hangs while importing project

Đang mở
#3,105 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Ngôn ngữ chính
TypeScript
Star
2.3k
Fork
546
Merge trung bình
20 giờ 1 phút
Pull request đã merge (30 ngày)
11

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Hướng nghiên cứu

Bắt đầu bằng cách xem lại các tệp đính kèm ls-client-logs.txt và ls-server-logs.txt, sau đó tái hiện tình trạng treo bằng cách mở một workspace multi-root lớn trong VS Code. So sánh các thông báo import của Maven và Gradle, đồng thời xác minh rằng việc import dự án hoàn tất và các tính năng ngôn ngữ trở nên khả dụng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java, typescript, vscode
Lĩnh vực
devtools
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.