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

Code formatter fails when an underscore is used in a big number #79

Open
bulent2k2 opened this issue Aug 6, 2022 · 1 comment
Open

Comments

@bulent2k2
Copy link
Contributor

Here is a sample:

clearOutput
val big= 200_000_000
println(big / 100_000.0)

This code compiles and runs. However, when we run "Format Source" command, we get an error:
Unable to format: Invalid literal number: _
and the formatter fails to format the code.

@litan
Copy link
Owner

litan commented Aug 7, 2022

We depend on Scalariform for this, which does not explicitly support Scala 2.13 (where the use of underscores in numeric literals was introduced).

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

No branches or pull requests

2 participants