Vetur: Emmet tab autocomplete not working in vue files

Created on 14 May 2018  Â·  22Comments  Â·  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: mac
  • Vetur version: 0.11.8
  • VS Code version: 1.23.1

Problem



Emmet not working in .vue files, but it works in .html files. It's strange to me because it works in .vue files before, let's say 10 days ago. It seems that the upgrade of vscode makes something wrong. I did not change any settings.
vetur

My vscode settings:
screen shot 2018-05-14 at 22 49 02

Reproducible Case

Most helpful comment

it works for me when i add

"vue": "html"

to

  "emmet.includeLanguages": {
    "edge": "html",
    "vue-html": "html",
    "vue": "html"
  },

but this adds it to the whole file also in script and other sections

All 22 comments

it works for me when i add

"vue": "html"

to

  "emmet.includeLanguages": {
    "edge": "html",
    "vue-html": "html",
    "vue": "html"
  },

but this adds it to the whole file also in script and other sections

Same thing on a Windows 10 x64 machine. The last update of Vetur must have something to do with Emmet. Personally, I don't think the VS Code update broke it.

Apart from that, the extension is great! Thumbs up! :)

javascript intellisense and css autocomplete doesn't work either anymore :(

got the same problem

same problem today , it just suddenly failed with tab(emmet)
macbook pro

@cannap
it can fix the emmet in html with tab , but still not work in css, the tips in css has dispeared

I get this from my output, hope it helps.

vetur initialized
events.js:163
      throw er; // Unhandled 'error' event
      ^

Error: UNKNOWN: unknown error, stat 'f:\vscode\doodle\20180313\vue-router\node_modules\.bin\acorn'
[Info  - 11:41:43] Connection to server got closed. Server will restart.

@cannap when I update vetur to the latest version, I have the same problem that the css-tips has dispeared

@nereuseng Can you try uninstall / reinstall? Your problem is probably different, when VS Code fail to install Vetur successfully. See https://github.com/vuejs/vetur/blob/master/docs/FAQ.md#no-syntax-highlighting--no-language-features-working

Thanks a lot, last method 'install from vsix' solved my problem.

Edited: It worked when I installed previous version from the link you provided. Once I updated to newest version, it broke again.

Intended to publish as 0.11.9 but had a glitch and published an incomplete version to 0.12.0 by mistake...Anyway this should be fixed now in 0.12.1.
Let me know if you still see the issue on 0.12.1.

@octref Thanks for the quick fix! It works now, good job!

Updating to 0.12.1 today, the problem still exist. Fallback to 0.11.7, It works again. Please tell me what can I do to help you.

ezgif-2-03a6b8712c

@nereuseng Can you make it larger? Also seems you have Vetur E extension which would mess up Vetur.

@octref I have the same problem,but without Vetur E extension,haven't found which process cause it

@nereuseng @vonweb What's your OS? Also any output on Output -> Vue Language Server or Help -> Toggle Developer Tools?

@octref I'm using win10 17134.48
output from "Vue Language Server":
tim 20180517174117
from Developer Tools:
tim 20180517174008

Works in 0.12.3. Vue Language Server logs vetur initialized only.

image

OS: Windows 10, 1803, 17134.48

@vonweb Upgrade to 0.12.3.

@octref Thank you for your great work, it works

2 steps - 1 minute

hh so much "not working" long solutions on the web/Github :(

1/2. install Vetur (file => preferences => extentions => search vetur => install)
image

2/2. Update setting.json (fie => preferences => Extensions => JSON tab => "Edit in setting.json")

image

image

{
    "emmet.includeLanguages": {
        "vue": "html",
        "vue-html": "html"
    }
}

save ==> Done:

image

"emmet.includeLanguages": {
"edge": "html",
"vue-html": "html",
"vue": "html"
}
Works for me to! Thx so much!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thibautguedou3 picture thibautguedou3  Â·  3Comments

octref picture octref  Â·  3Comments

tczhangzhi picture tczhangzhi  Â·  3Comments

gabrielboliveira picture gabrielboliveira  Â·  3Comments

yoyoys picture yoyoys  Â·  3Comments