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

[bug] - Correct Line Number Calculation #3550

Merged
merged 2 commits into from
Nov 5, 2024
Merged

Conversation

ahrav
Copy link
Collaborator

@ahrav ahrav commented Nov 1, 2024

Description:

This PR updates the fragmentStart value to use 1-based indexing, aligning it with file numbering. This change resolves the off-by-one line number issue that occurred when the Line value was not specified in the source_metadata proto.

Checklist:

  • Tests passing (make test-community)?
  • Lint passing (make lint this requires golangci-lint)?

@ahrav ahrav requested a review from a team November 1, 2024 21:28
@ahrav ahrav marked this pull request as ready for review November 1, 2024 21:36
@ahrav ahrav requested a review from a team as a code owner November 1, 2024 21:36
@ahrav ahrav force-pushed the bug-fix-line-number-reporting branch from 7e6044e to 2b6ba28 Compare November 1, 2024 21:37
Copy link
Collaborator

@rosecodym rosecodym left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this (and for the test!) But the last time we fixed an "obvious" off-by-one line number error, a bunch of people complained about a breaking change, and we reverted it. Will those complaints happen again here? And if it does, do we have a plan for it? (This is largely a @zricethezav question I think)

@zricethezav
Copy link
Collaborator

But the last time we fixed an "obvious" off-by-one line number error, a bunch of people complained about a breaking change, and we reverted it. Will those complaints happen again here?

Who can say. Ahrav wrote a test here that looks solid to me. If it breaks something, we'll find out about it quickly and revert it.

@ahrav ahrav merged commit bf89c89 into main Nov 5, 2024
13 checks passed
@ahrav ahrav deleted the bug-fix-line-number-reporting branch November 5, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants