You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To find out the list of all the phases and their names, check out [this](https://github.com/lampepfl/dotty/blob/10526a7d0aa8910729b6036ee51942e05b71abf6/compiler/src/dotty/tools/dotc/Compiler.scala#L34) line in `Compiler.scala`. Each `Phase` objecthas `phaseName` defined on it, this is the phase name.
112
113
114
+
##Printing out stack traces of compile time errors
115
+
You can use the flag `-Ydebug-error` to get the stack trace of all the compile-time errors. Consider the following file:
116
+
117
+
```scala
118
+
objectFoo
119
+
objectFoo
120
+
```
121
+
122
+
Clearly we cannot define an object`Foo` twice. Now compile it asfollows: `dotc -Ydebug-error ../issues/Playground.scala` (use whatever path you saved it under). The result will be asfollows:
So, the error happened in the Namer's `checkNoConflict` method (after which all the stack frames represent the mechanics of issuing an error, not an intent that produced the error in the first place).
141
+
113
142
##Configuring the printer output
114
143
Printing from the `show` and `-Xprint` is done from the Printers framework (discussed in more details below). The following settings influence the output of the printers:
0 commit comments