Repository navigation
fix(engine): warn when a supported file fails tree-sitter parse - #430
Draft
vibgrate-team wants to merge 3 commits into
Draft
vibgrate-team wants to merge 3 commits into
vibgrate-team wants to merge 3 commits into
Conversation
A registered-language file that throws, returns no tree, or recovers as only ERROR nodes with no definitions now emits VG_WARN_PARSE_FAILED. The line names the path and language and tells you to fix the syntax or exclude the path. The same input always produces the same text; the parser exception is not part of the warning. vg scan prints that line when it builds the map. Closes #289 Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
A supported-language file the parser cannot read produces a stable VG_WARN_PARSE_FAILED warning with the path, the language, and the next step. The map continues without that file's symbols. The warning does not include a stack trace. vg build and vg scan both print it. Signed-off-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
Signed-off-by: Cursor Agent <cursoragent@cursor.com> # Conflicts: # CHANGELOG.md Co-authored-by: vibgrate-team <vibgrate-team@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When
vg buildorvg scanreads a supported-language file that the parser cannot read, it now prints a stable warning instead of dropping the file silently:The warning names the file and language, contains no stack trace or file contents, and is identical across runs on the same tree. The map continues without that file's symbols and the exit code stays
0.Related issues
Closes #289
Checklist
pnpm testpassespnpm lintis cleanpnpm typecheckis cleanHow to verify
pnpm test pnpm lint pnpm typecheck