springeye / vue-for-idea

This is vue plugin for idea
https://plugins.jetbrains.com/plugin/9188
BSD 3-Clause "New" or "Revised" License
321 stars 45 forks source link

v-if is not allowed here? #34

Open amcsi opened 8 years ago

amcsi commented 8 years ago

I get "Attribute v-if is not allowed here" is I use v-if on any element. It seems like PHPStorm knows quite a few v-* attributes, but not v-if. Neither does it recognize v-else, and there are several other things missing too like v-bind and v-on, although for those last two I'd use the shorthand versions instead anyway.

eugenefvdm commented 7 years ago

Is vue-for-idea still current for Vue 2.x? Reason is I get lots of red errors in the sidebar, e.g.

Namespace 'v-on' is not bound less... (Ctrl+F1) This inspection checks for unbound namespace prefixes in XML

Some tips on how to troubleshoot?

piotros commented 7 years ago

@eugenevdm I'm afraid that we have to be patient and wait until end of March for official Vue support in Webstorm.

lipsumar commented 7 years ago

You can turn off XML inspections in Settings > Editor > Inspections > uncheck "Unbound XML namespace prefix"

capture d ecran 2017-09-08 16 10 43
acidjazz commented 6 years ago

@piotros its' april now, is this possibly fixable?