dart-archive/angular_analyzer_plugin

Enabling the plugin with angular 5.0.0 results it strange analyzer warnings

Closed this issue · 4 comments

I have a pubspec like this:

dependencies:
  angular: 5.0.0-alpha+8
  angular_components: 0.9.0-alpha+8


and i'm getting strange errors:

screen shot 2018-03-27 at 12 11 41 pm

screen shot 2018-03-27 at 12 11 03 pm

I think it has something to do with this plugin, when I disable the plugin the errors go away:

analyzer:
  strong-mode: true
#  plugins:
#    angular:
#      enabled: true

Please check if deleting ~/.dartServer/.analysis-driver/ fixes it

These are extremely strange errors, aren't they!

I'm wracking my brain for how changing the plugin settings could affect something like "dart:html can't have a port-of directive."

What version of dart are you running, and on which OS? And like @zoechi said, removing ~/.dartServer/.analysis-driver is a great thing to check as well.

removing ~/.dartServer/.analysis-driver fixed it for me

Great! Thanks for filing. We must have gotten an invalid cache somehow. I will see if we can find where that could have been introduced, and what we can do so that it doesn't become a quietly broken experience in detectable cases