Scala 2 team issues. Not for user-facing bugs or directly actionable user-facing improvements. For build/test/infra and for longer-term planning and idea tracking. Our bug tracker is at https://github.com/scala/bug/issues
Apache License 2.0
130
stars
15
forks
source link
Improve support for cyclic symbol initialization issues #346
@retronym proposed an idea to improve support for cyclic errors. https://github.com/scala/scala/pull/5724 introduced a stack of completing symbols that are used to report on the culprit of the stub error. However, this stack can also be useful to report on other errors caused by cyclic symbol initialization issues.
The idea would be to add source file-based type completers in the stack so that we can use the stack entries to show how the initialization issue was triggered.
It seems that there's already some infrastructure similar to the one proposed used for the experimental option -Yrecursion.
@retronym proposed an idea to improve support for cyclic errors. https://github.com/scala/scala/pull/5724 introduced a stack of completing symbols that are used to report on the culprit of the stub error. However, this stack can also be useful to report on other errors caused by cyclic symbol initialization issues.
The idea would be to add source file-based type completers in the stack so that we can use the stack entries to show how the initialization issue was triggered.
It seems that there's already some infrastructure similar to the one proposed used for the experimental option
-Yrecursion
.