Opened 16 months ago

Closed 8 months ago

#66595 closed defect (fixed)

tree-sitter-swift @0.3.4: Failed to run `node`: Os { code: 2, kind: NotFound, message: "No such file or directory" }

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: amake (Aaron Madlon-Kay)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc: herbygillot (Herby Gillot)
Port: tree-sitter-swift, tree-sitter-cli

Description

https://build.macports.org/builders/ports-12_arm64-builder/builds/80304/steps/install-port/logs/stdio

thread 'main' panicked at 'Failed to run `node`: Os { code: 2, kind: NotFound, message: "No such file or directory" }', cli/src/generate/mod.rs:176:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Command failed: /opt/local/bin/tree-sitter generate
Exit code: 101

Change History (8)

comment:1 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

The same problem affects 0.3.5 and 0.3.6. Builds fail on all buildbot workers and on my system as well.

comment:2 Changed 13 months ago by ryandesign (Ryan Carsten Schmidt)

Cc: herbygillot added
Port: tree-sitter-cli added

Looks like this is a bug in tree-sitter-cli, which apparently depends on the existence of a node binary?

comment:3 Changed 13 months ago by amake (Aaron Madlon-Kay)

No, it's not a bug; the tree-sitter CLI tool shells out to node:

https://github.com/tree-sitter/tree-sitter/blob/25d9c989ebdc53dbad3852317c5b45228ff012e4/cli/src/generate/mod.rs#L171

So the tree-sitter-cli port needs a nodejs port as a runtime dependency.

comment:5 Changed 13 months ago by Aaron Madlon-Kay <aaron@…>

In ca9ca0e68ef28c5471745f11d3e5dafcb95e5b2e/macports-ports (master):

tree-sitter-cli: add NodeJS runtime dependency

See: #66595

comment:6 Changed 13 months ago by amake (Aaron Madlon-Kay)

This should be fixed. Am I able to trigger a rebuild?

comment:7 in reply to:  6 Changed 12 months ago by ryandesign (Ryan Carsten Schmidt)

I've scheduled rebuilds of tree-sitter-swift on 10.9 and later.

comment:8 Changed 8 months ago by amake (Aaron Madlon-Kay)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.