-
Notifications
You must be signed in to change notification settings - Fork 1.7k
confusing error: The argument type 'dart.core::String' can't be assigned to the parameter type 'dart.core::String'. #35715
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
I've seen errors like this a few different ways (though all at analysis time):
I don't know if any of those are related to this, but maybe it helps. The error could definitely be improved for some of those cases (eg. where the strings are identical, or even when they differ only by case). |
The import-case issue explains other classes, but not |
We are exploring a few ideas for how this situation could arise. |
We have a reproduction. More details will follow. |
As @peter-ahe-google said we reproduced this. Reproduction landing in CL (https://dart-review.googlesource.com/c/sdk/+/91228) soon. This method ( |
@aam let me know if you need to discuss this in detail. I think it may be a simple fix: Make sure that |
Thanka @peter-ahe-google . I will take a look. |
It seems that we need to ensure that saved last known good state includes platform libraries, which doesn't currently - when we rebuild incremental compiler we reload platform libraries so references from saved state don't match to what is loaded for new incremental compiler. @jensjoha @peter-ahe-google can you please take a look at concept https://dart-review.googlesource.com/c/sdk/+/91859 which basically adds list of platform libraries that incremental compiler can stash and use when reject has to rebuild compiler. |
is this issue resolved? |
No, this is work in progress as this tracks proper implementation of vm There are changes that @jensjoha implementing that will make fasta incremental compiler respect |
Should have been fixed by 2087d6d. |
Flutter users reporting bizarre errors from the compiler that confusingly appear and disappear (might be related to serialized incremental compiler state?)
I don't have a concrete reproduction for it - but I asked users that face it to send us their Dart source if possible.
I saw some reports that users resolved it by changing import scheme from relative to package-scheme imports
Any ideas what can be causing this @peter-ahe-google @kmillikin @jensjoha ? Maybe a bug in class hierarchy?
Maybe we could add some debugging information to CFE to dump more debugging information for this sort of error?
The text was updated successfully, but these errors were encountered: