Capability for auto download is not listed in extension manifest?

Đang mở
#323 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.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust, wasm
Lĩnh vực
developer-experience

Hướng nghiên cứu

The failure comes from the extension's wasm build calling chmod +x on the jdtls proxy binary without declaring a process:exec capability; the trace names zed_java binary_path in the proxy module and the extension manifest. Start by reading the extension.toml capabilities section and the binary_path code path that calls make_file_executable. Done when the manifest lists the needed process:exec capability (or the call is removed) and installing the extension succeeds without that error.

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

Mô tả

What happened?
Language server jdtls:

error while executing at wasm backtrace:
    0: 0x1f39ff - <unknown>!<wasm function 5>
    1:  0xfa7d9 - zed_java.wasm!zed_extension_api[d2ac25c5bb8a23f1]::wit::make_file_executable
    2:  0x2c845 - zed_java.wasm!<zed_java[e751fc9ab273b0d5]::proxy::Proxy>::binary_path
    3:  0x270f9 - zed_java.wasm!<zed_java[e751fc9ab273b0d5]::jdtls_server::JdtlsServer as zed_java[e751fc9ab273b0d5]::language_server::LanguageServer>::command
    4:  0x34248 - zed_java.wasm!<zed_java[e751fc9ab273b0d5]::Java as zed_extension_api[d2ac25c5bb8a23f1]::Extension>::language_server_command
    5:  0xf80f9 - zed_java.wasm!zed_extension_api[d2ac25c5bb8a23f1]::wit::_export_language_server_command_cabi::<zed_extension_api[d2ac25c5bb8a23f1]::Component>
    6: 0x103dde - zed_java.wasm!language-server-command: capability for process:exec chmod ["+x", "bin/v6.8.30/java-lsp-proxy"] was not listed in the extension manifest

I think the last line is the most important?

    6: 0x103dde - zed_java.wasm!language-server-command: capability for process:exec chmod ["+x", "bin/v6.8.30/java-lsp-proxy"] was not listed in the extension manifest

It happens just after installing the extension.

What did you expect to happen?

The extension to install correctly

Environment

Zed: Gram 3.4.1
Platform: Archlinux rolling release

Java & mvn installed

Ngôn ngữ chính
Rust
Star
225
Fork
47
Merge trung bình
3 giờ 51 phút
Pull request đã merge (30 ngày)
7

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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.

Issue khác của zed-extensions/java

Tất cả issue của zed-extensions/java

Issue tương tự

Thêm issue về Rust

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.