Open taimast opened 1 month ago
When implementing the proxy
setting, I didn’t have the chance to test the format http://user:password@domain_proxy:port
, as I don’t have such a network environment. Some people on GitHub have reported issues with npm’s proxy settings when usernames or passwords contain special characters (e.g., !
). Dose your username or password contain any special characters?
Reference: https://github.com/npm/npm/issues/14421#issuecomment-402897602
When implementing the
proxy
setting, I didn’t have the chance to test the formathttp://user:password@domain_proxy:port
, as I don’t have such a network environment. Some people on GitHub have reported issues with npm’s proxy settings when usernames or passwords contain special characters (e.g.,!
). Dose your username or password contain any special characters?Reference: npm/npm#14421 (comment)
No, just letters and numbers
Dose the built-in Rust extension work for you? And can you log-in with this proxy?
I noticed that the yaml-language-server
in particular seems to have it's own setting for http.proxy
.
Can you try passing your proxy as an explicit workspace setting to yaml-language-server
and see if it helps (untested):
"lsp": {
"yaml-language-server":
"settings": {
"http": {
"proxy": "http://whatever"
}
}
}
}
Are there other language servers which are also failing?
@taimast Could you please try out this PR #19025? A previous commit caused the node
proxy settings to stop working. If your issue is still not resolved, we may need to handle the user:pwd@ip:port
format specially.
I noticed that the
yaml-language-server
in particular seems to have it's own setting forhttp.proxy
.Can you try passing your proxy as an explicit workspace setting to
yaml-language-server
and see if it helps (untested):"lsp": { "yaml-language-server": "settings": { "http": { "proxy": "http://whatever" } } } }
Are there other language servers which are also failing?
After that, the error continued anyway
There were no such errors with other language servers
@taimast Could you please try out this PR #19025? A previous commit caused the
node
proxy settings to stop working. If your issue is still not resolved, we may need to handle theuser:pwd@ip:port
format specially.
Yes, it helped
This revert #18892 also solved the problem
@taimast If I understand you correctly, the current main branch works for you?
@JunkuiZhang It seems I was in a hurry, no, the problem has not been solved yet, this time I get an error with the json language server
Language server error: json-language-server
failed to execute npm info subcommand:
stdout: "{\n \"error\": {\n \"code\": \"E407\",\n \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\",\n \"detail\": \"\"\n }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-10-13T01_15_56_494Z-debug-0.log\n"
-- stderr--
@JunkuiZhang It seems I was in a hurry, no, the problem has not been solved yet, this time I get an error with the json language server
Language server error: json-language-server failed to execute npm info subcommand: stdout: "{\n \"error\": {\n \"code\": \"E407\",\n \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\",\n \"detail\": \"\"\n }\n}\n" stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-10-13T01_15_56_494Z-debug-0.log\n" -- stderr--
Dose the current main branch work for you? The http_client
thing has been refactored, it works fine on my end now.
@JunkuiZhang It seems I was in a hurry, no, the problem has not been solved yet, this time I get an error with the json language server
Language server error: json-language-server failed to execute npm info subcommand: stdout: "{\n \"error\": {\n \"code\": \"E407\",\n \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\",\n \"detail\": \"\"\n }\n}\n" stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-10-13T01_15_56_494Z-debug-0.log\n" -- stderr--
Dose the current main branch work for you? The
http_client
thing has been refactored, it works fine on my end now.
Last main branch version. Still get this errors for json, yml, etc
Zed: v0.161.0 (Zed Dev 50069a215376eb369554eefc0875719949309b38)
OS: Windows 10.0.22631
Memory: 63.2 GiB
Architecture: x86_64
GPU: AMD Radeon RX 5600 XT || AMD proprietary driver || 24.10.27.01 (AMD proprietary shader compiler)
Language server error: json-language-server
failed to execute npm info subcommand:
stdout: "{\n \"error\": {\n \"code\": \"E407\",\n \"summary\": \"407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\",\n \"detail\": \"\"\n }\n}\n"
stderr: "npm ERR! code E407\nnpm ERR! 407 Proxy Authentication Required - GET https://registry.npmjs.org/vscode-langservers-extracted\n\nnpm ERR! A complete log of this run can be found in: C:\\Users\\taima\\AppData\\Local\\Zed\\node\\cache\\_logs\\2024-11-06T02_34_02_512Z-debug-0.log\n"
-- stderr--
Check for existing issues
Describe the bug / provide steps to reproduce it
With the proxy enabled, some language servers cannot start and ask for authentication for node. And for some reason, every time it starts, it starts downloading language servers, although when it starts without a proxy, it has already installed them
The proxies are specified in the format
"proxy": "http://log:pass@ip:port"
. In Assistant Window proxy works without problemsEnvironment
Zed: v0.157.0 (Zed Dev 37ded190cf3c755ea544b489715fd9c0bf0845d9) OS: Windows 10.0.22631 Memory: 63.2 GiB Architecture: x86_64 GPU: AMD Radeon RX 5600 XT || AMD proprietary driver || 24.5.1 (AMD proprietary shader compiler)
If applicable, add mockups / screenshots to help explain present your vision of the feature
If applicable, attach your Zed.log file to this issue.
Zed.log