LanguageServer.jl
LanguageServer.jl copied to clipboard
Crash when using CBinding.jl
When using CBinding.jl
(or a package depending on it) the language server crashes when it tries to cache this package.
Steps to reproduce:
(test) pkg> add CBinding
(evenually restart the language server or activate the current environment)
The trace gives this message:
"[ Info: Will cache package CBinding (d43a6710-96b8-4a2d-833c-c424785e5374)
ERROR: LoadError: Failure to obtain a bits-type
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] bitstype(#unused#::Type{CBinding.libclang.var"c\"struct CXVirtualFileOverlayImpl\""})
@ CBinding ~/.julia/packages/CBinding/U3ykW/src/CBinding.jl:93
[3] fields(#unused#::Type{CBinding.libclang.var"c\"struct CXVirtualFileOverlayImpl\""})
@ CBinding ~/.julia/packages/CBinding/U3ykW/src/CBinding.jl:99
[4] fieldnames(#unused#::Type{CBinding.libclang.var"c\"struct CXVirtualFileOverlayImpl\""})
@ CBinding ~/.julia/packages/CBinding/U3ykW/src/aggregates.jl:34
[5] fieldcount(#unused#::Type{CBinding.libclang.var"c\"struct CXVirtualFileOverlayImpl\""})
@ CBinding ~/.julia/packages/CBinding/U3ykW/src/aggregates.jl:32
[6] fieldcount(#unused#::Type{CBinding.Cptr{CBinding.libclang.var"c\"struct CXVirtualFileOverlayImpl\""}})
@ CBinding ~/.julia/packages/CBinding/U3ykW/src/pointers.jl:64
[7] Main.SymbolServer.DataTypeStore(t::Any, parent_mod::Module, exported::Bool)
@ Main.SymbolServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/SymbolServer/src/symbols.jl:71
[8] symbols(env::Dict{Symbol, Main.SymbolServer.ModuleStore}, m::Module, allnames::Base.IdSet{Symbol}, visited::Base.IdSet{Module}; get_return_type::Bool)
@ Main.SymbolServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/SymbolServer/src/symbols.jl:414
[9] symbols(env::Dict{Symbol, Main.SymbolServer.ModuleStore}, m::Nothing, allnames::Base.IdSet{Symbol}, visited::Base.IdSet{Module}; get_return_type::Bool)
@ Main.SymbolServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/SymbolServer/src/symbols.jl:463
[10] symbols(env::Dict{Symbol, Main.SymbolServer.ModuleStore}, m::Nothing, allnames::Base.IdSet{Symbol}, visited::Base.IdSet{Module})
@ Main.SymbolServer ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/SymbolServer/src/symbols.jl:404
[11] top-level scope
@ ~/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/SymbolServer/src/server.jl:108
in expression starting at /Users/lackner/.vscode/extensions/julialang.language-julia-1.2.8/scripts/packages/SymbolServer/src/server.jl:1
",
"command": "symserv_crash"