-
Notifications
You must be signed in to change notification settings - Fork 27
no analysis issues from dev-compiler, but lots of strong mode issues at runtime #411
Comments
I'm not sure if the resolution is just to fix all the issues in the |
yeah we have a couple of related issues, we need to fix the SDK (#103) and for those "ignoring cast fail" messages we need to implement generic methods in DDC (#301)
that's an interesting idea, maybe we can fix it partially instead of going all the way. I think @leafpetersen got pretty close though to fixing. He's out for a few weeks but maybe we can do something in the meantime. |
I believe this is the issue I'm hitting now. I've spent the last day or so moving projects to strong mode, adding generic method parameters and getting rid of analyser warnings. But when I go to run the unit tests pretty much everything blows up now like
Looking at the classes referenced here I believe the analyser is correct and the problem is at runtime.
|
@Andersmholmgren I think you're hitting this bug: dart-lang/sdk#25530 Can you clarify what you mean by runtime? Are you running tests with DDC? |
I'm running |
Yes the sdk issue sounds the same. Only thing is that it doesn't show up in the dart analyser tab of IntelliJ. Only when I run the tests |
"malbounded type" is an error coming from the Dart VM most likely (edit: for clarity. The term is in the spec, VM and dart2js issue the error. Analyzer doesn't use the same terminology, but has the same concept). I suspect you'll get the same error without strong mode. (Dart VM doesn't do anything different for strong mode, so "pub run test" would be unaffected.) |
Closing this as basically stale. This covers a bunch of related issues that have either been fixed (core libraries strong mode clean) or have other bugs assigned to them (fix runtime cast ignores). |
When I run analyze my app with strong mode (via the
dev_compiler
binary), I don't see any issues. This checks the app and the transitive set of packages. I do see plenty of issues at runtime however - things like:These are from the
dart:
libraries I believe. When I rundev_compiler -s
(to include the dart: libs in the analysis) I see ~800 strong mode issues.The text was updated successfully, but these errors were encountered: