redhat-developer / redhat-developer/vscode-java

Outline with VSCodium/macOS broken for versions > 1.10

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

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

navigation
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ả

Using a clean install of VSCodium on macOS (details see below) with only vscode-java.

Java project is https://github.com/karstengresch/manning-kube-native-microservices/tree/master/chapter2/account-service/

When the extension in version <=1.10 is installed, an outline for the Java classes is displayed.

When the extension in version >=1.20 is installed, instead of an outline, I see the message "No symbols found in document '*'", so the outline is not displayed.

*current-file-name.extension, e.g. Account.java

Expected behavior: Outline is still displayed.

Environment
  • Operating System: macOS 11.6
  • JDK version: openjdk version "11.0.14" 2022-01-18 - OpenJDK Runtime Environment Temurin-11.0.14+9 (build 11.0.14+9) - OpenJDK 64-Bit Server VM Temurin-11.0.14+9 (build 11.0.14+9, mixed mode)
  • Visual Studio Code version: VSCodium (!) Version: 1.65.0 Commit: b5205cc8eb4fbaa726835538cd82372cc0222d43 Electron: 13.5.2 Chromium: 91.0.4472.164 Node.js: 14.16.0 V8: 9.1.269.39-electron.0 OS: Darwin x64 20.6.0
  • Java extension version: 1.00-1.40, affected versions: 1.20+
Steps To Reproduce
  1. Fresh install of VSCodium (all extension folders
  2. Fresh install of Java extension >=1.20
  3. Check outline for a Java file.

[Please attach a sample project reproducing the error]
https://github.com/karstengresch/manning-kube-native-microservices/tree/master/chapter2/account-service/

Please attach logs
Attached for version 1.10:
client.log.2022-03-10.log

NB

Version 1.20+ logfile creation doesn't work, command results in:
"Command 'Java: Open Java Extension Log File' resulted in an error (command 'java.open.clientLog' not found)"

Current Result

Versions 1.20+ show instead of the outline the message, "No symbols found in document '<file.extension>'"

Expected Result

Outline is displayed also for versions 1.20+

Additional Informations

Not tested with VSCode M$-proprietary.

Not tested with versions < 1.00.

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

Tái hiện sự cố với dự án mẫu account-service được liên kết trong VSCodium trên macOS, bằng cách so sánh các phiên bản tiện ích mở rộng Java trước 1.10 và 1.20+. Kiểm tra kết quả outline và điều tra lý do lệnh java.open.clientLog không khả dụng trong các phiên bản bị ảnh hưởng; được xem là hoàn tất khi các tệp Java hiển thị các symbol của chúng trong outline ở phiên bản 1.20+.

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
tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/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.