Skip to content

"Your extension just crashed with a bug that we have been trying to replicate for a long time" (revisited) #1127

Open
@mfiano

Description

@mfiano

This is a trace log from Neovim 0.7.2 on LS.jl 4.3.1 that shows #1058 still occurring

[DEBUG][2022-07-13 16:38:30] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/signatureHelp"	{  position = {    character = 0,    line = 32  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:30] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 41,  jsonrpc = "2.0",  method = "textDocument/signatureHelp",  params = {    position = {      character = 0,      line = 32    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:30] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 41,  jsonrpc = "2.0",  result = {    activeParameter = 0,    activeSignature = 0,    signatures = {}  }}
[DEBUG][2022-07-13 16:38:32] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/completion"	{  context = {    triggerCharacter = "@",    triggerKind = 2  },  position = {    character = 1,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:32] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 42,  jsonrpc = "2.0",  method = "textDocument/completion",  params = {    context = {      triggerCharacter = "@",      triggerKind = 2    },    position = {      character = 1,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:32] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 42,  jsonrpc = "2.0",  result = {    isIncomplete = true,    items = {}  }}
[DEBUG][2022-07-13 16:38:33] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/completion"	{  context = {    triggerKind = 1  },  position = {    character = 2,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:33] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 43,  jsonrpc = "2.0",  method = "textDocument/completion",  params = {    context = {      triggerKind = 1    },    position = {      character = 2,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:33] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 43,  jsonrpc = "2.0",  result = {    isIncomplete = true,    items = {}  }}
[DEBUG][2022-07-13 16:38:33] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/completion"	{  context = {    triggerKind = 3  },  position = {    character = 3,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:33] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 44,  jsonrpc = "2.0",  method = "textDocument/completion",  params = {    context = {      triggerKind = 3    },    position = {      character = 3,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:33] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 44,  jsonrpc = "2.0",  result = {    isIncomplete = true,    items = {}  }}
[DEBUG][2022-07-13 16:38:33] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/completion"	{  context = {    triggerKind = 3  },  position = {    character = 4,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:33] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 45,  jsonrpc = "2.0",  method = "textDocument/completion",  params = {    context = {      triggerKind = 3    },    position = {      character = 4,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:33] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 45,  jsonrpc = "2.0",  result = {    isIncomplete = true,    items = {}  }}
[DEBUG][2022-07-13 16:38:33] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/completion"	{  context = {    triggerKind = 3  },  position = {    character = 5,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:33] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 46,  jsonrpc = "2.0",  method = "textDocument/completion",  params = {    context = {      triggerKind = 3    },    position = {      character = 5,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:33] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 46,  jsonrpc = "2.0",  result = {    isIncomplete = true,    items = {}  }}
[DEBUG][2022-07-13 16:38:34] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/completion"	{  context = {    triggerKind = 3  },  position = {    character = 6,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:34] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 47,  jsonrpc = "2.0",  method = "textDocument/completion",  params = {    context = {      triggerKind = 3    },    position = {      character = 6,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:34] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 47,  jsonrpc = "2.0",  result = {    isIncomplete = true,    items = {}  }}
[DEBUG][2022-07-13 16:38:34] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/completion"	{  context = {    triggerKind = 3  },  position = {    character = 7,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:34] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 48,  jsonrpc = "2.0",  method = "textDocument/completion",  params = {    context = {      triggerKind = 3    },    position = {      character = 7,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:34] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 48,  jsonrpc = "2.0",  result = {    isIncomplete = true,    items = {}  }}
[DEBUG][2022-07-13 16:38:35] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/completion"	{  context = {    triggerKind = 1  },  position = {    character = 9,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:35] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 49,  jsonrpc = "2.0",  method = "textDocument/completion",  params = {    context = {      triggerKind = 1    },    position = {      character = 9,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:35] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 49,  jsonrpc = "2.0",  result = {    isIncomplete = true,    items = {}  }}
[DEBUG][2022-07-13 16:38:35] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/completion"	{  context = {    triggerKind = 3  },  position = {    character = 11,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:35] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 50,  jsonrpc = "2.0",  method = "textDocument/completion",  params = {    context = {      triggerKind = 3    },    position = {      character = 11,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:35] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 50,  jsonrpc = "2.0",  result = {    isIncomplete = true,    items = {}  }}
[DEBUG][2022-07-13 16:38:36] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/signatureHelp"	{  position = {    character = 12,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:36] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 51,  jsonrpc = "2.0",  method = "textDocument/signatureHelp",  params = {    position = {      character = 12,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:36] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 51,  jsonrpc = "2.0",  result = {    activeParameter = 3,    activeSignature = 0,    signatures = {}  }}
[DEBUG][2022-07-13 16:38:39] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/formatting"	{  options = {    insertSpaces = true,    tabSize = 4  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:39] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 52,  jsonrpc = "2.0",  method = "textDocument/formatting",  params = {    options = {      insertSpaces = true,      tabSize = 4    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[DEBUG][2022-07-13 16:38:39] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  id = 52,  jsonrpc = "2.0",  result = { {      newText = 'module Strips\n\nusing StaticArrays\n\nimport ..MathTypes: BaseVector, BaseMatrix\n\nexport ColumnX, ColumnY, ColumnZ, ColumnW, RowX, RowY, RowZ, RowW\n\nabstract type Strip{N} end\nabstract type Column{N} <: Strip{N} end\nabstract type Row{N} <: Strip{N} end\n\nconst ColumnX = Column{1}\nconst ColumnY = Column{2}\nconst ColumnZ = Column{3}\nconst ColumnW = Column{4}\nconst RowX = Row{1}\nconst RowY = Row{2}\nconst RowZ = Row{3}\nconst RowW = Row{4}\n\nfunction check_strip(vsize::Int64, msize::Int64, idx::Int64)\n    vsize <= msize ||\n        throw(ArgumentError("vector size $(vsize) is larger than matrix size $(msize)."))\n    idx <= msize ||\n        throw(ArgumentError("index $(idx) is larger than square matrix size $(msize)."))\nend\n\nmake_strip(m::BaseMatrix, vs::Int, ::Type{<:Column{C}}) where {C} = m[SVector{vs}(1:vs), C]\nmake_strip(m::BaseMatrix, vs::Int, ::Type{<:Row{R}}) where {R} = m[R, SVector{vs}(1:vs)]\nset_strip(m::MMatrix, v::SVector{N}, ::Type{<:Column{C}}) where {N,C} = (m[1:N, C] .= v; m)\nset_strip(m::MMatrix, v::SVector{N}, ::Type{<:Row{R}}) where {N,R} = (m[R, 1:N] .= v; m)\n\nfunction make_strip(\n    m::BaseMatrix{M},\n    v::Type{<:BaseVector{V}},\n    s::Type{<:Strip{S}},\n) where {M,V,S}\n    check_strip(V, M, S)\n    v(make_strip(m, V, s)...)\nend\n\nfunction set_strip(\n    m::T,\n    v::BaseVector{V},\n    s::Type{<:Strip{S}},\n) where {M,T<:BaseMatrix{M},V,S}\n    check_strip(V, M, S)\n    T(set_strip(MMatrix(m), SVector(v), s))\nend\n\nend\n',      range = {        end = {          character = 0,          line = 52        },        start = {          character = 0,          line = 0        }      }    } }}
[DEBUG][2022-07-13 16:38:39] .../vim/lsp/rpc.lua:347	"rpc.send"	{  jsonrpc = "2.0",  method = "textDocument/didSave",  params = {    text = 'module Strips\n\nusing StaticArrays\n\nimport ..MathTypes: BaseVector, BaseMatrix\n\nexport ColumnX, ColumnY, ColumnZ, ColumnW, RowX, RowY, RowZ, RowW\n\nabstract type Strip{N} end\nabstract type Column{N} <: Strip{N} end\nabstract type Row{N} <: Strip{N} end\n\nconst ColumnX = Column{1}\nconst ColumnY = Column{2}\nconst ColumnZ = Column{3}\nconst ColumnW = Column{4}\nconst RowX = Row{1}\nconst RowY = Row{2}\nconst RowZ = Row{3}\nconst RowW = Row{4}\n\nfunction check_strip(vsize::Int64, msize::Int64, idx::Int64)\n    vsize <= msize ||\n        throw(ArgumentError("vector size $(vsize) is larger than matrix size $(msize)."))\n    idx <= msize ||\n        throw(ArgumentError("index $(idx) is larger than square matrix size $(msize)."))\nend\n\nmake_strip(m::BaseMatrix, vs::Int, ::Type{<:Column{C}}) where {C} = m[SVector{vs}(1:vs), C]\nmake_strip(m::BaseMatrix, vs::Int, ::Type{<:Row{R}}) where {R} = m[R, SVector{vs}(1:vs)]\nset_strip(m::MMatrix, v::SVector{N}, ::Type{<:Column{C}}) where {N,C} = (m[1:N, C] .= v; m)\nset_strip(m::MMatrix, v::SVector{N}, ::Type{<:Row{R}}) where {N,R} = (m[R, 1:N] .= v; m)\n\nfunction make_strip(\n    m::BaseMatrix{M},\n    v::Type{<:BaseVector{V}},\n    s::Type{<:Strip{S}},\n) where {M,V,S}\n    check_strip(V, M, S)\n    v(make_strip(m, V, s)...)\nend\n\nfunction set_strip(\n    m::T,\n    v::BaseVector{V},\n    s::Type{<:Strip{S}},\n) where {M,T<:BaseMatrix{M},V,S}\n    check_strip(V, M, S)\n    T(set_strip(MMatrix(m), SVector(v), s))\nend\n\nend\n\nend\n',    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[ERROR][2022-07-13 16:38:39] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"ERROR: "
[DEBUG][2022-07-13 16:38:40] .../lua/vim/lsp.lua:1023	"LSP[julials]"	"client.request"	6	"textDocument/signatureHelp"	{  position = {    character = 12,    line = 33  },  textDocument = {    uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"  }}	<function 1>	245
[DEBUG][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:347	"rpc.send"	{  id = 53,  jsonrpc = "2.0",  method = "textDocument/signatureHelp",  params = {    position = {      character = 12,      line = 33    },    textDocument = {      uri = "file:///home/mfiano/projects/Julia/Practice/src/strip.jl"    }  }}
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"Mismatch between server and client text for file:///home/mfiano/projects/Julia/Practice/src/strip.jl. _open_in_editor is true. _workspace_file is true. _version is 0.\nStacktrace:"
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"\n [1] textDocument_didSave_notification(params::"
[DEBUG][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:454	"rpc.receive"	{  jsonrpc = "2.0",  method = "window/showMessage",  params = {    message = "Julia Extension: Please contact us! Your extension just crashed with a bug that we have been trying to replicate for a long time. You could help the development team a lot by contacting us at https://github.com/julia-vscode/julia-vscode so that we can work together to fix this issue.",    type = 1  }}
[TRACE][2022-07-13 16:38:40] .../lua/vim/lsp.lua:792	"notification"	"window/showMessage"	{  message = "Julia Extension: Please contact us! Your extension just crashed with a bug that we have been trying to replicate for a long time. You could help the development team a lot by contacting us at https://github.com/julia-vscode/julia-vscode so that we can work together to fix this issue.",  type = 1}
[TRACE][2022-07-13 16:38:40] ...lsp/handlers.lua:488	"default_handler"	"window/showMessage"	{  ctx = '{\n  client_id = 6,\n  method = "window/showMessage"\n}',  result = {    message = "Julia Extension: Please contact us! Your extension just crashed with a bug that we have been trying to replicate for a long time. You could help the development team a lot by contacting us at https://github.com/julia-vscode/julia-vscode so that we can work together to fix this issue.",    type = 1  }}
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"LanguageServer.DidSaveTextDocumentParams"
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	", server::LanguageServerInstance, conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint})\n   @ LanguageServer "
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"~/.data/julia/packages/LanguageServer/0vsx2/src/requests/"
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"textdocument.jl:50\n [2] "
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	'(::LanguageServer.var"#98#99"{typeof(LanguageServer.textDocument_didSave_notification), LanguageServerInstance})'
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"(conn::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, params::LanguageServer.DidSaveTextDocumentParams)\n   @ LanguageServer ~/.data/julia/packages/LanguageServer/0vsx2/src/languageserverinstance.jl:262\n [3] "
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"dispatch_msg(x::JSONRPC.JSONRPCEndpoint{Base.PipeEndpoint, Base.PipeEndpoint}, dispatcher::JSONRPC.MsgDispatcher, msg::"
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"Dict{String, Any})\n   @ "
[ERROR][2022-07-13 16:38:40] .../vim/lsp/rpc.lua:420	"rpc"	"julia"	"stderr"	"JSONRPC ~/.data/julia/packages/JSONRPC/P0G1p/src/typed.jl:67\n [4] run(server::LanguageServerInstance)\n   @ LanguageServer ~/.data/julia/packages/LanguageServer/0vsx2/src/languageserverinstance.jl:382\n [5] top-level scope\n   @ none:31\n"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions