dart-archive / angular_analyzer_plugin

WORK MOVED TO dart-lang/angular repository
https://github.com/dart-lang/angular/tree/master/angular_analyzer_plugin
68 stars 13 forks source link

Attribute Not allowed here #604

Closed e-belair closed 6 years ago

e-belair commented 6 years ago

Hi,

In HTML templates, I don't have Dart/Angular support : selection_041 How I can resolve this issue?

MichaelRFairhurst commented 6 years ago

This is an intelliJ hint and we're looking at suppressing these automatically when the plugin is enabled.

You can disable it in your project by doing the following: settings -> editor -> inspections -> find HTML, uncheck all "unknown" html inspections.

Do you want to give that a try and see if that is indeed the issue?

e-belair commented 6 years ago

Obviously, disabling inspection makes messages disappear. But autocompletion does not work either. (i am following the dart-angular tutorial Tour of heroes)

analysis_options.yaml:

analyzer:
  exclude: [build/**]
  errors:
    uri_has_not_been_generated: ignore
  plugins:
    - angular

Angular 5.0.0 Dart2 WebStorm 2018.2.1 Build #WS-182.3911.37, built on August 7, 2018 JRE: 1.8.0_152-release-1248-b8 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 4.15.0-30-generic (xubuntu 18.04)

MichaelRFairhurst commented 6 years ago

Thanks!

I've done a less than stellar job tracking the Dart 2 migration, unfortunately. I think the reason why autocomplete isn't working is the same as #602, which I think is fixed by #605.

I see now your comment "I don't have Dart/Angular support." I had originally missed that, and thought it was only the issue with "attribute not allowed here."

I'll be doing a lot of testing with it even after I publish the fix to #602 because I am a bit concerned with what else might be lurking.

Thanks for reporting!

MichaelRFairhurst commented 6 years ago

I believe the fix is published. If you want to give it a try with the fix (there are potentially still other issues that I will discover next week as I test more, though) then the next dev version of the SDK will auto-update you, in the meantime you can clear ~/.dartServer/.plugin-manager.

MichaelRFairhurst commented 6 years ago

I don't think all the kinks are worked out yet. If you are considering testing, I recommend waiting a bit!

I'm also going to mark this a duplicate of #602 because I think you're both experiencing the same issue. I'll report back when I'm confident its all solved!