svelte-intellisense icon indicating copy to clipboard operation
svelte-intellisense copied to clipboard

TypeError: must pass in a file:// URI to convert to a file path

Open arggh opened this issue 6 years ago • 5 comments

My VS Code output console is filled with these:

TypeError: must pass in a file:// URI to convert to a file path
    at Object.fileUriToPath (/Users/arggh/.vscode/extensions/ardenivanov.svelte-intellisense-0.7.1/server/out/utils.js:25:15)
    at /Users/arggh/.vscode/extensions/ardenivanov.svelte-intellisense-0.7.1/server/out/server.js:63:70
    at CallbackList.invoke (/Users/arggh/.vscode/extensions/ardenivanov.svelte-intellisense-0.7.1/server/node_modules/vscode-jsonrpc/lib/events.js:62:39)
    at Emitter.fire (/Users/arggh/.vscode/extensions/ardenivanov.svelte-intellisense-0.7.1/server/node_modules/vscode-jsonrpc/lib/events.js:120:36)
    at connection.onDidCloseTextDocument (/Users/arggh/.vscode/extensions/ardenivanov.svelte-intellisense-0.7.1/server/node_modules/vscode-languageserver/lib/main.js:202:34)
    at handleNotification (/Users/arggh/.vscode/extensions/ardenivanov.svelte-intellisense-0.7.1/server/node_modules/vscode-jsonrpc/lib/main.js:489:43)
    at processMessageQueue (/Users/arggh/.vscode/extensions/ardenivanov.svelte-intellisense-0.7.1/server/node_modules/vscode-jsonrpc/lib/main.js:260:17)
    at Immediate.setImmediate (/Users/arggh/.vscode/extensions/ardenivanov.svelte-intellisense-0.7.1/server/node_modules/vscode-jsonrpc/lib/main.js:247:13)
    at runCallback (timers.js:794:20)
    at tryOnImmediate (timers.js:752:5)

arggh avatar Nov 11 '19 07:11 arggh

It's triggered when hovered on the diff page (working tree) in any svelte files. The console output from the dev console is as below

ERR Cannot read property 'kind' of null: TypeError: Cannot read property 'kind' of null
	at asHoverContent (c:\Users\Bagus\.vscode\extensions\ardenivanov.svelte-intellisense-0.7.1\client\node_modules\vscode-languageclient\lib\protocolConverter.js:101:27)
	at asHover (c:\Users\Bagus\.vscode\extensions\ardenivanov.svelte-intellisense-0.7.1\client\node_modules\vscode-languageclient\lib\protocolConverter.js:134:31)

So it seems there's a conflict with the vscode-languageclient package in the client folder.

ignatiusmb avatar Dec 12 '19 14:12 ignatiusmb

+1

I can help provide debug info if needed!

himynameisdave avatar Feb 29 '20 22:02 himynameisdave

Having the same exact issue on my end, has any progress been made?

BlackFenix2 avatar Jul 16 '20 15:07 BlackFenix2

It's been 9 months since the last update, and the Svelte team has built its own official extension since then, and already out off beta around a month ago.

Probably the solution is to just move to the official extension as they're actively developing it in https://github.com/sveltejs/language-tools/

ignatiusmb avatar Jul 17 '20 05:07 ignatiusmb