Skip to content

Show line & column numbers#2056

Open
thomas-zahner wants to merge 3 commits intolycheeverse:masterfrom
thomas-zahner:show-span
Open

Show line & column numbers#2056
thomas-zahner wants to merge 3 commits intolycheeverse:masterfrom
thomas-zahner:show-span

Conversation

@thomas-zahner
Copy link
Member

@thomas-zahner thomas-zahner commented Feb 19, 2026

Fixes #1304

We call line & column numbers span and RawUriSpan in our code. Not sure if this is the best name, as it currently isn't really a span but a position, so the span is missing the end. But maybe we could update the span to include an end. (maybe not in this PR)

I've removed html5ever as an experiment in the second commit, to show that it makes it possible to unwrap the column. It seems like we tried to not rely too much on html5ever and the code comments discourage its usage. Maybe it's a good point to remove it then, but I'm not quite sure and don't now the background story. @mre What do you think?

Then, I'm also open to discuss how the output looks like. Do you have a better proposal? The current one seems simple and quite straight forward, basically minimal changes.

Note that @mihaigalos's suggestion with [./README.md:123:54]: would make the current grouping by input source impossible or it would lead to repetition of the input source.

Oh and just noticed that this screws up caching as the requests differ in spans. See the new test failure cli::test_caching_across_files.

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.

Feature request: Line numbers and columns in output

1 participant

Comments