fastparse icon indicating copy to clipboard operation
fastparse copied to clipboard

scala3 tracing failing to detect name of method

Open caoilte opened this issue 2 years ago • 1 comments

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.

caoilte avatar Mar 27 '23 20:03 caoilte

@caoilte please provide a code sample that reproduces the issue

lihaoyi avatar Mar 27 '23 23:03 lihaoyi