hissp icon indicating copy to clipboard operation
hissp copied to clipboard

Remove internal frames from SyntaxErrors

Open gilch opened this issue 4 years ago • 3 comments

Displaying the inner workings of the compiler just adds noise for the end user.

gilch avatar Dec 06 '20 04:12 gilch

The REPL already does this, but you can still see the traceback for SyntaxErrors when running a main module, and maybe when compiling one.

gilch avatar Dec 06 '20 04:12 gilch

I looked into this a while back, and it was a pretty tricky thing to do well.

brandonwillard avatar Dec 06 '20 04:12 brandonwillard

The way the REPL suppresses these makes them incompatible with doctests. It's easy enough to work around, but not ideal.

gilch avatar Jan 10 '21 22:01 gilch