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

Make dbConfig lazy to fix Scala 3 error #757

Merged
merged 1 commit into from
Jul 15, 2023

Conversation

mkurz
Copy link
Member

@mkurz mkurz commented Jul 15, 2023

However since in Scala 2 "lazy values may not be abstract" we need to make it non-abstract with ???. Not the nicest thing to do, but ok...

The reason why I want to get rid of -source:3.0-migration is because https://github.com/playframework/omnidoc tries to generate scaladocs from play-slick and to do that for Scala 3 we need to actually compile the sources. Now when adding -source:3.0-migration in omnidoc a lot of other compiler errors occur from other classes (that are not part of play-slick)

@mkurz
Copy link
Member Author

mkurz commented Jul 15, 2023

btw, the making this field lazy was added in #416

However since in Scala 2 "lazy values may not be abstract" we need to
make it non-abstract with ???. Not the nicest thing to do, but ok...
@mkurz mkurz merged commit b9b843d into playframework:main Jul 15, 2023
@mkurz mkurz deleted the dbConfig_lazy branch July 15, 2023 23:06
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

Successfully merging this pull request may close these issues.

1 participant