Skip to content

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

@ofsaleem

Description

@ofsaleem

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions