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

saw-core position reporting doesn't print correctly #2140

Open
sauclovian-g opened this issue Nov 2, 2024 · 0 comments
Open

saw-core position reporting doesn't print correctly #2140

sauclovian-g opened this issue Nov 2, 2024 · 0 comments
Assignees
Labels
needs test Issues for which we should add a regression test topics: error-messages Issues involving the messages SAW produces on error type: bug Issues reporting bugs or unexpected/unwanted behavior
Milestone

Comments

@sauclovian-g
Copy link
Contributor

sawscript> parse_core "gibberish;"
[00:40:45.385] PosPair {_pos = Pos {posBase = "<interactive>", posPath = "<interactive>", posLine = 1, posCol = 9}, val = UnexpectedToken (TKey ";")}

Stack trace:
"parse_core" (<stdin>:1:1-1:11)
PosPair {_pos = Pos {posBase = "<interactive>", posPath = "<interactive>", posLine = 1, posCol = 9}, val = UnexpectedToken (TKey ";")}

sawscript> 

It appears to be using Show on the saw-core position type, and the Show instance isn't suitable.

@sauclovian-g sauclovian-g added type: bug Issues reporting bugs or unexpected/unwanted behavior topics: error-messages Issues involving the messages SAW produces on error needs test Issues for which we should add a regression test labels Nov 2, 2024
@sauclovian-g sauclovian-g added this to the 2024T3 milestone Nov 2, 2024
@sauclovian-g sauclovian-g self-assigned this Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs test Issues for which we should add a regression test topics: error-messages Issues involving the messages SAW produces on error type: bug Issues reporting bugs or unexpected/unwanted behavior
Projects
None yet
Development

No branches or pull requests

1 participant