vuejs / vetur

Vue tooling for VS Code.
https://vuejs.github.io/vetur/
MIT License
5.75k stars 594 forks source link

The \"path\" argument must be of type string. Received type undefined #1426

Closed bstaletic closed 5 years ago

bstaletic commented 5 years ago

Info

Problem

As soon as I start the server, I get, similarly to #1402, The \"path\" argument must be of type string. Received type undefined

Reproducible Case

Currently not using any configuration of the server, but the same happened when I tried to use the default configuration from here.

The json exchange from my client's side looks like this:

2019-08-26 23:37:34,879 - DEBUG - TX: Sending message: b'Content-Length: 431\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": {}, "processId": 23433, "rootPath": "/Users/nbossard/OtherProjects/mahali/front/webapp", "rootUri": "file:///Users/nbossard/OtherProjects/mahali/front/webapp"}}'
2019-08-26 23:37:35,978 - DEBUG - RX: Received message: b'{"jsonrpc":"2.0","id":"1","error":{"code":-32603,"message":"Request initialize failed with message: The \\"path\\" argument must be of type string. Received type undefined"}}'

Our user issue report can be found here: https://github.com/ycm-core/lsp-examples/issues/7

octref commented 5 years ago

Thanks for your detailed report. This should be fixed in latest release of VLS.

douglasg14b commented 3 years ago

What is the cause of this error? I'm getting it in 2021,

wokalek commented 2 years ago

Same

Namakete commented 10 months ago

Same 2024...