-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Description
Reproduction steps
This issue the same for any lang ext I tried
Hello! Since in my country I am not able to reach Zed digitalocean url (as many others) I desperately decided to compile extensions myself and tried to learn all these Rust compilations staff.
Finally seems Zed compiles finely some artefact to
C:\Git\zed\extensions\html\target\wasm32-wasip2\zed_html.wasm
and symlinked it to
AppData\Local\Zed\extensions\installed\html\target\wasm32-wasip2\zed_html.wasm
I found what this target wasm32-wasip2 could be a reason for __wasi_init_tp error (see below log)
But WHAT makes Zed to choose wasm32-wasip2 insead of wasm32-wasip1?
Because in my local Git zed/Cargo.toml I do not find any wasm32-wasip2 mentions (since I pointing Zed to get folder C:\Git\zed\extensions\html\ to compile)
and more, I put explicitly to my local git C:\Git\zed.cargo\config.toml with
[build]
target = "wasm32-wasip1"
Seems something built-in in Zed Install Dev Extensions feature force target wasm32-wasip2 or what?
- Start Zed on Windows
- Go to Extensions / Install Dev Extensions
- Choose C:\Git\zed\extensions\html from Zed git local folder
- Get that log in Zed
2026-02-08T13:10:15+03:00 INFO [extension::extension_builder] compiling Rust extension C:\Git\zed\extensions\html
2026-02-08T13:10:17+03:00 INFO [extension::extension_builder] compiling Rust crate for extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] compiled Rust crate for extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] encoding wasm component for extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] extension C:\Git\zed\extensions\html written to C:\Git\zed\extensions\html\extension.wasm
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] compiled Rust extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] compiling grammar html for extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] downloading wasi-sdk to C:\Users\me\AppData\Local\Zed\extensions\build\wasi-sdk
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] checking out html parser
2026-02-08T13:10:32+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:33+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:33+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:34+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:34+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:34+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:35+03:00 INFO [extension::extension_builder] skipping compilation of html parser because the existing compiled grammar is up to date
2026-02-08T13:10:35+03:00 INFO [extension::extension_builder] compiled grammar html for extension C:\Git\zed\extensions\html
2026-02-08T13:10:35+03:00 INFO [extension::extension_builder] finished compiling extension C:\Git\zed\extensions\html
2026-02-08T13:10:35+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:36+03:00 INFO [extension_host] rebuilt extension index in 23.6506ms
2026-02-08T13:10:36+03:00 INFO [extension_host] extensions updated. loading 1, reloading 0, unloading 0
2026-02-08T13:10:36+03:00 ERROR [language::language_registry] failed to load language HTML:
Failed to instantiate Wasm module: invalid import '__wasi_init_tp'
rustup show:
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\me\scoop\persist\rustup\.rustup
installed toolchains
--------------------
stable-x86_64-pc-windows-msvc (default)
1.93-x86_64-pc-windows-msvc (active)
active toolchain
----------------
name: 1.93-x86_64-pc-windows-msvc
active because: overridden by 'C:\Git\zed\rust-toolchain.toml'
installed targets:
wasm32-wasip1
wasm32-wasip2
x86_64-pc-windows-msvc
x86_64-unknown-linux-musl
Local/Zed/ folder
AppData\Local\Zed\extensions\work\html - empty
AppData\Local\Zed\extensions\installed\html - symlnk
Current vs. Expected behavior
Current behaviour in log
2026-02-08T13:10:36+03:00 ERROR [language::language_registry] failed to load language HTML:
Failed to instantiate Wasm module: invalid import '__wasi_init_tp'
and nothing in extensions/work/html folder
and no html lang
Expected
suppose smth should appear in extensions/work/html folder
and html lang
Zed version and system specs
Zed: v0.222.4+stable.147.b385025df963c9e8c3f74cc4dadb1c4b29b3c6f0 (Zed)
OS: Windows 10.0.17763
Memory: 15.3 GiB
Architecture: x86_64
GPU: AMD Radeon(TM) Graphics || AMD Corporation || 20.40.22.03 (20.40.22.03-201210a-362279C-HP)
Attach Zed log file
Zed.log
2026-02-08T13:10:15+03:00 INFO [extension::extension_builder] compiling Rust extension C:\Git\zed\extensions\html
2026-02-08T13:10:17+03:00 INFO [extension::extension_builder] compiling Rust crate for extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] compiled Rust crate for extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] encoding wasm component for extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] extension C:\Git\zed\extensions\html written to C:\Git\zed\extensions\html\extension.wasm
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] compiled Rust extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] compiling grammar html for extension C:\Git\zed\extensions\html
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] downloading wasi-sdk to C:\Users\me\AppData\Local\Zed\extensions\build\wasi-sdk
2026-02-08T13:10:30+03:00 INFO [extension::extension_builder] checking out html parser
2026-02-08T13:10:32+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:33+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:33+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:34+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:34+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:34+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:35+03:00 INFO [extension::extension_builder] skipping compilation of html parser because the existing compiled grammar is up to date
2026-02-08T13:10:35+03:00 INFO [extension::extension_builder] compiled grammar html for extension C:\Git\zed\extensions\html
2026-02-08T13:10:35+03:00 INFO [extension::extension_builder] finished compiling extension C:\Git\zed\extensions\html
2026-02-08T13:10:35+03:00 ERROR [crates/worktree/src/worktree.rs:3053] working directory `extensions\html\grammars\html` not indexed
2026-02-08T13:10:36+03:00 INFO [extension_host] rebuilt extension index in 23.6506ms
2026-02-08T13:10:36+03:00 INFO [extension_host] extensions updated. loading 1, reloading 0, unloading 0
2026-02-08T13:10:36+03:00 ERROR [language::language_registry] failed to load language HTML:
Failed to instantiate Wasm module: invalid import '__wasi_init_tp'
Relevant Zed settings
settings.json
Relevant Keymap
keymap.json
(for AI issues) Model provider details
No response
If you are using WSL on Windows, what flavor of Linux are you using?
None