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

Cannot create Mapper for other created files #24

Closed
smotastic opened this issue Jul 25, 2021 · 1 comment
Closed

Cannot create Mapper for other created files #24

smotastic opened this issue Jul 25, 2021 · 1 comment

Comments

@smotastic
Copy link
Owner

If a Mapper needs to be created for a Class which is also generated by source_gen, the mapper generator will throw an error that the source / target class is not a ClassElement.

The problem is, that my generator might, or might not run before the generator which will create the dependend class.

So the smartstruct_generator should always run after all class files which are potentially needed, are created.

See https://pub.dev/packages/build_config#adjusting-builder-ordering

smotastic added a commit that referenced this issue Jul 25, 2021
@smotastic
Copy link
Owner Author

See #25

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

1 participant