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
The problem is caused by class MdocApp wrapper. Changing it to object MdocApp fixes the issue but causes other issues (with thread deadlocks), full track of this problem in kept in scala-cli repository: VirtusLab/scala-cli#2247.
A proper fix should divide the code so classes/objects etc. are put in an object and rest is put inside of a class. Preferably the solution should be done in such a way it can be shared between mdoc and scala-cli (e.g. the compiler repl).
The text was updated successfully, but these errors were encountered:
kasiaMarek
changed the title
Valid scala code in worksheets causes infinite evaluation/evaluation to fail with an error due to worksheet class wrapper
Class wrapper causes infinite evaluation/evaluation to fail
Mar 26, 2024
For the following code evaluation gets stuck in a loop for Scala 2 and throws
StackOverflowException
for Scala 3.Upstream issue: scalameta/metals#4796
The problem is caused by
class MdocApp
wrapper. Changing it toobject MdocApp
fixes the issue but causes other issues (with thread deadlocks), full track of this problem in kept inscala-cli
repository: VirtusLab/scala-cli#2247.A proper fix should divide the code so
class
es/object
s etc. are put in an object and rest is put inside of a class. Preferably the solution should be done in such a way it can be shared betweenmdoc
andscala-cli
(e.g. the compiler repl).The text was updated successfully, but these errors were encountered: