Skip to content

Commit 14c1b3e

Browse files
committed
Ever more info for Heisenbug
Keeping fingers crossed it stays reproducible...
1 parent b1f42a6 commit 14c1b3e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/dotty/tools/dotc/core/Denotations.scala

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,16 @@ object Denotations {
216216
println(s"*** missing method: ${name.toString} in $this")
217217
info.decls.checkConsistent()
218218
println(i"decls = ${info.decls}")
219-
if (slowSearch(name.toTermName).exists)
219+
if (slowSearch(name.toTermName).exists) {
220220
System.err.println(i"**** slow search found: ${slowSearch(name.toTermName)}")
221+
System.err.println("scope entries found:")
222+
var e = info.decls.lastEntry
223+
while (e != null) {
224+
println(e.name)
225+
e = e.prev
226+
}
227+
System.err.println("no more entries found")
228+
}
221229
throw new TypeError(s"Missing method: $this . $name")
222230
}
223231
}

0 commit comments

Comments
 (0)