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
39.61k stars 2.07k forks source link

Cannot install extensions #9802

Open ronkristoff opened 3 months ago

ronkristoff commented 3 months ago

Check for existing issues

Describe the bug / provide steps to reproduce it

I am trying to install an extension, but when I click Install nothing is happening, when the button disables the goes back. I'm using Macbook Pro Sonoma 14.2.1n, Zed 0.127.4

logs: 2024-03-26T13:52:15+08:00 [INFO] installing extension macos-classic 0.0.5 2024-03-26T13:52:16+08:00 [WARN] request completed with error: failed to resolve host name 2024-03-26T13:52:16+08:00 [ERROR] crates/extension/src/extension_store.rs:461: error downloading extension: failed to resolve host name

Environment

Macbook Pro Sonoma 14.2.1n, Zed 0.127.4

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

JosephTLyons commented 3 months ago

@ronkristoff - can you see if you can install the extension now? We had a bug last night that might've also caused this. Let me know if you are still having issues.

ronkristoff commented 3 months ago

@ronkristoff - can you see if you can install the extension now? We had a bug last night that might've also caused this. Let me know if you are still having issues.

@JosephTLyons thanks for the reply, still having the same issues. I already updated zed to Zed 0.127.5, logs are also the same.

JosephTLyons commented 3 months ago

Sorry, I thought the fix was a collab server fix, but I was wrong, it needed to go into the clients. Are you still having issues with it on the latest stable?

ronkristoff commented 3 months ago

Hi @JosephTLyons still having the same issue, it is also happening on the preview release.

Moshyfawn commented 3 months ago

Hi @JosephTLyons still having the same issue, it is also happening on the preview release.

Would you mind checking which version of Zed you are running by selecting zed: about from the command palette?

ronkristoff commented 3 months ago

@Moshyfawn i'm using Zed 0.128.3 and also tried it on Zed Preview 0.129.1 same issue for both.

log: 2024-04-03T13:55:48+08:00 [ERROR] crates/extension/src/extension_store.rs:480: error downloading extension: failed to resolve host name

KeentGG commented 3 months ago

I'm getting the same error, here's me trying to install astro extension

log:

2024-04-05T01:43:52+08:00 [INFO] installing extension astro 0.0.1
2024-04-05T01:43:53+08:00 [WARN] request completed with error: failed to resolve host name
2024-04-05T01:43:53+08:00 [ERROR] crates/extension/src/extension_store.rs:480: error downloading extension: failed to resolve host name

Using Zed 0.129.2 on stable release. Same error on latest preview release.

Macbook Pro M1 2020, Sonoma 14.4, if that helps.

JosephTLyons commented 3 months ago

@ronkristoff @KeentGG, are either of you using a VPN or behind a Firewall?

KeentGG commented 3 months ago

@JosephTLyons alright just checked, no VPN nor Firewall enabled.

However i remember in the past where i have two instances where our ISPs blocked some domains for some reason, including Firebase (not the entirety though, just some). Super weird indeed.

I tried using my mobile data instead of my home network and installing extensions worked. Doubled checked by using home network again and it didn't work as expected, only on my mobile data.

I wonder if extensions is hosted under Google or other domains blocked by our ISP for unknown reasons. I live in South East Asia if that helps.

@ronkristoff can verify if using any other internet sources aside from your home network works as it did on mine?

michealp-coder commented 2 months ago

Is this issue the same as

KeentGG commented 2 months ago

Not the author of this one but i believe that's a different issue. This one is due to extension host issue.

ronkristoff commented 2 months ago

@JosephTLyons, @KeentGG I am also not using any VPN and also no firewall. I am connected on my home network. I will try mobile data later today and will update here. Thanks.

michealp-coder commented 1 month ago

I will try mobile data later today and will update here. Thanks.

@ronkristoff any updates?

kechie commented 2 weeks ago

same here: 2024-06-21T11:59:42+08:00 [WARN] request completed with error: failed to resolve host name 2024-06-21T11:59:42+08:00 [ERROR] crates/extension/src/extension_store.rs:722: error downloading extension: failed to resolve host name. Maybe has something to do with CGNAT / Firewall or some such. No issues when I tether to a cellular network. 2024-06-21T12:02:26+08:00 [INFO] installing extension docker-compose latest version

jaeyson commented 2 hours ago

Same thing when installing extension (Elixir)

Apple M1 Sonoma 14.2.1 Zed 0.142.6 (Stable), using Apple Silicon

2024-07-08T17:53:50+08:00 [INFO] installing extension elixir latest version
2024-07-08T17:53:51+08:00 [WARN] request completed with error: failed to resolve host name
2024-07-08T17:53:51+08:00 [ERROR] crates/extension/src/extension_store.rs:722: error downloading extension: failed to resolve host name
2024-07-08T17:53:51+08:00 [INFO] installing extension elixir latest version
2024-07-08T17:53:51+08:00 [WARN] request completed with error: failed to resolve host name
2024-07-08T17:53:51+08:00 [ERROR] crates/extension/src/extension_store.rs:722: error downloading extension: failed to resolve host name

If I try to download via Brave browser (https://api.zed.dev/extensions/elixir/download), it redirects to https://zed-extensions.nyc3.digitaloceanspaces.com/extensions/elixir/0.0.5/archive.tar.gz?x-id=GetObject&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=DO0024BKKDAMB3MYP3DP%2F20240708%2Fnyc3%2Fs3%2Faws4_request&X-Amz-Date=20240708T105242Z&X-Amz-Expires=180&X-Amz-SignedHeaders=host&X-Amz-Signature=70a70e1efd77de2fef9f511bdd5164f5fef76244d8f640c002d16fade20850db

and throws:

This site can’t be reached
zed-extensions.nyc3.digitaloceanspaces.com’s DNS address could not be found. Diagnosing the problem.
DNS_PROBE_POSSIBLE

Tried switching safari, chrome, firefox, brave and using vpn or other isp and it's the same error.