intellij-lsp icon indicating copy to clipboard operation
intellij-lsp copied to clipboard

vue-language-server support

Open monsdroid opened this issue 6 years ago • 0 comments

Hi,

i try to include https://github.com/vuejs/vetur/tree/master/server i did npm install vue-language-server -g

added a "raw" plugin config vue -> /path/to/vls.cmd

StackTrace:

java.lang.Throwable: No workspace path found. Vetur initialization failed
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:134)
	at com.github.gtache.lsp.client.LanguageClientImpl.logMessage(LanguageClientImpl.scala:99)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
...

Solution: Add Raw Command with /path/to/vls. rootPath:'file:///C:/Path/to/Workspace/'

Newer Implementations use rootUri (deprecated as well) or workspaceFolders https://github.com/Microsoft/vscode-languageserver-node/blob/73180893cae36ef34d3b188b8293fefc1c2bc6f9/protocol/src/protocol.ts#L817

Now its Green but it doesnt seem to work

Edit: After a Restart i needed to remove the rootPath option to make it work. 😕

monsdroid avatar Nov 30 '18 13:11 monsdroid