-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dart migrate exception: A decorated type for the bound of T should have been stored by the NodeBuilder #45470
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
Comments
@kluverua thanks for the bug report! Were you able to make progress by rerunning migration with |
Doh, forgot to mention that. Yes, it is over.
And i get error: Btw, here is UpdateApprovalsFromCache class in its entirety: |
Now I think the error is not related to dart migration. |
Here is fix:
|
Hi @kluverua, thanks for all the information. I'm glad you were able to make progress with your migratoin! Unfortunately I haven't managed to reproduce the failure from the information you provided. Do you think you understand what happened well enough that you could write a short isolated program that demonstrates it? (In other words, a short program that doesn't depend on any of your code but still fails to migrate in the same way. The program wouldn't have to do anything useful other than provoke the bug). If you could manage to do that, I would be happy to try to debug further. |
Ok, if you really want it :)
p.s. you can even delete type RepositoryItemsImported and get same error |
@kluverua awesome, thank you! That reproduces the bug for me :) |
As of 1c7fe71, the null safety migration tool has been removed from active development and retired. No further work on the tool is planned. If you still need help, or you believe this issue has been closed in error, please feel free to reopen. |
Uh oh!
There was an error while loading. Please reload this page.
Dart SDK version: 2.12.2 (stable) (Wed Mar 17 10:30:20 2021 +0100) on "windows_x64"
Got this error while migrating my project using the dart migrate utility:
My class: approvals_bloc.dart
I think the error is in this method:
A long time ago there was another error in this method:
The argument type 'List<ApprovalModel>' can't be assigned to the parameter type 'List<ApprovalModel>'.
I solve it with workaround:
Here is UpdateApprovalsFromCache class:
The text was updated successfully, but these errors were encountered: