zed icon indicating copy to clipboard operation
zed copied to clipboard

snippets problem

Open ayberkgezer opened this issue 7 months ago • 3 comments

Summary

The snippets extensions I downloaded from the store are not being used. But the ones I installed locally using the "dev extension" work just fine.

Zed Version and System Specs

Zed: v0.185.16 (Zed) OS: macOS 15.2.0 Memory: 8 GiB Architecture: aarch64

ayberkgezer avatar May 14 '25 07:05 ayberkgezer

It doesn't work for me. I try to install some languages snippet extension. No luck. Check the zed log that it output an error with ERROR [extension_host] No such file or directory (os error 2).
There are no snippets dir or files in the dir of extension installed, only an extension.toml file.

jekst avatar May 16 '25 02:05 jekst

All snippets extensions have the same problem, only the extensions.toml file is downloaded.

ayberkgezer avatar May 16 '25 09:05 ayberkgezer

All snippets extensions have the same problem, only the extensions.toml file is downloaded.

It is also replicated on my computer. It seems that the extension only downloads extensions.toml

Image

d1y avatar Jun 03 '25 06:06 d1y

@maxdeviant @notpeter Do you have any thoughts on this issue or thoughts on priority etc? Maybe snippets extensions shouldn't be listed as installable from the Extensions panel until they actually work, I don't know.

rubjo avatar Jul 01 '25 09:07 rubjo

I've fixed the bug in extension-cli, but it won't take effect until after the new version of the extension of your choice is cut.

osiewicz avatar Jul 15 '25 11:07 osiewicz

@osiewicz i have released a new version of svelte-snippets after this and its stll not working, the json snippet file works locally as expected

bobbymannino avatar Jul 27 '25 14:07 bobbymannino

@osiewicz i have released a new version of svelte-snippets after this and its stll not working, the json snippet file works locally as expected

The extensions repo wasn't using a version of the extension CLI with the fix.

https://github.com/zed-industries/extensions/pull/3076 has just been merged, so if you publish a new version of the svelte-snippets extension it will bundle the snippets file.

maxdeviant avatar Jul 28 '25 15:07 maxdeviant