Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include input line numbers #13

Open
CheshireSwift opened this issue Mar 23, 2022 · 3 comments
Open

Include input line numbers #13

CheshireSwift opened this issue Mar 23, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@CheshireSwift
Copy link

When making use of KDL as the basis for a config or markup DSL, it'd be nice to be able to include line numbers in validation error output.

@larsgw larsgw added the enhancement New feature or request label Mar 23, 2022
@larsgw
Copy link
Collaborator

larsgw commented Apr 25, 2022

Do you mean during parsing?

@CheshireSwift
Copy link
Author

CheshireSwift commented Apr 30, 2022

I presume it'd need to be passed through parsing, but I mean in the final output, at the point my program is consuming the result, it'd be good to have line numbers for e.g. where a node starts in the original file, to output in logging/errors/etc.

@larsgw
Copy link
Collaborator

larsgw commented May 2, 2022

Ah, I see what you mean now. I am working on an update to the document model and I will take this into account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants