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

scala3 tracing failing to detect name of method #284

Open
caoilte opened this issue Mar 27, 2023 · 1 comment
Open

scala3 tracing failing to detect name of method #284

caoilte opened this issue Mar 27, 2023 · 1 comment

Comments

@caoilte
Copy link

caoilte commented Mar 27, 2023

Mostly everything is fine in scala3 but I'm struggling to make trace for me. instead of printing the function name where the error occurred it always prints something like ParserGrammar$$$Lambda$122/0x0000000800d4b920@cad498c):1:3 where ParserGrammar is an object and the parser is a standard def within the object.

It does seem to work on built in parsers okay (eg end-of-input)

Possibly the problem is related to CharPred and the function (Char => Boolean) I am passing it always being traced as an unhelpful anonymous lambda. It may not even be a scala 3 thing.

@lihaoyi
Copy link
Member

lihaoyi commented Mar 27, 2023

@caoilte please provide a code sample that reproduces the issue

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

No branches or pull requests

2 participants