extensions icon indicating copy to clipboard operation
extensions copied to clipboard

Snippet extension not working when installed from marketplace

Open lsdanii opened this issue 5 months ago • 1 comments

My Snippet extension flutter-snippets works perfectly when installed as dev extension (no need to manually copy snippets to ~/.config/zed/snippets, however fails to function when installed from the Zed marketplace.

Steps to Reproduce Dev Extension (working case):

  1. Create a snippet extension with the following structure:
flutter-snippets/
   ├── extension.toml
   ├── snippets/
   │   └── dart.json
   └── README.md
  1. Extension configuration (extension.toml):
   id = "flutter-snippets"
   # ..
   repository = "https://github.com/luisdanieldlcg/flutter-snippets"
   snippets = "./snippets/dart.json"
  1. Open Zed → Extensions → "Install Dev Extension" → Select the extension directory
  2. Open a Dart file and try typing a snippet prefix → ✅ Snippets work correctly

Not Working Case (Marketplace Extension): When using the published extension to the Zed marketplace:

  1. Open Zed → Extensions → Search for "Flutter Snippets" → Install from marketplace
  2. Open a Dart file and try typing a snippet prefix → ❌ Snippets don't work

Workaround Users can manually copy the dart.json file from the extension repository to ~/.config/zed/snippets/dart.json to make the snippets work. But the fact that it works as a dev extension makes the thing it should probably work without doing that.

System: Linux 6.16.7-200.fc42.x86_64 (Fedora 42) zed -v Zed 0.204.4 529fb5ff3012ddee7ede7058bad3e845f2011f29

Thanks in advance

lsdanii avatar Sep 21 '25 15:09 lsdanii

Thanks for the report! That was a really bad issue on our side, sorry for that!

Could you please trigger a new release of your extension by creating a PR with an empty version bump and ping me? You'll only need to bump the extension version, then the released version will work again. Sorry for the inconveniences!

MrSubidubi avatar Oct 10 '25 14:10 MrSubidubi

Thanks for the report! That was a really bad issue on our side, sorry for that!

Could you please trigger a new release of your extension by creating a PR with an empty version bump and ping me? You'll only need to bump the extension version, then the released version will work again. Sorry for the inconveniences!

@MrSubidubi Hi! Not sure if this issue is something that users of the Ruby extension are experiencing right now, please let me know if I need to open a new issue for that. One user reported that the path to the snippets file is a bit weird: "/home/runner/work/extensions/extensions/extensions/ruby/snippets.json". Such path seems like an issue with packaging an extension or something like that. I found this issue before opening a new issue.

The advice here is to re-publish the extension by triggering a new release. I did that recently: https://github.com/zed-industries/extensions/pull/4015 but the issue still persists, and I also can see that the path to the snippets file is still wrong.

Any idea what that could be? Thanks!

vitallium avatar Dec 02 '25 13:12 vitallium

@vitallium Just looked into this - this is a different issue, I'll fix this one later today.

MrSubidubi avatar Dec 08 '25 14:12 MrSubidubi