grafana / grafana/vscode-jsonnet

Auto-Update does not work for darwin-arm64 (M1/M2 macs)

Open
#3 4 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
86
Forks
12
PR merge metrics
No merged PRs in 30d

Description

vscode auto updated the binary to 0.6.4, but the server no longer runs. and since it cant run, even with `--version`, it cant check the versions, so it asks to auto-update again, and the process repeats

vscode output:
```
Not using custom binary path. Using default path
Binary path is /Users/omar/Library/Application Support/Code/User/globalStorage/julienduchesne.vscode-jsonnet/bin/jsonnet-language-server (exists: true)
Auto-update is enabled. Fetching latest release from https://api.github.com/repos/grafana/jsonnet-language-server/releases/latest
Latest release is 0.6.4
Failed to get current version from /Users/omar/Library/Application Support/Code/User/globalStorage/julienduchesne.vscode-jsonnet/bin/jsonnet-language-server
Error: Command failed: /Users/omar/Library/Application Support/Code/User/globalStorage/julienduchesne.vscode-jsonnet/bin/jsonnet-language-server --version
```

however the same binary works if its in ~/go/bin/
```
~/go/bin $ ./jsonnet-language-server --version
jsonnet-language-server version 0.6.4
```
```
~/L/Application Su/Co/U/g/j/bin $ ./jsonnet-language-server --version
[1] 93390 killed ./jsonnet-language-server
```

im using the darwin-arm64 binary. after auto-update failed, i downloaded it manually from github and moved it into my go/bin folder, then after confirming it worked via command line, copied it to the binary path given in the vscode output above

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.