8000 Include input line numbers in ungron errors by Doomguy-BFG9000 · Pull Request #138 · tomnomnom/gron · GitHub
[go: up one dir, main page]

Skip to content

Include input line numbers in ungron errors - #138

Open
Doomguy-BFG9000 wants to merge 1 commit into
tomnomnom:masterfrom
Doomguy-BFG9000:fix/ungron-error-lines
Open

Doomguy-BFG9000 wants to merge 1 commit into
tomnomnom:masterfrom
Doomguy-BFG9000:fix/ungron-error-lines

Conversation

@Doomguy-BFG9000
Copy link
Copy Markdown

Malformed ungron input now reports its 1-based physical input line, including JSON-spec input. Blank lines and grep separators continue to count toward the line number, and merge conflicts report the originating statement line.

This addresses the ungron portion of #39; line-number diagnostics for normal gron JSON input remain outside this change. Regression tests cover first-line errors, blank/separator lines, malformed JSON-spec statements, merge errors, and successful recoverable input.

Validation on Windows with Go 1.27.3: go test -count=1 ./..., go vet ./..., go build, and executable smoke checks passed. The legacy script/lint gometalinter toolchain was not run.

Refs #39.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0