Commit 5b0e831
committed
Fix tree-sitter not found after cargo install
Install-TreeSitter does not add ~/.cargo/bin to $env:PATH after
running cargo install, unlike Install-Rust which does. When Rust is
already present on the system (so Install-Rust is a no-op) and
~/.cargo/bin is not in the inherited PATH, the tree-sitter binary
cannot be found by Export-GrammarBinding.
Add the same PATH update logic that Install-Rust uses.
Contact: johan.kallio@teamtech.se1 parent 0530a16 commit 5b0e831
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
500 | 500 | | |
501 | 501 | | |
502 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
503 | 516 | | |
504 | 517 | | |
505 | 518 | | |
| |||
0 commit comments