Closed Karmenzind closed 4 years ago
Thanks for the report, but this is once again a VLS bug. Please report it at https://github.com/vuejs/vetur/issues/
So the server does initialize, but it then blows up as soon as ycmd sends a didOpen
notification.
Thanks a lot.
As a workaround, take a look at this: https://github.com/vuejs/vetur/pull/745/files
You can use .ycm_extra_conf.py
and return something that will satisfy the entire VLSConfig
:
def Settings(**kwargs):
return { 'ls': { <place config here> } }
Yes, this is a major PITA, but it's definitely not ycmd's fault.
Thanks and sorry for the late.
I installed the newest vls (0.0.65) and put these lines into .ycm_extra_conf.py
.
def Settings(**kwargs):
return {
"ls": {
"vetur": {
"validation": {
"template": True,
"style": True,
"script": True
},
"completion": {
"autoImport": False,
"useScaffoldSnippets": False
},
"format": {
"defaultFormatter": {
"js": "prettier",
"ts": "prettier"
},
"defaultFormatterOptions": {},
"scriptInitialIndent": False,
"styleInitialIndent": False
}
},
"css": {},
"html": {
"suggest": {}
},
"javascript": {
"format": {}
},
"typescript": {
"format": {}
},
"emmet": {},
"stylusSupremacy": {}
}
}
And ycmd stopped complaining about undefined property. The completer and goto both work, though the completion is a bit slow (I think it's caused by vls).
With that extra conf, completions don't work at all for me. I'm hitting https://github.com/vuejs/vetur/issues/1478. You'll have to check the ycmd log, with let g:ycm_log_level='debug'
, hopefully the timestamps will tell you who to blame for the sluggishness.
Thanks. What's the version of your vue-language-server?
Without that extra conf, completions still work here. But there will be lines like cannot read property 'tabSize' of undefined
in ycmd's stderr log.
Here is the log.
There are still warnings about undefined tabSize
, I think giving a value of tabSize
in Settings
may fix it.
2019-10-29 17:16:16,136 - DEBUG - Global extra conf not loaded or no function YcmCorePreload
2019-10-29 17:16:16,191 - INFO - Received ready request
2019-10-29 17:16:16,477 - INFO - Received event notification
2019-10-29 17:16:16,478 - DEBUG - Event name: BufferVisit
2019-10-29 17:16:16,614 - INFO - Received event notification
2019-10-29 17:16:16,614 - DEBUG - Event name: FileReadyToParse
2019-10-29 17:16:16,614 - INFO - Adding buffer identifiers for file: /tmp/x.vue
2019-10-29 17:16:16,621 - INFO - Starting vueCompleter: ['/usr/local/bin/vls']
2019-10-29 17:16:16,624 - INFO - vueCompleter started
2019-10-29 17:16:16,624 - DEBUG - TX: Sending message: b'Content-Length: 689\r\n\r\n{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"textDocument":{"completion":{"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]}}}},"initializationOptions":{"css":{},"emmet":{},"html":{"suggest":{}},"javascript":{"format":{}},"stylusSupremacy":{},"typescript":{"format":{}},"vetur":{"completion":{"autoImport":false,"useScaffoldSnippets":false},"format":{"defaultFormatter":{"js":"prettier","ts":"prettier"},"defaultFormatterOptions":{},"scriptInitialIndent":false,"styleInitialIndent":false},"validation":{"script":true,"style":true,"template":true}}},"processId":29110,"rootPath":"/tmp","rootUri":"file:///tmp"}}'
2019-10-29 17:16:16,717 - INFO - Received filetype completion available request
2019-10-29 17:16:17,110 - INFO - Received completion request
2019-10-29 17:16:17,110 - DEBUG - Using filetype completion: False
2019-10-29 17:16:17,302 - INFO - Received completion request
2019-10-29 17:16:17,302 - DEBUG - Using filetype completion: False
2019-10-29 17:16:17,518 - INFO - Received completion request
2019-10-29 17:16:17,518 - DEBUG - Using filetype completion: False
2019-10-29 17:16:17,520 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"Loaded bundled typescript@3.6.4."}}'
2019-10-29 17:16:17,657 - INFO - Received completion request
2019-10-29 17:16:17,657 - DEBUG - Using filetype completion: False
2019-10-29 17:16:17,749 - INFO - Received completion request
2019-10-29 17:16:17,749 - DEBUG - Using filetype completion: False
2019-10-29 17:16:17,855 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"window/logMessage","params":{"type":4,"message":"Vetur initialized"}}'
2019-10-29 17:16:17,855 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":1,"result":{"capabilities":{"textDocumentSync":1,"completionProvider":{"resolveProvider":true,"triggerCharacters":[".",":","<","\\"","\'","/","@","*"]},"signatureHelpProvider":{"triggerCharacters":["("]},"documentFormattingProvider":false,"hoverProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentSymbolProvider":true,"definitionProvider":true,"referencesProvider":true,"codeActionProvider":true,"colorProvider":true}}}'
2019-10-29 17:16:17,855 - INFO - Language server requires sync type of Full
2019-10-29 17:16:17,855 - DEBUG - vue: Server declares trigger characters: ['.', ':', '<', '"', "'", '/', '@', '*']
2019-10-29 17:16:17,855 - INFO - vue: Using trigger characters for semantic triggers: .,:,<,",',/,@,*
2019-10-29 17:16:17,856 - DEBUG - TX: Sending notification: b'Content-Length: 52\r\n\r\n{"jsonrpc":"2.0","method":"initialized","params":{}}'
2019-10-29 17:16:17,856 - DEBUG - TX: Sending notification: b'Content-Length: 480\r\n\r\n{"jsonrpc":"2.0","method":"workspace/didChangeConfiguration","params":{"settings":{"css":{},"emmet":{},"html":{"suggest":{}},"javascript":{"format":{}},"stylusSupremacy":{},"typescript":{"format":{}},"vetur":{"completion":{"autoImport":false,"useScaffoldSnippets":false},"format":{"defaultFormatter":{"js":"prettier","ts":"prettier"},"defaultFormatterOptions":{},"scriptInitialIndent":false,"styleInitialIndent":false},"validation":{"script":true,"style":true,"template":true}}}}}'
2019-10-29 17:16:17,857 - INFO - Received completion request
2019-10-29 17:16:17,857 - DEBUG - Refreshing file /tmp/x.vue: State is Open/action Open
2019-10-29 17:16:17,857 - DEBUG - TX: Sending notification: b'Content-Length: 146\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"vue","text":"\\n","uri":"file:///tmp/x.vue","version":1}}}'
2019-10-29 17:16:17,857 - DEBUG - Using filetype completion: False
2019-10-29 17:16:17,864 - DEBUG - Server reported: Loaded bundled typescript@3.6.4.
2019-10-29 17:16:17,864 - DEBUG - Server reported: Vetur initialized
2019-10-29 17:16:18,061 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vue","diagnostics":[]}}'
2019-10-29 17:16:19,523 - INFO - Received event notification
2019-10-29 17:16:19,524 - DEBUG - Event name: FileReadyToParse
2019-10-29 17:16:19,524 - INFO - Adding buffer identifiers for file: /tmp/x.vue
2019-10-29 17:16:19,524 - DEBUG - Refreshing file /tmp/x.vue: State is Open/action Change
2019-10-29 17:16:19,524 - DEBUG - TX: Sending notification: b'Content-Length: 191\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"\\n"}],"textDocument":{"uri":"file:///tmp/x.vue","version":2}}}'
2019-10-29 17:16:19,530 - INFO - Received event notification
2019-10-29 17:16:19,530 - DEBUG - Event name: InsertLeave
2019-10-29 17:16:20,418 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vue","diagnostics":[]}}'
2019-10-29 17:16:20,501 - INFO - Received completion request
2019-10-29 17:16:20,501 - DEBUG - Using filetype completion: False
2019-10-29 17:16:20,613 - INFO - Received completion request
2019-10-29 17:16:20,614 - DEBUG - Using filetype completion: False
2019-10-29 17:16:21,090 - INFO - Received completion request
2019-10-29 17:16:21,090 - DEBUG - Using filetype completion: False
2019-10-29 17:16:21,302 - INFO - Received event notification
2019-10-29 17:16:21,302 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:16:21,303 - INFO - Adding ONE buffer identifier for file: /tmp/x.vue
2019-10-29 17:16:21,308 - INFO - Received completion request
2019-10-29 17:16:21,308 - DEBUG - Using filetype completion: False
2019-10-29 17:16:21,522 - INFO - Received completion request
2019-10-29 17:16:21,522 - DEBUG - Using filetype completion: False
2019-10-29 17:16:21,782 - INFO - Received event notification
2019-10-29 17:16:21,782 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:16:21,796 - INFO - Received completion request
2019-10-29 17:16:21,797 - DEBUG - Using filetype completion: False
2019-10-29 17:16:21,996 - INFO - Received completion request
2019-10-29 17:16:21,998 - DEBUG - Using filetype completion: False
2019-10-29 17:16:22,099 - INFO - Received completion request
2019-10-29 17:16:22,099 - DEBUG - Using filetype completion: False
2019-10-29 17:16:22,279 - INFO - Received completion request
2019-10-29 17:16:22,280 - DEBUG - Using filetype completion: False
2019-10-29 17:16:23,234 - INFO - Received completion request
2019-10-29 17:16:23,235 - DEBUG - Using filetype completion: False
2019-10-29 17:16:23,442 - INFO - Received event notification
2019-10-29 17:16:23,442 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:16:23,734 - INFO - Received completion request
2019-10-29 17:16:23,735 - DEBUG - Using filetype completion: False
2019-10-29 17:16:24,638 - INFO - Received event notification
2019-10-29 17:16:24,638 - DEBUG - Event name: CurrentIdentifierFinished
2019-10-29 17:16:24,651 - INFO - Received completion request
2019-10-29 17:16:24,651 - DEBUG - Using filetype completion: True
2019-10-29 17:16:24,652 - DEBUG - Refreshing file /tmp/x.vue: State is Open/action Change
2019-10-29 17:16:24,652 - DEBUG - TX: Sending notification: b'Content-Length: 205\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"\\n"}],"textDocument":{"uri":"file:///tmp/x.vue","version":3}}}'
2019-10-29 17:16:24,654 - DEBUG - TX: Sending message: b'Content-Length: 149\r\n\r\n{"id":2,"jsonrpc":"2.0","method":"textDocument/completion","params":{"position":{"character":2,"line":2},"textDocument":{"uri":"file:///tmp/x.vue"}}}'
2019-10-29 17:16:24,706 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":2,"result":{"isIncomplete":false,"items":[{"uri":"file:///tmp/x.vue","position":{"character":2,"line":2},"label":"toString","sortText":"00","kind":3,"data":{"languageId":"javascript","uri":"file:///tmp/x.vue","offset":40}},{"uri":"file:///tmp/x.vue","position":{"character":2,"line":2},"label":"toFixed","sortText":"01","kind":3,"data":{"languageId":"javascript","uri":"file:///tmp/x.vue","offset":40}},{"uri":"file:///tmp/x.vue","position":{"character":2,"line":2},"label":"toExponential","sortText":"02","kind":3,"data":{"languageId":"javascript","uri":"file:///tmp/x.vue","offset":40}},{"uri":"file:///tmp/x.vue","position":{"character":2,"line":2},"label":"toPrecision","sortText":"03","kind":3,"data":{"languageId":"javascript","uri":"file:///tmp/x.vue","offset":40}},{"uri":"file:///tmp/x.vue","position":{"character":2,"line":2},"label":"valueOf","sortText":"04","kind":3,"data":{"languageId":"javascript","uri":"file:///tmp/x.vue","offset":40}},{"uri":"file:///tmp/x.vue","position":{"character":2,"line":2},"label":"toLocaleString","sortText":"05","kind":3,"data":{"languageId":"javascript","uri":"file:///tmp/x.vue","offset":40}},{"uri":"file:///tmp/x.vue","position":{"character":2,"line":2},"label":"a","sortText":"46","kind":17,"data":{"languageId":"javascript","uri":"file:///tmp/x.vue","offset":40}}]}}'
2019-10-29 17:16:24,706 - DEBUG - TX: Sending message: b'Content-Length: 242\r\n\r\n{"id":3,"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"languageId":"javascript","offset":40,"uri":"file:///tmp/x.vue"},"kind":17,"label":"a","position":{"character":2,"line":2},"sortText":"46","uri":"file:///tmp/x.vue"}}'
2019-10-29 17:16:24,708 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":3,"error":{"code":-32603,"message":"Request completionItem/resolve failed with message: Cannot read property \'tabSize\' of undefined"}}'
2019-10-29 17:16:24,709 - ERROR - A completion item could not be resolved. Using basic data
Traceback (most recent call last):
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 963, in _ResolveCompletionItem
REQUEST_TIMEOUT_COMPLETION )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 393, in GetResponse
return response.AwaitResponse( timeout )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 201, in AwaitResponse
error.get( 'message' ) or 'No message' ) )
ycmd.completers.language_server.language_server_completer.ResponseFailedException: Request failed: -32603: Request completionItem/resolve failed with message: Cannot read property 'tabSize' of undefined
2019-10-29 17:16:24,709 - DEBUG - TX: Sending message: b'Content-Length: 253\r\n\r\n{"id":4,"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"languageId":"javascript","offset":40,"uri":"file:///tmp/x.vue"},"kind":3,"label":"toExponential","position":{"character":2,"line":2},"sortText":"02","uri":"file:///tmp/x.vue"}}'
2019-10-29 17:16:24,711 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":4,"error":{"code":-32603,"message":"Request completionItem/resolve failed with message: Cannot read property \'tabSize\' of undefined"}}'
2019-10-29 17:16:24,711 - ERROR - A completion item could not be resolved. Using basic data
Traceback (most recent call last):
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 963, in _ResolveCompletionItem
REQUEST_TIMEOUT_COMPLETION )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 393, in GetResponse
return response.AwaitResponse( timeout )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 201, in AwaitResponse
error.get( 'message' ) or 'No message' ) )
ycmd.completers.language_server.language_server_completer.ResponseFailedException: Request failed: -32603: Request completionItem/resolve failed with message: Cannot read property 'tabSize' of undefined
2019-10-29 17:16:24,711 - DEBUG - TX: Sending message: b'Content-Length: 247\r\n\r\n{"id":5,"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"languageId":"javascript","offset":40,"uri":"file:///tmp/x.vue"},"kind":3,"label":"toFixed","position":{"character":2,"line":2},"sortText":"01","uri":"file:///tmp/x.vue"}}'
2019-10-29 17:16:24,713 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":5,"error":{"code":-32603,"message":"Request completionItem/resolve failed with message: Cannot read property \'tabSize\' of undefined"}}'
2019-10-29 17:16:24,713 - ERROR - A completion item could not be resolved. Using basic data
Traceback (most recent call last):
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 963, in _ResolveCompletionItem
REQUEST_TIMEOUT_COMPLETION )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 393, in GetResponse
return response.AwaitResponse( timeout )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 201, in AwaitResponse
error.get( 'message' ) or 'No message' ) )
ycmd.completers.language_server.language_server_completer.ResponseFailedException: Request failed: -32603: Request completionItem/resolve failed with message: Cannot read property 'tabSize' of undefined
2019-10-29 17:16:24,713 - DEBUG - TX: Sending message: b'Content-Length: 254\r\n\r\n{"id":6,"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"languageId":"javascript","offset":40,"uri":"file:///tmp/x.vue"},"kind":3,"label":"toLocaleString","position":{"character":2,"line":2},"sortText":"05","uri":"file:///tmp/x.vue"}}'
2019-10-29 17:16:24,714 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":6,"error":{"code":-32603,"message":"Request completionItem/resolve failed with message: Cannot read property \'tabSize\' of undefined"}}'
2019-10-29 17:16:24,714 - ERROR - A completion item could not be resolved. Using basic data
Traceback (most recent call last):
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 963, in _ResolveCompletionItem
REQUEST_TIMEOUT_COMPLETION )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 393, in GetResponse
return response.AwaitResponse( timeout )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 201, in AwaitResponse
error.get( 'message' ) or 'No message' ) )
ycmd.completers.language_server.language_server_completer.ResponseFailedException: Request failed: -32603: Request completionItem/resolve failed with message: Cannot read property 'tabSize' of undefined
2019-10-29 17:16:24,715 - DEBUG - TX: Sending message: b'Content-Length: 251\r\n\r\n{"id":7,"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"languageId":"javascript","offset":40,"uri":"file:///tmp/x.vue"},"kind":3,"label":"toPrecision","position":{"character":2,"line":2},"sortText":"03","uri":"file:///tmp/x.vue"}}'
2019-10-29 17:16:24,716 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":7,"error":{"code":-32603,"message":"Request completionItem/resolve failed with message: Cannot read property \'tabSize\' of undefined"}}'
2019-10-29 17:16:24,716 - ERROR - A completion item could not be resolved. Using basic data
Traceback (most recent call last):
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 963, in _ResolveCompletionItem
REQUEST_TIMEOUT_COMPLETION )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 393, in GetResponse
return response.AwaitResponse( timeout )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 201, in AwaitResponse
error.get( 'message' ) or 'No message' ) )
ycmd.completers.language_server.language_server_completer.ResponseFailedException: Request failed: -32603: Request completionItem/resolve failed with message: Cannot read property 'tabSize' of undefined
2019-10-29 17:16:24,716 - DEBUG - TX: Sending message: b'Content-Length: 248\r\n\r\n{"id":8,"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"languageId":"javascript","offset":40,"uri":"file:///tmp/x.vue"},"kind":3,"label":"toString","position":{"character":2,"line":2},"sortText":"00","uri":"file:///tmp/x.vue"}}'
2019-10-29 17:16:24,718 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":8,"error":{"code":-32603,"message":"Request completionItem/resolve failed with message: Cannot read property \'tabSize\' of undefined"}}'
2019-10-29 17:16:24,720 - ERROR - A completion item could not be resolved. Using basic data
Traceback (most recent call last):
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 963, in _ResolveCompletionItem
REQUEST_TIMEOUT_COMPLETION )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 393, in GetResponse
return response.AwaitResponse( timeout )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 201, in AwaitResponse
error.get( 'message' ) or 'No message' ) )
ycmd.completers.language_server.language_server_completer.ResponseFailedException: Request failed: -32603: Request completionItem/resolve failed with message: Cannot read property 'tabSize' of undefined
2019-10-29 17:16:24,720 - DEBUG - TX: Sending message: b'Content-Length: 247\r\n\r\n{"id":9,"jsonrpc":"2.0","method":"completionItem/resolve","params":{"data":{"languageId":"javascript","offset":40,"uri":"file:///tmp/x.vue"},"kind":3,"label":"valueOf","position":{"character":2,"line":2},"sortText":"04","uri":"file:///tmp/x.vue"}}'
2019-10-29 17:16:24,722 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":9,"error":{"code":-32603,"message":"Request completionItem/resolve failed with message: Cannot read property \'tabSize\' of undefined"}}'
2019-10-29 17:16:24,722 - ERROR - A completion item could not be resolved. Using basic data
Traceback (most recent call last):
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 963, in _ResolveCompletionItem
REQUEST_TIMEOUT_COMPLETION )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 393, in GetResponse
return response.AwaitResponse( timeout )
File "/home/qk/.vim/plugged/YouCompleteMe/third_party/ycmd/ycmd/completers/language_server/language_server_completer.py", line 201, in AwaitResponse
error.get( 'message' ) or 'No message' ) )
ycmd.completers.language_server.language_server_completer.ResponseFailedException: Request failed: -32603: Request completionItem/resolve failed with message: Cannot read property 'tabSize' of undefined
2019-10-29 17:16:24,862 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vue","diagnostics":[{"range":{"start":{"line":2,"character":2},"end":{"line":2,"character":2}},"severity":1,"message":"Identifier expected.","tags":[],"code":1003,"source":"Vetur"}]}}'
2019-10-29 17:16:30,587 - INFO - Received event notification
2019-10-29 17:16:30,587 - DEBUG - Event name: FileReadyToParse
2019-10-29 17:16:30,587 - INFO - Adding buffer identifiers for file: /tmp/x.vue
2019-10-29 17:16:30,587 - DEBUG - Refreshing file /tmp/x.vue: State is Open/action Change
2019-10-29 17:16:30,587 - DEBUG - TX: Sending notification: b'Content-Length: 206\r\n\r\n{"jsonrpc":"2.0","method":"textDocument/didChange","params":{"contentChanges":[{"text":"\\n"}],"textDocument":{"uri":"file:///tmp/x.vue","version":4}}}'
2019-10-29 17:16:30,590 - INFO - Received event notification
2019-10-29 17:16:30,590 - DEBUG - Event name: InsertLeave
2019-10-29 17:16:30,590 - INFO - Adding ONE buffer identifier for file: /tmp/x.vue
2019-10-29 17:16:30,793 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"uri":"file:///tmp/x.vue","diagnostics":[]}}'
2019-10-29 17:16:33,132 - INFO - Received debug info request
2019-10-29 17:16:34,962 - INFO - Received debug info request
I searched https://vuejs.github.io/vetur/formatting.html#settings
and updated the Settings and fixed the undefined tabSize
def Settings(**kwargs):
return {
"ls": {
"vetur": {
# ...
"format": {
# ...
"options": {
"tabSize": 4,
}
}
},
# ...
}
}
As for the sluggishness.
In a vue file with 3000 lines, I typed this.
and the completions came after more than 15 seconds. With tail -f xxx.log
, I could see that many RX: Received message ....
showed up slowly.
Thanks. What's the version of your vue-language-server?
I'm currently on 0.0.62
I searched https://vuejs.github.io/vetur/formatting.html#settings and updated the Settings and fixed the undefined tabSize
Great. I love this about vls...
As for the sluggishness. In a vue file with 3000 lines, I typed this. and the completions came after more than 15 seconds. With tail -f xxx.log, I could see that many RX: Received message .... showed up slowly.
I've seen that kind of sluggishness with solargraph The screenshot of the log shows that each response was well under 500ms. You can check a few things:
isIncomplete
property?No response. Closing for now.
env
vls version: 0.0.62 (installed with
npm install -g --production
) neovim: NVIM v0.4.0-1809-ge3e0574cbproblem
Neither completer or goto command worked.
detail
Running
vls --stdio
from the directory where I started vim just blocked.And these are logs after setting
let g:ycm_keep_logfiles = 1 let g:ycm_log_level = 'debug'
:vuecompleter_xxx.log: empty ycm_xxx.log:
ycmd_xxx_stdout_xxx.log:
ycmd_xxx_stderr_xxx.log: