zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.27k stars 3.09k forks source link

Extensions: Unable to Install any extension #10330

Open michealp-coder opened 7 months ago

michealp-coder commented 7 months ago

Environment:

Summary of Issue:

No extension will install.

Reproduce Issue Steps:

  1. Open Zed
  2. Select 'Zed Preview' from macOS top menu
  3. Select 'Extensions'
  4. (For any extension listed, be it a Theme or something else) When I select Install for that particular extension, nothing happens (doesn't install).

Expected Behavior:

When you click "Install" for an extension, it installs the extension.

Video Demo (of inability to install extensions)

https://github.com/zed-industries/zed/assets/84467623/91637a9c-6e96-4a57-b0d7-33097c986031

Error Log:

[INFO] installing extension macos-classic latest version
2024-04-09T11:34:56-05:00 [ERROR] crates/extension/src/extension_store.rs:665: failed to iterate over archive

Caused by:
    Invalid gzip header
2024-04-09T11:34:56-05:00 [ERROR] crates/extension/src/extension_store.rs:1154: failed to load catppuccin extension.toml

Caused by:
    No such file or directory (os error 2)
2024-04-09T11:34:56-05:00 [ERROR] crates/extension/src/extension_store.rs:1154: failed to load github-theme extension.toml

Caused by:
    No such file or directory (os error 2)
2024-04-09T11:34:56-05:00 [ERROR] crates/extension/src/extension_store.rs:1154: failed to load macos-classic extension.toml

Caused by:
    No such file or directory (os error 2)
2024-04-09T11:34:56-05:00 [ERROR] crates/extension/src/extension_store.rs:1154: failed to load github-dark-default extension.toml
yash-raj10 commented 3 months ago

tree ~/Library/Application\ Support/Zed/extensions/installed/

Hey @maxdeviant am facing the same issue, tho. tried tree ~/Library/Application\ Support/Zed/extensions/installed/ , also am working with Go lang and its not showing me any autocompletion.

Screenshot from 2024-08-08 17-06-16

lvzhenbo commented 3 months ago

When using zed to install the plugin in China, I also encounter network problems, compared to the ability of Microsoft's global network infrastructure, zed may need to go to find a cdn service provider that can serve globally.

jaeyson commented 3 months ago

@yash-raj10

tree ~/Library/Application\ Support/Zed/extensions/installed/

Hey @maxdeviant am facing the same issue, tho. tried tree ~/Library/Application\ Support/Zed/extensions/installed/ , also am working with Go lang and its not showing me any autocompletion.

Screenshot from 2024-08-08 17-06-16

Looking at the screenshot, it seems you're using pop os and not mac.

tree ~/.local/share/zed/extensions/installed/extracted_folder_name

More info: https://github.com/zed-industries/zed/issues/10330#issuecomment-2225257518

dickidarmawansaputra commented 2 months ago

cannot install extension (macbook air m1)

akbarsaputrait commented 2 months ago

@dickidarmawansaputra Could you please share the error you're encountering? also, have you try to use something like VPN, but it's based on your error btw.

dickidarmawansaputra commented 2 months ago

@dickidarmawansaputra Could you please share the error you're encountering? also, have you try to use something like VPN, but it's based on your error btw.

From zed: log

2024-08-31T05:47:11.15461Z [INFO] installing extension php latest version
2024-08-31T05:47:16.700855Z [WARN] request completed with error: request or operation took longer than the configured timeout time
2024-08-31T05:47:16.701332Z [ERROR] error downloading extension: request or operation took longer than the configured timeout time
dickidarmawansaputra commented 2 months ago

@dickidarmawansaputra Could you please share the error you're encountering? also, have you try to use something like VPN, but it's based on your error btw.

only works if using VPN

Gerwinnz commented 2 months ago

Just chiming in here to say I'm on latest I believe 0.152.3 - and I'm unable to install any extensions also.

2024-09-12T16:08:33.042827+12:00 [INFO] installing extension vue latest version
2024-09-12T16:08:38.326358+12:00 [WARN] request completed with error: request or operation took longer than the configured timeout time
2024-09-12T16:08:38.328246+12:00 [ERROR] error downloading extension: request or operation took longer than the configured timeout time
heliocastro commented 2 months ago

Same here, just installed Zed, with direct open connection not works.

But with VPN turned on, magically works.

ronkristoff commented 2 months ago

Same with me downloading and installing of extensions only works when using VPN.

michealp-coder commented 2 months ago

It works.

I haven't changed anything.

But with the Zed Preview 0.154.0 install (possibly even the version before that), Extension downloads now work.

Wahoo!

On Fri, Sep 13, 2024 at 1:21 AM Ron Kristoff Reyes @.***> wrote:

Same with me downloading and installing of extensions only works when using VPN.

— Reply to this email directly, view it on GitHub https://github.com/zed-industries/zed/issues/10330#issuecomment-2348124411, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUEN7J4GQTZPXPWEPD4TCHDZWJ75ZAVCNFSM6AAAAABF7BZF6GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNBYGEZDINBRGE . You are receiving this because you were mentioned.Message ID: @.***>

michealp-coder commented 1 month ago

If someone else can confirm they can also install extensions now as ofZed Preview 0.154.0, I'll close this ticket.

heliocastro commented 1 month ago

Nope, still happening. Just to remember, i even installed Sequoia today:

https://github.com/user-attachments/assets/8222c7a1-3e2a-4f3b-afb2-17046a16dd7d

michealp-coder commented 1 month ago

Nope, still happening. Just to remember, i even installed Sequoia today:

Screen.Recording.2024-09-20.at.20.22.40.mov

That was the exact same thing that was happening to me.

Not sure why it work now.

I know the Zed team isn't wanting acknowledge it, but hosting their Extension assets on Digital Ocean is clearly a networking issue for many.

https://github.com/zed-industries/zed/issues/10330#issuecomment-2181392420

My post above called this out.

theoyrus commented 1 month ago

I have the same problem. My ISP cannot connect to DO Space. Currently, with Proton VPN using a Japanese server, I can download & install extension. image

Gerwinnz commented 1 month ago

Just updated to 0.155.2 and still no luck downloading extensions. Bit of a blocker in trying Zed as I can't without basic extensions for things like scss etc. I don't use VPN's and don't intend to just to download an extension for what seems a bizarre network bug.

jaeyson commented 1 month ago

@Gerwinnz can you try my post here? There's an option where we won't use VPN, an alternative is to install a chrome extension.

heliocastro commented 1 month ago

This bug is an interesting modern open source issue; the demand is higher on usage than the availability of developers. Honestly, we should not complain to Zed developers that it is not working, as they are doing their best for free. If I were versatile on Rust, I would try to solve this issue myself, but then if the issue takes longer to be solved, fair enough.

Gerwinnz commented 1 week ago

I am happy to report that since updating to the latest, extensions are now working on my machine. I hope it's the same for anyone else who experienced this issue. Excited to spend some time trying Zed out now. Great job, team.

mpsanchis commented 1 week ago

Seems to work for me as well 🤩

heliocastro commented 1 week ago

Same for me. Good job.