-
Notifications
You must be signed in to change notification settings - Fork 34
Fix UndefVarError for PkgEntry #296
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
base: master
Are you sure you want to change the base?
Conversation
Fixes julia-vscode#294. The language server showed this log: ``` ┌ Error: Symbol cache downloading: Failed to identify which packages to omit based on the General registry. │ All packages will be processsed locally │ err = │ UndefVarError: `PkgEntry` not defined in `SymbolServer` │ Suggestion: check for spelling errors or missing imports. └ @ SymbolServer ``` This UndefVarError lead to always erroring on the side of caution as mentioned here: https://github.com/julia-vscode/SymbolServer.jl/blob/2201c26a43013a7bf71b4829ee4967e072070cab/src/SymbolServer.jl#L114-L122
Thanks! |
@pfitzseb could you please merge this? The issue also has a side effect of always writing Pkg logs to |
Would be great to have this merged. |
This doesn't actually fix the issue on 1.6 or earlier:
|
return reg["packages"] | ||
end | ||
return Dict{UUID, PkgEntry}() | ||
return Dict{String, Any}() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now this empty Dict is the same type as reg["packages"]
. The difference was already handled in remove_non_general_pkgs!
.
Ok I've addressed that now. Running this code locally still results in See also this discussion: #263 (comment) How can we better find the General registry? |
Related to #294, avoids always processing all packages locally when using a custom JULIA_DEPOT_PATH.
The language server showed this log:
This UndefVarError lead to always erroring on the side of caution as mentioned here:
SymbolServer.jl/src/SymbolServer.jl
Lines 114 to 122 in 2201c26
EDIT: it doesn't seem to solve the whole problem.