M4R7iNP / varnishls

Varnish VCL language server
GNU Lesser General Public License v3.0
15 stars 4 forks source link

Update tree-sitter-cli for Apple Silicon builds #14

Closed duffn closed 3 weeks ago

duffn commented 3 weeks ago

This updates the Node package versions.

❯ make tree-sitter-vcl tree-sitter-vtc
cd vendor/tree-sitter-vcl && npm ci && npm run build

added 2 packages, and audited 3 packages in 30s

found 0 vulnerabilities

> tree-sitter-vcl@1.0.0 build
> tree-sitter generate

node:internal/child_process:421
    throw new ErrnoException(err, 'spawn');
    ^

Error: spawn Unknown system error -86
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at spawn (node:child_process:761:9)
    at Object.<anonymous> (/Users/duffn/code/varnishls/vendor/tree-sitter-vcl/node_modules/tree-sitter-cli/cli.js:8:1)
    at Module._compile (node:internal/modules/cjs/loader:1376:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
    at node:internal/main/run_main_module:28:49 {
  errno: -86,
  code: 'Unknown system error -86',
  syscall: 'spawn'
}

Node.js v21.4.0
make: *** [tree-sitter-vcl] Error 1
M4R7iNP commented 3 weeks ago

Thanks!