MoiraeSoftware / myriad

Myriad is a code generator for F#

Home Page:https://moiraesoftware.github.io/myriad/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Latest version does not show call stack for exceptions

UnoSD opened this issue · comments

I have recently upgraded from 0.2.8 to 0.4.0.

I used to get the full stack trace in the logs on exceptions, now, even with --verbose, I only get the error message.

I also tried to attach the debugger and didn't hit the exception (but that may be an issue with JetBrains Rider, I need to investigate)

Thank you for this library.

Hmm, yeah this commit changed the behaviour so that the euro becomes part of the output: 98257af#diff-dde16575788240cf6938e1cfac58d7f4

At the very least we need to emit the error fully with stack trace on verbose. Im not sure I like the error being output not the AST, thoughts?

@7sharp9 I'm not sure I'm too fussed either way. As long as the output doesn't compile, I don't mind the error (and the stack trace) in the .fs file; it may help focus more rather than digging into the build logs, but I don't mind scrolling down to find the exception, either.

Fixed in 0.6.3