The Crystal Programming Language Forum

Crystal tool expand example?

Could somebody help me find an example of “crystal tool expand” where it works? Mine always says “no expansion found” …

What I’m kind of wishing for is a way to see “a file after the macros are fully expanded”…

In case useful in cases like these:

Thanks!

OK found one Is there a way to see what a Crystal macro expands to? - Stack Overflow

Still hope to someday be able to get full backtraces and “fully expanded files” for debugging :slight_smile:

Also contains a fix’ish workaround for the “upgrade to 1.x Error: undefined method ‘mapping’ for JSON:Module” failure message.

2 Likes