Shopify / vscode-as

VSCode Language Client for AssemblyScript
MIT License
16 stars 6 forks source link

asls not found #20

Closed jerrygreen closed 3 years ago

jerrygreen commented 3 years ago

In my package.json I have the required asbuild command:

{
  "scripts": {
    "asbuild": "asc --extension as",
  }
}

When I run yarn asbuild it perfectly builds, and shows me errors:

image

I use Windows so I installed alpine-linux via WSL, installed Nix there, and started the language server in Terminal:

image

But still I'm getting this asls not found error in VSCode:

image

In console where I run asls I see no errors or anything when starting VSCode, though if I manually try to access localhost:7658 in browser and then close the tab, it shut downs with error:

image

So therefore it's not the issue with port forwarding or anything, but the extension itself, it seems. The version:

asls --version
v0.5.1

VSCode saulecabrera.asls version: v0.3.3

saulecabrera commented 3 years ago

@JerryGreen I've published https://github.com/Shopify/vscode-as/releases/tag/v0.4.0 which brings a couple of improvements, including improved support for WSL and less overhead during the setup. Could you confirm if this is working on your side?

munrocket commented 2 years ago

@saulecabrera Tried to install it on MacBook and get this error:

/Users/munrocket/.vscode/extensions/saulecabrera.asls-0.4.0/bin/asls/bin/asls:
/Users/munrocket/.vscode/extensions/saulecabrera.asls-0.4.0/bin/asls/releases/0.6.0/elixir:
/nix/store/kl013dwzxf67l4pfrx6x2d5q6pq9gf36-bash-4.4-p23/bin/sh: bad interpreter: No such file or directory
/Users/munrocket/.vscode/extensions/saulecabrera.asls-0.4.0/bin/asls/bin/asls: line 108:
/Users/munrocket/.vscode/extensions/saulecabrera.asls-0.4.0/bin/asls/releases/0.6.0/elixir: Undefined error: 0

It seems that Apple can quarantine the script or wrong line endings.