Is there any option to turn on verbose output from compiler? Or to see what is causing the crash? Enabling stats
reveal that crash happening on codegen
phase, but it doesn’t reveal much details.
Crash i’m experiencing is what is detailed in issue BUG: `def consume_substitution - crystal/src/string/formatter.cr:57:11 has no type (Exception) · Issue #12825 · crystal-lang/crystal · GitHub
Parse: 00:00:00.000021208 ( 0.77MB)
Semantic (top level): 00:00:00.925142750 ( 333.28MB)
Semantic (new): 00:00:00.002626875 ( 333.28MB)
Semantic (type declarations): 00:00:00.050702333 ( 333.28MB)
Semantic (abstract def check): 00:00:00.017858541 ( 333.28MB)
Semantic (restrictions augmenter): 00:00:00.010660833 ( 333.28MB)
Semantic (ivars initializers): 00:00:00.954115750 ( 365.28MB)
Semantic (cvars initializers): 00:00:01.394070958 ( 701.70MB)
Semantic (main): 00:00:00.896384167 ( 798.20MB)
Semantic (cleanup): 00:00:00.001196666 ( 798.20MB)
Semantic (recursive struct check): 00:00:00.001653792 ( 798.20MB)
BUG: `def consume_substitution
key = consume_substitution_key('}')
arg_at(key)
end` at /opt/homebrew/Cellar/crystal/1.7.2/share/crystal/src/string/formatter.cr:57:11 has no type (Exception)
from /opt/homebrew/Cellar/crystal/1.7.2/libexec/crystal in 'raise<Exception>:NoReturn'
from /opt/homebrew/Cellar/crystal/1.7.2/libexec/crystal in 'raise<String>:NoReturn'
...
captured recording can bee seen at untitled - asciinema
Any insight or guidance is highly appreciated.