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

go/types, types2: add mechanism to report "last good" source file position in case of a panic #51603

Open
griesemer opened this issue Mar 10, 2022 · 0 comments
Assignees
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Milestone

Comments

@griesemer
Copy link
Contributor

We should track the source positions for the code we're in the process of type-checking so that we can report a position when panicking.

This won't simplify debugging (we can always turn on tracing), but it will make it easier for end-users to possibly find a work-around when presented with a compiler issue.

@griesemer griesemer added the NeedsFix The path to resolution is known, but the work has not been done. label Mar 10, 2022
@griesemer griesemer added this to the Go1.19 milestone Mar 10, 2022
@griesemer griesemer self-assigned this Mar 10, 2022
@griesemer griesemer modified the milestones: Go1.19, Go1.20 Jun 23, 2022
@griesemer griesemer modified the milestones: Go1.20, Backlog Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
NeedsFix The path to resolution is known, but the work has not been done.
Projects
Status: No status
Development

No branches or pull requests

1 participant