Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scastie format button destroys whitespace sensitive Scala 3 code #1112

Open
epic-64 opened this issue Jan 18, 2025 · 0 comments
Open

Scastie format button destroys whitespace sensitive Scala 3 code #1112

epic-64 opened this issue Jan 18, 2025 · 0 comments

Comments

@epic-64
Copy link

epic-64 commented Jan 18, 2025

Describe the bug

When clicking "Format" with the given Scala 3 code, lines are indented too far to the left and cause new compiler errors

Scastie snippet link

https://scastie.scala-lang.org/lrv0rUTHReiWtYQvZEOvww

To Reproduce

  1. visit the snippet link
  2. click Run -> program runs fine
  3. click Format
  4. click Run -> receive a lot of compiler errors

Expected behavior

The format button does not cause new compilation errors

Screenshot ( Optional )

Image

Image

Image

Version

Scastie website

What browsers are you seeing the problem on?

Chrome

Relevant log output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant