tree-sitter.tree-sitter/cli/src
Will Lillis 0c83a5d03e fix(cli): improve error message when language in list can't be found (#4643)
Problem: When multiple input paths are provided to the `parse` command (a la `tree-sitter parse --paths [...]`), if a language can't be found for one of the paths, it can be a little unclear *which* path caused the failure. The loader *can* fail with `Failed to load language for file name <foo.bar>`, but this isn't guaranteed.

Solution: Attach some additional context in the case where multiple paths can be provided, displaying the problematic path on failure.
(cherry picked from commit 9ced6172de)
2025-08-02 12:17:52 +02:00
..
fuzz perf: reserve Vec capacities where appropriate 2025-07-09 22:33:57 -04:00
templates feat(bindings): improve python binding test 2025-07-29 23:52:26 -04:00
tests fix(rust): prevent overflow in error message calculation 2025-07-25 12:14:35 +02:00
highlight.rs perf: reserve Vec capacities where appropriate 2025-07-09 22:33:57 -04:00
init.rs feat(bindings): improve python binding test 2025-07-29 23:52:26 -04:00
input.rs fix(rust): adapt to new nightly lint 2025-03-06 18:25:24 -05:00
lib.rs feat(cli): make input handling agnostic 2025-01-03 16:16:17 -05:00
logger.rs fix(cli): allow dead code in Logger 2021-08-04 03:38:58 +03:00
main.rs fix(cli): improve error message when language in list can't be found (#4643) 2025-08-02 12:17:52 +02:00
parse.rs fix(parse): explicitly move temporaries in the logger callback 2025-04-28 10:12:37 +02:00
playground.html fix(playground): work around lack of module support in mdbook 2025-01-22 04:09:08 -05:00
playground.rs docs: move assets to correct path 2024-12-25 21:23:36 -05:00
query.rs fix(rust): adapt to new nightly lint 2025-03-06 18:25:24 -05:00
query_testing.rs feat: remove lazy_static in favor of LazyLock 2025-01-21 00:21:35 -05:00
tags.rs feat(cli): rework tags to use new input handler 2025-01-03 16:16:17 -05:00
test.rs feat: remove lazy_static in favor of LazyLock 2025-01-21 00:21:35 -05:00
test_highlight.rs fix(highlight): account for multiple rows in highlight testing assertions 2025-04-06 17:13:43 +02:00
test_tags.rs chore: a few minor lints 2025-01-21 00:57:58 -05:00
util.rs chore: some more clippy lints 2024-02-13 03:33:07 -05:00
version.rs feat: add version subcommand for versioning grammars 2024-10-18 22:08:57 -04:00
wasm.rs fix(rust): adapt to new nightly lint 2025-03-06 18:25:24 -05:00