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

Scalafix is not able to parse Scala 3 nightly version #2112

Open
WojciechMazur opened this issue Oct 27, 2024 · 4 comments
Open

Scalafix is not able to parse Scala 3 nightly version #2112

WojciechMazur opened this issue Oct 27, 2024 · 4 comments

Comments

@WojciechMazur
Copy link

scalafix fails to parse nightly version of Scala3 which differs from nightly version of Scala 3
Example of version 3.6.0-RC1-bin-20241008-3408ed7-NIGHTLY

Issue found by Scala 3 Open Community Build in 3 projects using automatic application of scalafix on compile:

@bjaglin
Copy link
Collaborator

bjaglin commented Nov 4, 2024

Thanks for the report. We need a quickfix like #2109. I'll have some time this week end hopefully.

@geminicaprograms
Copy link

geminicaprograms commented Dec 11, 2024

Hello, any news on that front? Scala 3.6.2 is out and 0.13.0 can't parse it either e.g. it fails on new multiple bounds syntax (the have to be enclosed with {}) with:

[error] .../Foo.scala:151:34: error: illegal start of declaration
[error]   private def bar[F[_]: { MonadThrow, Concurrent }](
[error]                                  ^^^^^^^^^^

@WojciechMazur
Copy link
Author

Hello, any news on that front? Scala 3.6.2 is out and 0.13.0 can't parse it either e.g. it fails on new multiple bounds syntax (the have to be enclosed with {}) with:

[error] .../Foo.scala:151:34: error: illegal start of declaration
[error]   private def bar[F[_]: { MonadThrow, Concurrent }](
[error]                                  ^^^^^^^^^^

It's not related to this issue, you might be intrested in scalameta/scalameta#4068 that introduced new givens syntax to scalameta parser used by scalafix.

This issue was about not being able to version strings used by Scala 3 nightlies, not the Scala 3 syntax

@lenguyenthanh
Copy link

lenguyenthanh commented Dec 11, 2024

Hello, any news on that front? Scala 3.6.2 is out and 0.13.0 can't parse it either e.g. it fails on new multiple bounds syntax (the have to be enclosed with {}) with:

[error] .../Foo.scala:151:34: error: illegal start of declaration
[error]   private def bar[F[_]: { MonadThrow, Concurrent }](
[error]                                  ^^^^^^^^^^

I created a new issue for parsing scala 3.6.2 given syntax, feel free to post your example here as well: #2138

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

4 participants