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

Bump Scala version to 2.12.6 and fix provider macros #147

Merged
merged 1 commit into from
Jun 8, 2018

Conversation

shadaj
Copy link
Owner

@shadaj shadaj commented Jun 8, 2018

The previous provider macros, which grab the typeclass for the Props/State members of component objects at the wrapper constructor level. In Scala 2.12.4, there was a bug that allowed illegal qualifiers (scala/scala#6359), which allowed the macro implmementations to run without failures. But in 2.12.5, this was fixed and so all the provider macros began to fail with errors for not having a stable identifier. This PR fixes the macros by creating an intermediate variable annotated with @uncheckedStable, which lets us access the Props/State types even though we use an unstable path.

Fixes #142

The previous provider macros, which grab the typeclass for the Props/State members of component objects at the wrapper constructor level. In Scala 2.12.4, there was a bug that allowed illegal qualifiers (scala/scala#6359), which allowed the macro implmementations to run without failures. But in 2.12.5, this was fixed and so all the provider macros began to fail with errors for not having a stable identifier. This PR fixes the macros by creating an intermediate variable annotated with `@uncheckedStable`, which lets us access the Props/State types even though we use an unstable path.

Fixes #142
@shadaj shadaj added this to the v0.4.4 milestone Jun 8, 2018
@shadaj shadaj self-assigned this Jun 8, 2018
@shadaj shadaj merged commit a838d1a into master Jun 8, 2018
@shadaj shadaj deleted the bump-scala-and-fix-provider-macros branch June 8, 2018 04:55
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.

Reader/Writer provider macros fail in Scala versions > 2.12.4
1 participant