scastie icon indicating copy to clipboard operation
scastie copied to clipboard

Fewer braces are not fully supported by worksheet

Open rochala opened this issue 1 year ago • 0 comments

Describe the bug

There are cases in which fewer braces fail in worksheet mode.

Scastie snippet link

No response

To Reproduce

List(1,2,3).map:
  case x => x

Expected behavior

It should properly instrument and show computed value: List(1,2,3)

This issue is caused by custom implementation of worksheet support which was written before fewer braces. As there is ongoing initiative to have shared implementation for worksheets for Scala, it is not worth duplicating the effort only to migrate in the near future.

The possible fix require changes in multiple part of application and new logic to take into account newly added lines leading to shifted error messages etc.

Screenshot ( Optional )

No response

Version

Scastie website

What browsers are you seeing the problem on?

No response

Relevant log output

No response

rochala avatar Aug 21 '23 11:08 rochala