Comments (4)
master
now has what is essentially a complete rewrite. I'm going to close this for now, if this is still an issue, please reopen!
from symbolserver.jl.
This is still an issue and should be reopened. run
ing a LanguageServerInstance
in a scope without using SymbolServer
throws an UndefVarError
:
ERROR: UndefVarError: SymbolServer not defined
Stacktrace:
[1] deserialize_module(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:915
[2] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:812
[3] deserialize(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735
[4] deserialize_datatype(::Serialization.Serializer{IOStream}, ::Bool) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:1210
[5] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:788
[6] deserialize(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735
[7] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:795
[8] deserialize(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735
[9] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:838
[10] deserialize(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735
[11] deserialize at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:722 [inlined]
[12] #25 at /home/adam/.julia/packages/SymbolServer/vTGsB/src/SymbolServer.jl:171 [inlined]
[13] open(::SymbolServer.var"#25#26", ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./io.jl:298
[14] open at ./io.jl:296 [inlined]
[15] load_package_from_cache_into_store!(::SymbolServer.SymbolServerInstance, ::Base.UUID, ::Dict{Base.UUID,Pkg.Types.PackageEntry}, ::Dict{Symbol,SymbolServer.ModuleStore}) at /home/adam/.julia/packages/SymbolServer/vTGsB/src/SymbolServer.jl:170
[16] load_project_packages_into_store!(::SymbolServer.SymbolServerInstance, ::String, ::Dict{Symbol,SymbolServer.ModuleStore}) at /home/adam/.julia/packages/SymbolServer/vTGsB/src/SymbolServer.jl:142
[17] getstore(::SymbolServer.SymbolServerInstance, ::String, ::LanguageServer.var"#2#4"{LanguageServerInstance}, ::Nothing) at /home/adam/.julia/packages/SymbolServer/vTGsB/src/SymbolServer.jl:100
[18] macro expansion at /home/adam/.julia/packages/LanguageServer/mpNvN/src/languageserverinstance.jl:157 [inlined]
[19] (::LanguageServer.var"#1#3"{LanguageServerInstance})() at ./task.jl:358
┌ Warning: Tried to load Sodium but failed to load from disc, re-caching.
└ @ SymbolServer ~/.julia/packages/SymbolServer/vTGsB/src/SymbolServer.jl:179
ERROR: UndefVarError: SymbolServer not defined
Stacktrace:
[1] deserialize_module(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:915
[2] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:812
[3] deserialize(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735
[4] deserialize_datatype(::Serialization.Serializer{IOStream}, ::Bool) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:1210
[5] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:788
[6] deserialize(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735
[7] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:795
[8] deserialize(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735
[9] handle_deserialize(::Serialization.Serializer{IOStream}, ::Int32) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:838
[10] deserialize(::Serialization.Serializer{IOStream}) at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:735
[11] deserialize at /builddir/julia-1.4.1/usr/share/julia/stdlib/v1.4/Serialization/src/Serialization.jl:722 [inlined]
[12] #25 at /home/adam/.julia/packages/SymbolServer/vTGsB/src/SymbolServer.jl:171 [inlined]
[13] open(::SymbolServer.var"#25#26", ::String; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./io.jl:298
[14] open at ./io.jl:296 [inlined]
[15] load_package_from_cache_into_store!(::SymbolServer.SymbolServerInstance, ::Base.UUID, ::Dict{Base.UUID,Pkg.Types.PackageEntry}, ::Dict{Symbol,SymbolServer.ModuleStore}) at /home/adam/.julia/packages/SymbolServer/vTGsB/src/SymbolServer.jl:170
[16] load_project_packages_into_store!(::SymbolServer.SymbolServerInstance, ::String, ::Dict{Symbol,SymbolServer.ModuleStore}) at /home/adam/.julia/packages/SymbolServer/vTGsB/src/SymbolServer.jl:142
[17] getstore(::SymbolServer.SymbolServerInstance, ::String, ::LanguageServer.var"#2#4"{LanguageServerInstance}, ::Nothing) at /home/adam/.julia/packages/SymbolServer/vTGsB/src/SymbolServer.jl:100
[18] macro expansion at /home/adam/.julia/packages/LanguageServer/mpNvN/src/languageserverinstance.jl:157 [inlined]
[19] (::LanguageServer.var"#1#3"{LanguageServerInstance})() at ./task.jl:358
┌ Warning: Tried to load YAML but failed to load from disc, re-caching.
from symbolserver.jl.
My vague hope is that this is somehow related to serialization (which we are using), and that once we move to our own format for the cache, this problem will miraculously disappear :)
from symbolserver.jl.
I thought a bit more about this, and I'm fairly positive that the following explains what is going on:
In the symbol server process, we are serializing things onto disc using Julia serialization. When we deserialize in the LS process, it probably is looking for the types that should be materialized in the Main.SymbolServer
module, and not in Main.LanguageServer.SymbolServer
.
I think the proper way to fix this is to move to our own custom format rather sooner than later, i.e. get #155 ready for merging.
from symbolserver.jl.
Related Issues (20)
- Methods of a single function are missing or scattered across modules HOT 13
- Plans to move caching into the cloud HOT 3
- Hover offers wrong method definitions for `Core` functions HOT 1
- Incorrect deprecation warnings HOT 2
- SymbolServer does not create the store HOT 1
- TagBot trigger issue HOT 14
- Cloud hosting HOT 7
- Fall back to older Julia versions during cloud indexing
- Index Julia base and stdlib in the cloud
- Small change in Pkg internals in 1.6.2. HOT 2
- Error in Julia 1.7: DataType has no field isconcretetype
- Cannot start coc-julia using 1.6.2 HOT 2
- Indexing during pre-compilation HOT 1
- SymbolServer.jl can't find `SHA` HOT 18
- Checksum/sanity checks for cache files HOT 1
- Improve cache download behvaiour HOT 2
- [speculative] Store cache files in bundle HOT 3
- lots of files not found HOT 3
- Segfault scanning package that depends on CondaPkg / PythonCall HOT 1
- Extreme inefficiency in main server loop HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symbolserver.jl.