extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Local extension doesn't load

Open zetashift opened this issue 3 months ago • 4 comments

I'm trying to create an extension, and I'm currently testing it locally. However Zed doesn't load the extension, and when opening a file like scratch.u the language stays on Unknown, while the Unison language is available in the picker. Choosing it doesn't do anything however.

./target/release/Zed
[2024-03-18T11:08:48-05:00 ERROR util] crates/zed/src/zed.rs:615: EOF while parsing a value at line 1 column 0
[2024-03-18T11:08:48-05:00 ERROR util] crates/zed/src/main.rs:692: No such file or directory (os error 2)

Reproduction

Here is my branch, with the wasm file included:

https://github.com/zetashift/unison-zed/tree/wasm-blob

  • It can be cloned into ~/.config/zed/extensions/installed

Additional info

Zed version: v0.127.0-pre OS: Linux, OpenSUSE.

zetashift avatar Mar 18 '24 16:03 zetashift

@zetashift I'm having the same issue I'm not sure what causes it but any manually installed extensions don't function at all https://github.com/versecafe/zed-groovy/tree/wasm-blob

versecafe avatar Mar 19 '24 04:03 versecafe

@zetashift I'm having the same issue I'm not sure what causes it but any manually installed extensions don't function at all https://github.com/versecafe/zed-groovy/tree/wasm-blob

Are you using Mac or Linux (or Windows?). I wonder if this is a platform issue, or if we're configuring Zed wrong or something :S.

zetashift avatar Mar 19 '24 19:03 zetashift

@zetashift MacOS Sonoma 14.4 and I tried reinstalling zed and running it in local development in order to get the errors, I found something interesting, it tries to load the extension but always fails on the schema files even if they're copied over from a functional extension, it always throws a syntax error on the first item of the highlights.scm file as I assume it is the first scm file parsed.

versecafe avatar Mar 19 '24 23:03 versecafe

Trying to test an extension and having the same issue

dariaag avatar Mar 26 '24 18:03 dariaag