-
Notifications
You must be signed in to change notification settings - Fork 1.7k
type 'NodeList' is not a subtype of type 'List<Element>' of 'directChildren' when debugging in IntelliJ #24868
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
Are you running it in checked mode in any of the other cases? That message seems correct, in that NodeList is not a List < Element > , it implements List < Node > . And the return type of childNodes is List < Node > , so assigning it to List < Element > is not valid. |
As @MikeMitterer said this properly works on Dartium/VM unless used by IntelliJ 15. Not sure what IntelliJ's debugger is doing in this case. Eric? |
@clayberg can you comment on Ivan's question above? |
The error is occurring at run-time, not during analysis. |
Which version of Dartium/ IntelliJ are you using? Will go look at the flags that we are passing in (not sure of even a flag that exists that enables such behavior.)
|
Im using and Chromium Version 39.0.2171.0 |
@kasperl Not sure why you added the "area-analyzer" label to this issue. It appears to me to be an interaction between IntelliJ and Dartium, having nothing to do with the analyzer. I think we should either move it out of the 'sdk' issue tracker or create a new "area-IntelliJ" label for such issues. |
Please re-test with Dart 1.24.2 Stable (Dartium 50). |
This line: https://goo.gl/UjFEkY produces the above error message but only while debugging this module in IntelliJ 15

It works in all other cases - Chromium/Dartium VM + dar2js Version
The text was updated successfully, but these errors were encountered: