-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
type 'ForElementImpl' is not a subtype of type 'Expression' #36930
Comments
Thank you for the report! This issue has been fixed in bleeding edge, and should be available the next time we publish a new dev or stable build. |
@bwilkerson I've been having this same issue yet my installation identifies as Dart 2.3 but the error report says 2.2.1-edge. And, this is all about 2.3 language features which are required for the inline This actually relates to a flutter tool issue. The flutter tools ship with a dart-sdk that is 2.2.1 even though the framework/engine is compiled to release with 2.3. So tooling is using 2.2.1 but compiled and released code will use 2.3. You can test this by checkout out v1.5.8 on channel dev. I have just run It seem's as though the packaged dart is always one version behind the framework version. Perhaps this bares looking into further.
These are all duplicates of other people having the same issue: https://github.com/dart-lang/sdk/issues?q=is%3Aissue+is%3Aopen+IfElementImpl and #36979 |
@munificent @jonahwilliams I'll ping you in on this as it relates to 2.3 and tooling. |
@aadilmaan For the version question. |
I think this is a weird artifact of how Flutter includes the Dart SDK. My understanding is that they pull in a commit of Dart from its bleeding edge master branch and then overwrite the version number based on the latest dev version's Git tag (which is not applied to the master branch). So you end up with a commit that claims to be a version that isn't quite what it actually is. @vsmenon and @leafpetersen might know more. |
Bob has properly articulated the issue. We are working to address this gap, stay tuned. |
fwiw, the version of Dart downloaded by the Flutter tool is cut at the exact same hash as the version of Dart that's compiled into the engine. The fact that they report different product version numbers is a bug that we're working to fix, as Bob and Aadil say. |
Analyzer Feedback from IntelliJ
Version information
IDEA AI-183.5429.30.34.5452501
2.2.1-edge.c46deebfb63c5855dc4a1674ad885bd652590914
AI-183.5429.30.34.5452501, JRE 1.8.0_152-release-1343-b01x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.14.4, screens 1680x1050 Retina
Exception
For additional log information, please append the contents of
file:///private/var/folders/b1/1g5tqs7557lgqt_m_ct9x3yr0000gn/T/report.txt.
The text was updated successfully, but these errors were encountered: