Repository navigation
Closed as not planned
Labels
language-serverRelated to the language server.Related to the language server.
Description
Relevance Confirmation
- I confirmed that this is not an issue with the Eclipse JDT Language Server itself
What happened?
The autocomplete was not working in my Java file, and when I check the Zed logs I was getting the following logs:
2025-06-17T18:01:17+05:30 WARN [project::lsp_store] skipping diagnostics update, no worktree found for path "/private/var/folders/0q/mzhf2fxn7k314sk8q_gs08rh0000gn/T/jdtls-e908389d4bbf30e8dc72dc47cdf6b45d89e8b2a0/dsa_e7012004"
2025-06-17T18:01:22+05:30 ERROR [project] error while executing at wasm backtrace:
0: 0x2fc48 - java.wasm!__rust_start_panic
1: 0x2ed9f - java.wasm!rust_panic
2: 0x2ed72 - java.wasm!std::panicking::rust_panic_with_hook::h79071f5fb265d1d9
3: 0x2dc26 - java.wasm!std::panicking::begin_panic_handler::{{closure}}::h410c57f452410813
4: 0x2db92 - java.wasm!std::sys::backtrace::__rust_end_short_backtrace::h514500abf2a2d0ca
5: 0x2e706 - java.wasm!rust_begin_unwind
6: 0x3a2de - java.wasm!core::panicking::panic_fmt::he306018bf71f8e67
7: 0x3f92a - java.wasm!core::str::slice_error_fail_rt::hb34e86cfe20ec887
8: 0x3e309 - java.wasm!core::str::slice_error_fail::h19eacf74bbab09e8
9: 0x8905 - java.wasm!<java::Java as zed_extension_api::Extension>::label_for_completion::h68e91f4367b8d4be
10: 0x1eb5f - java.wasm!<zed_extension_api::Component as zed_extension_api::wit::Guest>::labels_for_completions::h283f4820adbf063a
11: 0x10b79 - java.wasm!zed_extension_api::wit::_export_labels_for_completions_cabi::he944174b537d525e
12: 0x1f142 - java.wasm!labels-for-completions
13: 0x4050c - java.wasm!labels-for-completions.command_export
Caused by:
wasm trap: wasm `unreachable` instruction executed
2025-06-17T18:01:22+05:30 ERROR [project] resolve completion
Caused by:
Internal error.
2025-06-17T18:01:22+05:30 ERROR [project] resolve completion
Caused by:
Internal error.
2025-06-17T18:01:22+05:30 ERROR [project] wasm trap: cannot enter component instance
2025-06-17T18:01:22+05:30 ERROR [project] resolve completion
What did you expect to happen?
The autocomplete should have worked without giving any errors.
Environment
Zed: 0.190.6
OS: macOS 15.0.1
Memory: 8 GiB
Architecture: aarch64
Java: OpenJDK v21.0.6
Metadata
Metadata
Assignees
Labels
language-serverRelated to the language server.Related to the language server.
Activity
valentinegb commentedon Jun 17, 2025
Are you able to reproduce this in an empty java file? If not, may I see the error-causing file?
tempcoderr commentedon Jun 17, 2025
@valentinegb When I created a new java file, the jdtls is not giving any suggestions. It gives the error jdtls has stopped working, with the following log.
My original java file has the following code:
FYR I had faced some jdtls issue earlier as well for which I had raised an issue in the original Zed repo. I was able to find a work around but I have not been able to replicate it (zed-industries/zed#31793). Not sure if they are related or not though.
valentinegb commentedon Jun 17, 2025
This seems to me like this is some issue with how Zed runs extensions with WASM and maybe not an issue with this extension itself. I think this issue belongs in zed-industries/zed.