-
Notifications
You must be signed in to change notification settings - Fork 32
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
Infinite "Tried to load PackageNames from disc, re-caching" loop #57
Comments
I can't reproduce this using SymbolServer directly. If I run the following, it works as expected. Something to do with its integration with LanguageServer.jl? using SymbolServer
ssp = SymbolServerProcess(environment="/home/adam/repos/ChemicalEngineeringToolbox.jl/")
packages = SymbolServer.getstore(ssp) EDIT: The empty string passed as the EDIT2: Actually, now I can't reproduce this at all. EDIT3: And Heisenbug is back again when running via |
Here's what I know:
All of this makes no sense to me as I'm doing exactly the same thing as LanguageServer.jl with |
It seems to be the bare |
This might be a duplicate of #54. |
Jumping in here in the hope that this helps: I can reproduce this in a pretty clean Julia environment by executing
That is, I get
in an endless stream. |
I'm also getting the same issue as this. Surprisingly, even with a very minimal environment
I still get an endless stream. |
I'm able to use LanguageServer in some projects with the following configuration steps. I don't fully understand why this works though, perhaps someone can shed some light. This snippet from my .vimrc is how I start let g:LanguageClient_serverCommands = {
\ 'julia': ['~/Applications/Julia-1.3.app/Contents/Resources/julia/bin/julia', '--startup-file=no', '--history-file=no', '-e', '
\ using LanguageServer;
\ p = joinpath(dirname(dirname(pathof(LanguageServer))), "contrib", "languageserver.sh");
\ run(`$p`);
\ '],
\ 'python': ['~/miniconda3/bin/pyls'],
\ } I had to change a line in $JULIABIN --project --startup-file=no --history-file=no -e \
"using LanguageServer; using Pkg; server = LanguageServer.LanguageServerInstance(stdin, stdout, $DEBUG, dirname(Pkg.Types.Context().env.project_file)); server.runlinter = true; run(server);" \
<&0 >&1 & i.e.,
I tried not using |
|
I don't know how to make the latest master work:
|
You certainly can't, we need to update LS to work with this version here before it is usable. Once we have a set of packages that works together nicely, I'll tag a whole round of new releases. |
After caches were finally created for the packages in #56, SymbolServer entered an infinite loop of
[ Info: Tried to load LinearAlgebra but failed to load from disc, re-caching.
with a bunch of different packages. Logs before I Ctrl-ced it:Versions:
The text was updated successfully, but these errors were encountered: