narqo / zed-jsonnet

Jsonnet language support for Zed
Apache License 2.0
2 stars 0 forks source link

language server download fails on M2 macbook #3

Open schmurfy opened 1 month ago

schmurfy commented 1 month ago

I am not sure how to debug this but something seems wrong, I have "downloading jsonnet-language-server..." in the status bar but it never move past that.

What can I do to find more informations ?

narqo commented 1 month ago

What can I do to find more informations ?

If that's something you can reproduce, have a look at Zed's logs ~/Library/Logs/Zed/Zed.log. Maybe there is something that could reveal itself.

I think I saw something like that once (also on a M2 MacBook Air), but it auto-resolved after I restarted Zed. I didn't manage to reproduce it later, by cleaning Zed extension's cache and reinstalling the extension. My naive hope was that it was either an issue in a minor version of Zed, or a problem in GitHub release's file server.

schmurfy commented 1 month ago

There is not much in the logs:

2024-08-30T08:07:25.800455+02:00 [INFO] starting language servers for Jsonnet: jsonnet-language-server
2024-08-30T08:07:25.99341+02:00 [WARN] request completed with error: failed to connect to the server
2024-08-30T08:07:26.033684+02:00 [WARN] request completed with error: failed to connect to the server

There was a similar error in the vscode jsonnet extension and I had to download the binary and place it in the right place, not sure why but it affected only m1/m2, the wrong bianry was downloaded.

Edit: I can reproduce it 100%, restarting zed makes no difference