-
Notifications
You must be signed in to change notification settings - Fork 58
FED-4304 Fix stable ci, make generated accessor mixins true mixins #992
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
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Example of error:
example/boilerplate_versions/dart2_only/basic_component2.over_react.g.dart:120:44: Error: The class '_$BasicPropsAccessorsMixin' can't be used as a mixin because it isn't a mixin class nor a mixin.
class BasicProps extends _$BasicProps with _$BasicPropsAccessorsMixin {
^
For some reason, this is coming up in master CI in Dart 3, even though
we have a pubspec.yaml language version of 2.19.
This Seems like a build package bug, which I plan on reporting.
Since we'll need to fix this issue anyway, fix it now as a workaround.
kealjones-wk
approved these changes
Dec 8, 2025
Contributor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
|
Edit: ooops, typo on that tag; please ignore, sorry! 😅 |
Contributor
Author
|
@Workiva/release-management-p |
rmconsole-wf
approved these changes
Dec 8, 2025
rmconsole-wf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 from RM
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
CI is currently failing on stable Dart (example build), with errors that look like this:
This appears to be caused by dart-lang/build#4302, where newer versions of build_web_compilers incorrectly compile files with the a never language version than what's specified in over_react's pubspec.yaml.
In this case, the error seems to stem from generated code mixing in
classdeclarations, which is no longer allowed as of Dart language version 3.0.For example, from the above error:
...
It's failing because
_$BasicPropsAccessorsMixinis declared as aclassand not amixin. Note that this is only an issue for generated code for legacy boilerplate.Changes
While we could work around this issue by restricting newer build_web_compilers, this uncovered that this case of generated code doesn't work in Dart language versions 3.0 and higher. That was easy to fix, so I just updated the generation to work.
abstract classtomixin: 26e6c63Release Notes
Review
See CONTRIBUTING.md for more details on review types (+1 / QA +1 / +10) and code review process.
Please review:
QA Checklist
Verify that generated files are up-to-datecheck runs on all Dart SDKs in the matrix and passesMerge Checklist
While we perform many automated checks before auto-merging, some manual checks are needed: