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 when using CBinding.jl #1095

Open
MLackner opened this issue May 24, 2022 · 2 comments
Open

Crash when using CBinding.jl #1095

MLackner opened this issue May 24, 2022 · 2 comments
Labels

Comments

@MLackner
Copy link

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" 
@rossviljoen
Copy link

The reason for this crash is explained here: analytech-solutions/CBinding.jl#127

@rossviljoen
Copy link

Fixed upstream: analytech-solutions/CBinding.jl#127 (comment)

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

3 participants