From 9bc36e343aaa2702ffa79a53f82f1c2e25d0f45a Mon Sep 17 00:00:00 2001 From: Anatolii Kmetiuk Date: Thu, 1 Jul 2021 16:06:01 +0200 Subject: [PATCH] Fix -Ydebug-tree-with-id Simplify -Ydebug-tree-with-id logic. Currently it doesn't work for unknown reason so this simplified logic should be more reliable. --- compiler/src/dotty/tools/dotc/ast/Positioned.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/src/dotty/tools/dotc/ast/Positioned.scala b/compiler/src/dotty/tools/dotc/ast/Positioned.scala index e64dda2dc307..75f210d58704 100644 --- a/compiler/src/dotty/tools/dotc/ast/Positioned.scala +++ b/compiler/src/dotty/tools/dotc/ast/Positioned.scala @@ -36,7 +36,7 @@ abstract class Positioned(implicit @constructorOnly src: SourceFile) extends Src ids.put(this, ownId) if ownId == debugId then println(s"Debug tree (id=$debugId) creation \n$this\n") - Reporter.displayPrompt(Console.in, new PrintWriter(Console.err, true)) + Thread.dumpStack() allocateId()