Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot install extensions #9802

Open
1 task done
ronkristoff opened this issue Mar 26, 2024 · 19 comments
Open
1 task done

Cannot install extensions #9802

ronkristoff opened this issue Mar 26, 2024 · 19 comments
Labels
defect [core label] extension infrastructure Feedback for extensions APIs, creation, management, etc needs info / awaiting response Issue that needs more information from the user network Network connectivity issues, protocols and services support

Comments

@ronkristoff
Copy link

Check for existing issues

  • Completed

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

@ronkristoff ronkristoff added admin read Pending admin review defect [core label] triage Maintainer needs to classify the issue labels Mar 26, 2024
@JosephTLyons JosephTLyons added extension infrastructure Feedback for extensions APIs, creation, management, etc and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Mar 26, 2024
@JosephTLyons
Copy link
Collaborator

@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 JosephTLyons added the needs info / awaiting response Issue that needs more information from the user label Mar 26, 2024
@ronkristoff
Copy link
Author

@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
Copy link
Collaborator

JosephTLyons commented Mar 28, 2024

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
Copy link
Author

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

@Moshyfawn
Copy link
Member

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
Copy link
Author

@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
Copy link

KeentGG commented Apr 4, 2024

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
Copy link
Collaborator

JosephTLyons commented Apr 4, 2024

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

@KeentGG
Copy link

KeentGG commented Apr 4, 2024

@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?

@JosephTLyons JosephTLyons added the network Network connectivity issues, protocols and services support label Apr 4, 2024
@michealp-coder
Copy link

michealp-coder commented Apr 12, 2024

Is this issue the same as

@KeentGG
Copy link

KeentGG commented Apr 12, 2024

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

@ronkristoff
Copy link
Author

@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
Copy link

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

@ronkristoff any updates?

@kechie
Copy link

kechie commented Jun 21, 2024

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
Copy link

jaeyson commented Jul 8, 2024

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.

@RomainLanz
Copy link

RomainLanz commented Jul 12, 2024

I am having the same issue with the latest Linux build (so it might not be related to this exact issue).

2024-07-12T11:27:18+02:00 [INFO] installing extension php latest version
2024-07-12T11:27:18+02:00 [WARN] request completed with error: failed to connect to the server
2024-07-12T11:27:18+02:00 [ERROR] error downloading extension: failed to connect to the server
2024-07-12T11:27:20+02:00 [WARN] Unknown request DestroyIcReply { input_method_id: 4, input_context_id: 49 }
2024-07-12T11:28:01+02:00 [WARN] Unknown request DestroyIcReply { input_method_id: 4, input_context_id: 51 }
2024-07-12T11:28:01+02:00 [WARN] Unknown request DestroyIcReply { input_method_id: 4, input_context_id: 52 }
2024-07-12T11:28:01+02:00 [WARN] Unknown request DestroyIcReply { input_method_id: 4, input_context_id: 53 }
2024-07-12T11:28:03+02:00 [WARN] Unknown request DestroyIcReply { input_method_id: 4, input_context_id: 55 }
2024-07-12T11:28:03+02:00 [WARN] Unknown request DestroyIcReply { input_method_id: 4, input_context_id: 56 }
2024-07-12T11:28:03+02:00 [WARN] Unknown request DestroyIcReply { input_method_id: 4, input_context_id: 57 }

@jaeyson
Copy link

jaeyson commented Jul 12, 2024

one workaround to install extension:

Finding the extension link

an example link: https://api.zed.dev/extensions/<EXTENSION_ID>/download

where to get EXTENSION_ID?

  1. go to extensions
  2. find the extension you want to install
  3. on the right side you can see its button "Install" and the "Github icon"
    Screenshot from 2024-07-12 17-58-33
  4. click the Github icon so it'll go to the github page
  5. open the extension.toml
  6. look for the id, in this example:
id = "macos-classic"   <--- this ID
name = "macOS Classic Theme"
description = "A macOS native style theme, let it same like native app in macOS."
version = "0.0.8"
schema_version = 1
authors = ["Jason Lee <[email protected]>"]
repository = "https:/huacnlee/zed-theme-macos-classic"

so the link will be: https://api.zed.dev/extensions/macos-classic/download

Download the extension using a disposable browser or another way

You can use vpn or any as long as you can download the said link

OR

Visit this site: https://sqrx.com, then click personal. In this step you can use e.g. Brave or Chrome (I think Firefox not supported on this site). From there you can download the link

Where to save the extension after downloading it

  • Close Zed editor
  • extract the archive.tar.gz file and rename the extracted folder according to the extension id
  • copy the extracted folder on these path:
    • osx: ~/Library/Application\ Support/Zed/extensions/installed/extracted_folder_name
    • ubuntu: ~/.local/share/zed/extensions/installed/extracted_folder_name

Then open Zed, check if installed.

@ronkristoff
Copy link
Author

I can install extensions now, it seems that the download link is being geo blocked. Using VPN solved my issue.

@michealp-coder
Copy link

As of Zed Preview 0.154.0, I can now install extension (maybe 0.153)

#10330 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect [core label] extension infrastructure Feedback for extensions APIs, creation, management, etc needs info / awaiting response Issue that needs more information from the user network Network connectivity issues, protocols and services support
Projects
None yet
Development

No branches or pull requests

8 participants