I develop macros (with type refinement) and when transparent added, the compilation doesn’t end. Could you help me, how to check the phase or sth, when compilation gets stuck?
You can compile with with enabled tracing (added in Scala 3.6.3, backported to 3.3.6 LTS) - see small description from release notes and original PR here
Compile with -Yprofile-enabled, -Yprofile-trace:path/to/trace/file, then open created file in https://ui.perfetto.dev/ or other Chrome traces compatible renderer. If you interrupt termination you might need to fix the output file (add missing } or ] to terminate profile file (emitted as json). There might be more then 1 file created (because macros lead to creating new compilation run), so you might need to look for file with number suffix.
transparent inline is evaluated during typer phase, normal macros are evalated during inline phase. You should be able to check in which method compilation get stuck. Try to minimize and if you suspect it’s a compiler bug open issue in compiler repo
You can also run with -Vprint:all to print AST after each phase (so it would print AST in the last phase BEFORE the one it gets stuck). You can also print output after selected phases, using -Vprint:<phase>,<phase2>, -Vprint:parser,typer,genBCode
I only asked for a small favor, but what I got was a solution to so many more of my problems — thank you!