Closed clay-coffman closed 2 years ago
get this error as soon as I attempt to close a tag
Can you give the steps for this? I tested with coc-html to close tags, can't reproduce this.
I am also having this issue. If I write any html tag (div, p, span, etc) once I add the closing angled bracket '>' this error shows. Keys to cause this error: <div>
This is my Coc Config inside init.nvim
And the coc.settings.json
I reinstalled coc-html with :CocInstall coc-html, that worked for me. It seems like the installation was either outdated, corrupted, or not installed in the first place. Hope this helps!
@SlysDev unfortunately this did not fix the issue for me. Same thing still occurs.
@SlysDev unfortunately this did not fix the issue for me. Same thing still occurs.
Did you try reinstalling coc.nvim entirely? Or running :CocFix?
I did, still same issue.
This problem occurs when html.autoClosingTags
is set to true
.
The reason is probably that html/tag
is no longer present in the latest version (v4.2 later?) of vscode-html-languageservice
or html-language-features
.
It looks like we need to implement autoInsertion.ts
in coc-html
instead. https://github.com/microsoft/vscode/blob/main/extensions/html-language-features/client/src/autoInsertion.ts
At the moment, set html.autoClosingTags
to false
.
{
"html.autoClosingTags": false,
}
Fixed, unfortunately tag closing like <span>|
won't work any more, should be server issue.
Fixed javascript validation and tag closing not work 51dadf2
Hey guys, sorry if this is a dumb question but I can't for the life of me figure out what is causing me to get this error. I get this error as soon as I attempt to close a tag. Here is my :CocInfo output