Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

lsp fails in the style section with "Cannot read property 'showExpandedAbbreviation' of undefined" #5

Closed
x-ji opened this issue Oct 8, 2019 · 6 comments

Comments

@x-ji
Copy link

x-ji commented Oct 8, 2019

lsp works fine in the script and template sections, but in the style section, I see the error message:

LSP :: Request textDocument/completion failed with message: Cannot read property 'showExpandedAbbreviation' of undefined

I also ran npm install -g vscode-css-languageserver-bin but it didn't seem to work.

I Googled around a bit and this seems to be related to Emmet?

@x-ji x-ji changed the title lsp fails in the style section lsp fails in the style section with Cannot read property 'showExpandedAbbreviation' of undefined Oct 8, 2019
@x-ji x-ji changed the title lsp fails in the style section with Cannot read property 'showExpandedAbbreviation' of undefined lsp fails in the style section with "Cannot read property 'showExpandedAbbreviation' of undefined" Oct 8, 2019
@thanhvg
Copy link
Owner

thanhvg commented Oct 8, 2019

Oh yeah I saw it too, let me go ask the lsp guys.

@thanhvg
Copy link
Owner

thanhvg commented Oct 10, 2019

It seems to be an upstream issue with lsp-vetur.el. We are encouraged to fix it if we can.

@thanhvg
Copy link
Owner

thanhvg commented Oct 11, 2019

emacs-lsp/lsp-mode#1088

@thanhvg
Copy link
Owner

thanhvg commented Oct 11, 2019

@x-ji It should be fixed with the latest lsp-mode can you confirm it.

Btw what killer features does lsp mode have over dumb mode?

@x-ji
Copy link
Author

x-ji commented Oct 14, 2019

Thanks. It worked :)

@x-ji x-ji closed this as completed Oct 14, 2019
@x-ji
Copy link
Author

x-ji commented Oct 14, 2019

Guess I was just used to vetur in VSCode and want to keep using it in Emacs. I haven't really tried out dumb mode. Maybe it would also suffice for my needs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants