Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Connection got disposed #430

Closed
findmyway opened this issue Dec 28, 2017 · 18 comments
Closed

Error: Connection got disposed #430

findmyway opened this issue Dec 28, 2017 · 18 comments
Labels

Comments

@findmyway
Copy link

findmyway commented Dec 28, 2017

OS INFO

Edition Windows 10 Enterprise
Version 1709
OS Build 16299.125

Julia-vscode version:

0.8.1 (also reproduce on 0.9.0-beta1)

I assume the main reason is that, my project folder has a symlink to a folder in OneDrive.
I create a new folder and the error disappears.

After searching for related issues, I find the following discussions:

JuliaLang/julia#24483

I'm not very sure about the relationship between the following error and the about issue.
May it be useful for debugging.

[Error - 12:20:33 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
[Error - 12:20:33 PM] Request textDocument/documentLink failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
ERROR: LoadError: stat: invalid argument (EINVAL)
Stacktrace:
 [1] stat(::String) at .\stat.jl:69
 [2] isdir at .\stat.jl:279 [inlined]
 [3] load_rootpath(::String) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\provider_misc.jl:46
 [4] process(::LanguageServer.JSONRPC.Request{Val{:initialized},Dict{String,Any}}, ::LanguageServer.LanguageServerInstance) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\provider_misc.jl:54
 [5] run(::LanguageServer.LanguageServerInstance) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\languageserverinstance.jl:35
 [6] include_from_node1(::String) at .\loading.jl:576
 [7] include(::String) at .\sysimg.jl:14
 [8] process_options(::Base.JLOptions) at .\client.jl:305
 [9] _start() at .\client.jl:371
while loading C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\main.jl, in expression starting on line 27
[Info  - 12:20:42 PM] Connection to server got closed. Server will restart.
[Error - 12:20:42 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
[Error - 12:20:42 PM] Request textDocument/documentLink failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
ERROR: LoadError: stat: invalid argument (EINVAL)
Stacktrace:
 [1] stat(::String) at .\stat.jl:69
 [2] isdir at .\stat.jl:279 [inlined]
 [3] load_rootpath(::String) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\provider_misc.jl:46
 [4] process(::LanguageServer.JSONRPC.Request{Val{:initialized},Dict{String,Any}}, ::LanguageServer.LanguageServerInstance) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\provider_misc.jl:54
 [5] run(::LanguageServer.LanguageServerInstance) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\languageserverinstance.jl:35
 [6] include_from_node1(::String) at .\loading.jl:576
 [7] include(::String) at .\sysimg.jl:14
 [8] process_options(::Base.JLOptions) at .\client.jl:305
 [9] _start() at .\client.jl:371
while loading C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\main.jl, in expression starting on line 27
[Info  - 12:20:52 PM] Connection to server got closed. Server will restart.
[Error - 12:20:52 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
[Error - 12:20:52 PM] Request textDocument/documentLink failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
ERROR: LoadError: stat: invalid argument (EINVAL)
Stacktrace:
 [1] stat(::String) at .\stat.jl:69
 [2] isdir at .\stat.jl:279 [inlined]
 [3] load_rootpath(::String) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\provider_misc.jl:46
 [4] process(::LanguageServer.JSONRPC.Request{Val{:initialized},Dict{String,Any}}, ::LanguageServer.LanguageServerInstance) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\provider_misc.jl:54
 [5] run(::LanguageServer.LanguageServerInstance) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\languageserverinstance.jl:35
 [6] include_from_node1(::String) at .\loading.jl:576
 [7] include(::String) at .\sysimg.jl:14
 [8] process_options(::Base.JLOptions) at .\client.jl:305
 [9] _start() at .\client.jl:371
while loading C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\main.jl, in expression starting on line 27
[Info  - 12:21:02 PM] Connection to server got closed. Server will restart.
[Error - 12:21:02 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
[Error - 12:21:02 PM] Request textDocument/documentLink failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
ERROR: LoadError: stat: invalid argument (EINVAL)
Stacktrace:
 [1] stat(::String) at .\stat.jl:69
 [2] isdir at .\stat.jl:279 [inlined]
 [3] load_rootpath(::String) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\provider_misc.jl:46
 [4] process(::LanguageServer.JSONRPC.Request{Val{:initialized},Dict{String,Any}}, ::LanguageServer.LanguageServerInstance) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\provider_misc.jl:54
 [5] run(::LanguageServer.LanguageServerInstance) at C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\packages\LanguageServer\src\languageserverinstance.jl:35
 [6] include_from_node1(::String) at .\loading.jl:576
 [7] include(::String) at .\sysimg.jl:14
 [8] process_options(::Base.JLOptions) at .\client.jl:305
 [9] _start() at .\client.jl:371
while loading C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\scripts\languageserver\main.jl, in expression starting on line 27
[Error - 12:21:11 PM] Connection to server got closed. Server will not be restarted.
[Error - 12:21:11 PM] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
[Error - 12:21:11 PM] Request textDocument/documentLink failed.
Error: Connection got disposed.
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:825:25)
	at Object.dispose (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:57:35)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1864:38)
	at LanguageClient.handleConnectionClosed (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\main.js:106:15)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-languageclient\lib\client.js:1852:18)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
	at closeHandler (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\main.js:221:26)
	at CallbackList.invoke (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:71:39)
	at Emitter.fire (C:\Users\juti\.vscode\extensions\julialang.language-julia-0.8.1\node_modules\vscode-jsonrpc\lib\events.js:135:36)
@davidanthoff davidanthoff added this to the Backlog milestone Dec 28, 2017
@cscherrer
Copy link

cscherrer commented Jan 4, 2018

This bug just popped up for me as well.

OS:

chad@albatross:~$ uname -a
Linux albatross 4.13.0-21-generic #24-Ubuntu SMP Mon Dec 18 17:29:16 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

VScode info:

Version 1.19.1
Commit 0759f77bb8d86658bc935a10a64f6182c5a1eeba
Date 2017-12-19T09:41:01.414Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

VScode Julia extension v0.9.1

log available in this gist

@louisponet
Copy link

louisponet commented Jan 4, 2018

Same here:

Darwin louiss-mbp.iit.local 16.7.0 Darwin Kernel Version 16.7.0: Mon Nov 13 21:56:25 PST 2017; root:xnu-3789.72.11~1/RELEASE_X86_64 x86_64

VSCode:

Version 1.19.1 (1.19.1)
0759f77bb8d86658bc935a10a64f6182c5a1eeba
2017-12-19T09:30:49.975Z

Extension v0.9.1

Log is basically the same, let me know if you need it. This seems to be happening whenever I alt+enter and there is an error in my block i.e. missed parentheses or something like that. Sometimes it also just happens while parsing new files, not sure if it's related to the first case.

@cscherrer
Copy link

Anyone know a workaround for this? It only started recently, and it's very distracting.

Also, I don't know if this is related, but the handy latex unicode completion stopped working around the same time. It works fine in the REPL (which maybe isn't controlled by this plugin?) but not in the editor.

@davidanthoff
Copy link
Member

No workaround, I’m afraid. This is a bug that crashes the language server, and that also explains why the latex completion stop working.

We are adding crash reporting to the next release that should make it easier for us to identify and fix such bugs.

@RandomString123
Copy link

This is happening on my portable device. The funny thing is it happens on files (stored in onedrive) that open without problems on my desktop so I believe it is an install/machine based and not a source based problem. Also the files I am running it on are not very complex one has one line of julia code and the other is a two page .jmd file with three chunks in it.

The problem also is persistent through uninstalling and re-installing the julia extension. If I have time today I will look at this a bit more and see if I can dig up the root cause.

@RandomString123
Copy link

I figured out the problem in my instance. OneDrive has the capability to load files on demand:
image
When this is set the 'l' flag gets set on the OneDrive folder.
image

This flag signifies that the file is Reparse Point, and not surprisingly the julia stat function does not handle this flag well. For an immediate fix files on demand can be turned off by unchecking the box and everything will work as normal.

From reading the thread linked in the first post it looks like there is an issue open with the JuliaLang folks and maybe fix in the works for julia .7? I honestly don't know if that is just discussion or if it is actually fixed though.

@ZacLN
Copy link
Contributor

ZacLN commented Jan 18, 2018

There's a check for file permissions that I've added which may help with this, could you try again when the beta is released?

@RandomString123
Copy link

Sure. It is easy enough to turn files on demand back on.

@davidanthoff
Copy link
Member

Beta is now out: https://discourse.julialang.org/t/vs-code-extension-v0-10-0-beta-release/8497. Would be great if you could try again!

@RandomString123
Copy link

Still crashes, I submitted crash reports.

@cscherrer
Copy link

@davidanthoff For me it works intermittently. Seems to take a bit to load, after which code completion and latex work for a while. Then there was a crash message, but it didn't fill my terminal with log output as it had before. I clicked to submit my information as well.

Thank you for your work on this! VS code is great, and I think this can have a big impact for Julia users.

@ranocha
Copy link

ranocha commented Jun 21, 2018

I get a similar error on Linux without OneDrive.
OS:

$ uname -a
Linux 4.15.0-23-generic #25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
$ code --version
1.24.1
24f62626b222e9a8313213fb64b10d741a326288
x64

Output:

INFO: parsed /.../Downloads/juliadev/test/strings/basic.jl
ERROR: LoadError: InvalidStateException("Channel is closed.", :closed)
while loading /.../.vscode/extensions/julialang.language-julia-0.10.2/scripts/languageserver/main.jl, in expression starting on line 5
[Error - 10:00:12] Connection to server got closed. Server will not be restarted.
[Error - 10:00:12] Request textDocument/codeAction failed.
Error: Connection got disposed.
	at Object.dispose (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/main.js:825:25)
	at Object.dispose (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-languageclient/lib/client.js:57:35)
	at LanguageClient.handleConnectionClosed (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-languageclient/lib/client.js:1967:42)
	at LanguageClient.handleConnectionClosed (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-languageclient/lib/main.js:126:15)
	at closeHandler (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-languageclient/lib/client.js:1954:18)
	at CallbackList.invoke (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:71:39)
	at Emitter.fire (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:135:36)
	at closeHandler (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/main.js:221:26)
	at CallbackList.invoke (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:71:39)
	at Emitter.fire (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:135:36)
	at StreamMessageReader.AbstractMessageReader.fireClose (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/messageReader.js:135:27)
	at Socket.<anonymous> (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/messageReader.js:188:62)
	at emitOne (events.js:101:20)
	at Socket.emit (events.js:191:7)
	at Pipe._handle.close [as _onclose] (net.js:510:12)
[Error - 10:00:12] Request textDocument/documentLink failed.
Error: Connection got disposed.
	at Object.dispose (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/main.js:825:25)
	at Object.dispose (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-languageclient/lib/client.js:57:35)
	at LanguageClient.handleConnectionClosed (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-languageclient/lib/client.js:1967:42)
	at LanguageClient.handleConnectionClosed (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-languageclient/lib/main.js:126:15)
	at closeHandler (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-languageclient/lib/client.js:1954:18)
	at CallbackList.invoke (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:71:39)
	at Emitter.fire (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:135:36)
	at closeHandler (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/main.js:221:26)
	at CallbackList.invoke (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:71:39)
	at Emitter.fire (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/events.js:135:36)
	at StreamMessageReader.AbstractMessageReader.fireClose (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/messageReader.js:135:27)
	at Socket.<anonymous> (/.../.vscode/extensions/julialang.language-julia-0.10.2/node_modules/vscode-jsonrpc/lib/messageReader.js:188:62)
	at emitOne (events.js:101:20)
	at Socket.emit (events.js:191:7)
	at Pipe._handle.close [as _onclose] (net.js:510:12)

@davidanthoff
Copy link
Member

Did it offer you an option to send a crash report? That would be the most helpful in a case like this.

@ranocha
Copy link

ranocha commented Jun 22, 2018

Yes, you should have received ~30 or more crash reports, since I've restarted vscode several times.

@davidanthoff
Copy link
Member

Thanks!

@Ogjerry
Copy link

Ogjerry commented Jun 12, 2019

the beta cannot be downloaded because of version problems. Here are the errors:
6/12/2019 2:33:53 PM - Microsoft VSIX Installer
6/12/2019 2:33:53 PM - -------------------------------------------
6/12/2019 2:33:53 PM - vsixinstaller.exe version:
6/12/2019 2:33:53 PM - 16.0.2264
6/12/2019 2:33:53 PM - -------------------------------------------
6/12/2019 2:33:53 PM - Command line parameters:
6/12/2019 2:33:53 PM - C:\Program Files (x86)\Microsoft Visual Studio\Installer\resources\app\ServiceHub\Services\Microsoft.VisualStudio.Setup.Service\VSIXInstaller.exe,C:\Users\Jerry\Downloads\language-julia-0.10.0-beta.2.vsix
6/12/2019 2:33:53 PM - -------------------------------------------
6/12/2019 2:33:53 PM - Microsoft VSIX Installer
6/12/2019 2:33:53 PM - -------------------------------------------
6/12/2019 2:33:53 PM - Initializing Install...
6/12/2019 2:33:53 PM - Microsoft.VisualStudio.ExtensionManager.InvalidExtensionManifestException: Element 'Identity' has invalid value for attribute 'Version' ---> System.FormatException: Input string was not in a correct format.
at System.Version.VersionResult.SetFailure(ParseFailureKind failure, String argument)
at System.Version.TryParseComponent(String component, String componentName, VersionResult& result, Int32& parsedComponent)
at System.Version.TryParseVersion(String version, VersionResult& result)
at System.Version.Parse(String input)
at System.Version..ctor(String version)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.<>c.b__67_1(String s)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func2 selector, Boolean isRequired, Int32 maxLength, T defaultValue) --- End of stack trace from previous location where exception was thrown --- at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject) --- End of inner exception stack trace --- at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.VerifyStringValue[T](String value, ErrorInfo info, Func2 selector, Boolean isRequired, Int32 maxLength, T defaultValue)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ExtractManifestData(PackageManifest manifest)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadPackageManifest(XmlReader reader)
at Microsoft.VisualStudio.ExtensionManager.ExtensionImpl.ReadManifest(Stream manifestStream)
at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl.ReadVSIXManifestFromPackage(Stream stream, CultureInfo preferredCulture)
at Microsoft.VisualStudio.ExtensionManager.InstallableExtensionImpl..ctor(String path, CultureInfo preferredCulture)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CreateInstallableExtension(String extensionPath, CultureInfo preferredCulture)
at Microsoft.VisualStudio.ExtensionManager.ExtensionEngineImpl.CreateInstallableExtension(String extensionPath)
at VSIXInstaller.ExtensionService.GetInstallableData(String vsixPath, String extensionPackParentName, Boolean isRepairSupported, IStateData stateData, IEnumerable1& skuData) at VSIXInstaller.ExtensionPackService.IsExtensionPack(IStateData stateData, Boolean isRepairSupported) at VSIXInstaller.ExtensionPackService.ExpandExtensionPackToInstall(IStateData stateData, Boolean isRepairSupported) at VSIXInstaller.App.Initialize(Boolean isRepairSupported) at VSIXInstaller.App.Initialize() at System.Threading.Tasks.Task1.InnerInvoke()
at System.Threading.Tasks.Task.Execute()

@davidanthoff
Copy link
Member

You are trying to download a way outdated beta version. Just try to install the extension from the marketplace inside VS Code, and you'll get a newer version.

@davidanthoff
Copy link
Member

I'm going to close this issue. If there are still problems, please open a new issue.

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

No branches or pull requests

8 participants