Open ofsaleem opened 2 years ago
+1 on this issue for darwin-arm64 (M1) binary. We had experienced this issue during development as well, so definitely not a new issue.
For posterity, a workaround is to:
Enable Auto Update
in the Jsonnet Language Server settings (i.e. "jsonnet.languageServer.enableAutoUpdate": false
)Path to Binary
in the Jsonnet Language Server settings to the associated path of binary (e.g. "jsonnet.languageServer.pathToBinary": "~/path/to/binary/jsonnet-language-server"
)this happened again with 0.7.2, i was following zack's instructions but I also had to run sudo xattr -d com.apple.quarantine /path/to/language/server
to be able to use it
Even all of the above steps were unable to resolve the issue (M1 Pro).
[Error - 4:14:39 PM] Jsonnet Language Server client: couldn't create connection to server.
Launching server using command /Users/jackson/.vscode-oss/extensions/grafana.vscode-jsonnet-0.3.1/vscode-jsonnet-0.3.1.vsix failed. Error: spawn /Users/jackson/.vscode-oss/extensions/grafana.vscode-jsonnet-0.3.1/vscode-jsonnet-0.3.1.vsix EACCES
[Error - 4:14:39 PM] Sending notification workspace/didChangeConfiguration failed.
Launching server using command /Users/jackson/.vscode-oss/extensions/grafana.vscode-jsonnet-0.3.1/vscode-jsonnet-0.3.1.vsix failed. Error: spawn /Users/jackson/.vscode-oss/extensions/grafana.vscode-jsonnet-0.3.1/vscode-jsonnet-0.3.1.vsix EACCES
Even all of the above steps were unable to resolve the issue (M1 Pro).
[Error - 4:14:39 PM] Jsonnet Language Server client: couldn't create connection to server. Launching server using command /Users/jackson/.vscode-oss/extensions/grafana.vscode-jsonnet-0.3.1/vscode-jsonnet-0.3.1.vsix failed. Error: spawn /Users/jackson/.vscode-oss/extensions/grafana.vscode-jsonnet-0.3.1/vscode-jsonnet-0.3.1.vsix EACCES [Error - 4:14:39 PM] Sending notification workspace/didChangeConfiguration failed. Launching server using command /Users/jackson/.vscode-oss/extensions/grafana.vscode-jsonnet-0.3.1/vscode-jsonnet-0.3.1.vsix failed. Error: spawn /Users/jackson/.vscode-oss/extensions/grafana.vscode-jsonnet-0.3.1/vscode-jsonnet-0.3.1.vsix EACCES
You should grand execute access to binary, eg: chmod +x ./jsonnet-language-server_0.12.1_linux_arm64
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 repeatsvscode output:
however the same binary works if its in ~/go/bin/
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