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

Crash with include() #1116

Closed
mfiano opened this issue Jun 30, 2022 · 3 comments
Closed

Crash with include() #1116

mfiano opened this issue Jun 30, 2022 · 3 comments
Labels
needs more info Description is not enough to reproduce the problem

Comments

@mfiano
Copy link

mfiano commented Jun 30, 2022

My module had an include() call that was referencing a file that didn't exist yet. As soon as I created the file, LS.jl crashed with this stack trace:

[START][2022-06-30 15:36:04] LSP logging initiated
[ERROR][2022-06-30 15:36:08] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	'┌ Info: Running language server\n│   VERSION = v"1.7.3"\n│   pwd() = "/home/mfiano/projects/Julia/Practice"\n│   project_path = "/home/mfiano/projects/Julia/Practice"\n└   depot_path = "/home/mfiano/.data/julia"\n'
[ERROR][2022-06-30 15:36:20] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: All cache files downloaded.\n"
[ERROR][2022-06-30 15:36:23] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Loading StaticArrays from cache...\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Loading Statistics from cache... (0%)\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Loading LinearAlgebra from cache... (0%)\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"┌ Warning: libblastrampoline_jll not stored on disc\n└ @ SymbolServer ~/.data/julia/packages/SymbolServer/LMSFX/src/SymbolServer.jl:247\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Loading Libdl from cache... (0%)\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Loading SparseArrays from cache... (0%)\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Loading Random from cache... (0%)\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Loading Serialization from cache... (0%)\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Loading SHA from cache... (0%)\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Loading StaticArraysCore from cache... (0%)\n"
[ERROR][2022-06-30 15:36:26] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"[ Info: Received new data from Julia Symbol Server.\n"
[ERROR][2022-06-30 15:42:27] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"ERROR: "
[ERROR][2022-06-30 15:42:27] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"KeyError: key "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"LanguageServer"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	".URIs2.URI("
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	'"file", '
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	'"", "/home/mfiano/projects/Julia/Practice/src/ve'
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	'ctors.jl", '
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"nothing, nothing) not found"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"\nStacktrace:\n [1] "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"getindex\n   @ "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"./"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"dict.jl:481 [inlined]\n"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	" [2] getdocument\n   @ "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"~/.data/julia/packages/LanguageServer/b8GeP/src/languageserverinstance.jl:109 [inlined]\n"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	" [3] "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"textDocument_didChange_notification("
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"params::"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"LanguageServer.DidChangeTextDocumentParams, server::LanguageServerInstance, conn::"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint})\n   @ "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"LanguageServer"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	" "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"~/.data/julia/packages/LanguageServer/b8GeP/src/requests/"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"textdocument.jl:66\n"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	" [4] "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	'(::LanguageServer.var"#98#99"{typeof(LanguageServer.textDocument_didChange_notification), LanguageServerInstance})(conn'
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.DidChangeTextDocumentParams)"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"\n   @ LanguageServer ~/.data/julia/packages/LanguageServer/b8GeP/src/languageserverinstance.jl:262\n"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	" [5]"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	" "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"dispatcher::JSONRPC.MsgDispatcher, msg::"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"Dict{String, Any}"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	")\n   @ JSONRPC ~/.data/julia/packages/JSONRPC/P0G1p/src/"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"typed.jl:67\n"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	" [6] "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"run(server::LanguageServerInstance)\n   @ "
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"LanguageServer ~/.data/julia/packages/LanguageServer/b8GeP/src/languageserverinstance.jl:382\n"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	" [7] top-level scope\n   @ none:31"
[ERROR][2022-06-30 15:42:28] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"\n"
@mfiano mfiano changed the title Crash after with include() Crash with include() Jun 30, 2022
@pfitzseb
Copy link
Member

pfitzseb commented Jul 8, 2022

I can't repro this. I suspect this happened because the client didn't send a didOpen notification before its first didChange for the new document or something like that.

@pfitzseb pfitzseb added the needs more info Description is not enough to reproduce the problem label Jul 8, 2022
@fredrikekre
Copy link
Member

I reproduced this once when this issues was opened, but can't do it now.

@mfiano
Copy link
Author

mfiano commented Jul 15, 2022

Closing this as I can't reproduce, and it was filed when I was using 4.3.0.

@mfiano mfiano closed this as completed Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info Description is not enough to reproduce the problem
Projects
None yet
Development

No branches or pull requests

3 participants