scala / scala-dev

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

Open jvican opened 7 years ago

jvican commented 7 years ago

@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.

dwijnand commented 3 years ago

This is the comment: https://github.com/scala/scala/pull/5724#discussion_r105047719

@retronym is this likely to progress? Feels like maybe we should just close it.