wakatime / zed-wakatime

A WakaTime extension for Zed.
https://wakatime.com/zed
MIT License
49 stars 4 forks source link

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

Open taimast opened 1 week ago

taimast commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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

bestgopher commented 1 week ago

@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 commented 4 days ago

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