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

[Windows] Language server error: wakatime failed to download file: failed to unzip wakatime-ls-v0.1.6 archive -- stderr-- #11

Open
taimast opened this issue Nov 26, 2024 · 4 comments

Comments

@taimast
Copy link

taimast commented Nov 26, 2024

the binaries were successfully downloaded and unzipped, but for some reason this error pops up

2024-11-26T14:50:22.8646358+03:00 [ERROR] Failed to start language server "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-26T11_50_22_282Z-debug-0.log\n"
2024-11-26T14:50:22.8647323+03:00 [ERROR] server stderr: ""
2024-11-26T14:50:22.876282+03:00 [INFO] language server 1: unregistered workspace/DidChangeWatchedFiles capability with id b3ff335e-94bb-4182-8643-634aad5f8ed6
2024-11-26T14:50:22.910471+03:00 [INFO] language server 2: unregistered workspace/DidChangeWatchedFiles capability with id 6c7c177d-ce8d-4901-99ea-25b487a9bbca
2024-11-26T14:50:26.7735466+03:00 [INFO] Creating buffer 0x178a3d196a0 of size 66976, name 'chunk-12', handle 18
2024-11-26T14:50:27.2212151+03:00 [INFO] Creating texture 0x178a95dca80 of size 1024x1024x1 and format R16Float, name 'atlas', handle 19
2024-11-26T14:50:27.221478+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-26T14:50:27.2289104+03:00 [INFO] Creating a descriptor pool for at most 16 sets
2024-11-26T14:50:27.2364664+03:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-11-26T14:50:27.2439094+03:00 [INFO] Creating a descriptor pool for at most 256 sets
2024-11-26T14:50:27.29913+03:00 [INFO] starting language server process. binary path: "C:\\Users\\taima\\AppData\\Local\\Zed\\extensions\\work\\wakatime\\wakatime-ls-v0.1.6\\wakatime-ls", working directory: "C:\\Users\\taima\\AppData\\Roaming\\Zed", args: ["--wakatime-cli", "/C:\\Users\\taima\\AppData\\Local\\Zed\\extensions\\work\\wakatime/wakatime-cli-v1.106.0/wakatime-cli-windows-amd64"]
2024-11-26T14:50:31.8837995+03:00 [ERROR] Failed to start language server "wakatime": failed to download file: failed to unzip wakatime-ls-v0.1.6 archive
2024-11-26T14:50:31.8838501+03:00 [ERROR] server stderr: ""
2024-11-26T14:50:46.0269139+03:00 [INFO] Creating buffer 0x178825002c0 of size 70896, name 'chunk-13', handle 20
2024-11-26T14:50:46.0380406+03:00 [INFO] Creating buffer 0x178824fec40 of size 70896, name 'chunk-14', handle 21
2024-11-26T14:50:54.9984037+03:00 [INFO] Creating buffer 0x178a3d19ea0 of size 99344, name 'chunk-15', handle 22
2024-11-26T14:50:54.9987065+03:00 [INFO] Creating buffer 0x178a3d1a120 of size 99344, name 'chunk-16', handle 23
2024-11-26T14:50:56.0462408+03:00 [INFO] Creating buffer 0x178a3d19f20 of size 106064, name 'chunk-17', handle 24
2024-11-26T14:50:56.0465239+03:00 [INFO] Creating buffer 0x178a3d18ba0 of size 106064, name 'chunk-18', handle 25

@bestgopher
Copy link
Collaborator

2024-11-26T14:50:31.8837995+03:00 [ERROR] Failed to start language server "wakatime": failed to download file: failed to unzip wakatime-ls-v0.1.6 archive
It indicates that the unzip operation failed. Could you try calling zed::download_file as shown here?

@alanhamlett
Copy link
Member

@bestgopher can we bundle the lsp instead of having it download from github? The less network requests the more reliable installs will be.

@bestgopher
Copy link
Collaborator

bestgopher commented Nov 27, 2024

@bestgopher can we bundle the lsp instead of having it download from github? The less network requests the more reliable installs will be.

Could you provide some details about your thoughts?

@taimast
Copy link
Author

taimast commented Nov 29, 2024

2024-11-26T14:50:31.8837995+03:00 [ERROR] Failed to start language server "wakatime": failed to download file: failed to unzip wakatime-ls-v0.1.6 archive It indicates that the unzip operation failed. Could you try calling zed::download_file as shown here?

What do you mean try call? This call is performed by zed automatically when installing this wakatime library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants