WebStorm highlighting all tags as custom
I'm not sure if this is just normal but every single html tag in every html file I open shows as unknown. This makes it impossible to eliminate or see actual errors because there is just a sea of yellow on the scrollbar and every time I go to edit any html tag I get a pop-up saying "Unknown html tag [any tag] " which is a pain.
I'm not interested in removing inspections of custom tags as a whole because I might actually make a mistake and then I won't even be able to see it. Is this normal or am I missing something obvious. Tags like html, body and div seem pretty standard to me, I don't get why they are unknown.
HTML library for JavaScript is enabled if that means anything. And HTML 5 is selected as the default HTML language level.
Thanks in Advance
Please sign in to leave a comment.
What file type is *.html pattern associated with in Settings | Editor | File Types? Please attach a screenshot of your file so that I can see the file icon, plus a screenshot of Settings | Editor | Language Injections pane
I think I've added what you asked :)
Please also attach a screenshot of your file (including file icon). Also, try renaming a file to different name - what is the result?
New files, renamed files and completely different website files all have the same problem
strange indeed. Can you recreate the issue in a new project? Also, can you provide your settings (File | Export settings), .html file that shows up the issue plus your idea.log (https://intellij-support.jetbrains.com/hc/en-us/articles/207241085-Locating-IDE-log-files)?
You can upload all this stuff to some file server and provide a link
https://expirebox.com/download/8b9b1498f8847d812f48189a256735aa.html - log
https://expirebox.com/download/69de60f4cfb9ed8d8a9bcfc783ff43f5.html - settings
Both links show that files were expired or deleted:(
works in different browser
idea.log is not complete unfortunately, but I can see tons of exceptions related to schemas parsing... Looks as if the installation is somehow broken. What WebStorm version do you use? Did you try re-installing from scratch?
I have tried installing the new version from scratch
https://expirebox.com/download/b6c0c424121b7553734d8882d02eab69.html -- settings
https://expirebox.com/download/69de60f4cfb9ed8d8a9bcfc783ff43f5.html -- log
they should work
that log is the whole logs file in a zip
Thanks for the help, I've decided to do a fresh install of every Jet Brains piece of software instead of just WebStorm. I have all of them installed so I thought they might have been screwing with each other. It worked and now it all shows everything correctly. Bummed we never got to the actual problem but I guess the problem was a [very] broken install like you said. :)
Great, thanks for update!
The React-Templates plugin can cause this bug. Disabling it fixed the problem for me.
I ran into something similar with templates marking divs and spans as invalid or unknown elements. Disabling the NativeScript plugin seems to have fixed it.
I run into the same issue, I can confirm that after disabling NativeScript plugin and restarting the IDE, the issue gone. Thanks Michael Prentice for sporting it!