davidg238 10/16/2022 02:26 AMI have been launching the open source Toit at the CLI on Ubuntu and wanted to try to use VSCode plugin again.
When I open VSCode, with extension v1.6.5, I get the attached extension error.
settings.json looks like:
{
"explorer.confirmDelete": false,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"toit.path": "/home/david/toit/build/host/sdk/bin/",
"toitLanguageServer.command": ["/home/david/toit/build/host/sdk/bin/toit.lsp", "--toitc=/home/david/toit/build/host/sdk/bin/toit.compile"],
}
JAG is on the path, /home/david/toit/build/host/sdk/bin/ is not.
AFter looking at some search results 'on spawnSync .. EACCES' , I updated the settings to:
{
"explorer.confirmDelete": false,
"editor.tabSize": 2,
"editor.detectIndentation": false,
"toit.path": "/home/david/toit/build/host/sdk/bin/toit.run",
"toitLanguageServer.command": [
"/home/david/toit/build/host/sdk/bin/toit.lsp",
"--toitc=/home/david/toit/build/host/sdk/bin/toit.compile"
],
"jag.path": "/usr/local/bin/jag",
}
and got the error
Running the toit tool at '/home/david/toit/build/host/sdk/bin/toit.run' yielded an error: Error: Command failed: /home/david/toit/build/host/sdk/bin/toit.run version -o short
Also, wasn't there a Toit logo in the Primary Sidebar ... or is the lack thereof, just a consequence of the extension configuration error?
Any ideas? Thx(edited)