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

Symbol server never responds? #14

Closed
NightMachinery opened this issue May 20, 2020 · 6 comments
Closed

Symbol server never responds? #14

NightMachinery opened this issue May 20, 2020 · 6 comments

Comments

@NightMachinery
Copy link

It gets stuck for me on

julia --startup-file=no  --project=/Users/evar/.emacs.d.doom/.local/straight/build/eglot-jl/ /Users/evar/.emacs.d.doom/.local/straight/build/eglot-jl/eglot-jl.jl
┌ Info: Running language server
│   env = "/Users/evar/.emacs.d.doom/.local/straight/build/eglot-jl/Project.toml"
│   src_path = "/Users/evar/Base/_Code/uni/stochastic"
│   project_path = "/Users/evar/.julia/environments/v1.4"
└   depot_path = ""

I have tried without --startup-file=no, too, same result. It's been for more than an hour.

@non-Jedi
Copy link
Owner

non-Jedi commented May 20, 2020

Could you post what you see in M-x eglot-events-buffer when running eglot on the intended file (with eglot-connect-timeout set to 300 or so)? It may be that the logging from the SymbolServer doesn't work quite how I expect. How many packages do you have installed in your v1.4 environment?

@NightMachinery
Copy link
Author

NightMachinery commented May 20, 2020

@non-Jedi I don't think that's the case, as I saw the timeout message in emacs, too (I had set the timeout to 600 seconds.) But here it is: https://gist.github.com/non-Jedi/56d3949224a7e1100a56dfdd4836570c

@non-Jedi
Copy link
Owner

That event log shows that the language server is working as expected albeit possibly without having the symbols ready for packages installed in the v1.4 environment. How many packages do you have installed in your default v1.4 environment? And is there eglot functionality that isn't working that you expect to work?

My best guess is that the symbol server is still indexing packages which can literally take hours; you can watch this process by looking at /Users/evar/.julia/packages/SymbolServer/vTGsB/store which the symbol server should slowly populate with files with the .jstore extension.

@ffevotte
Copy link
Collaborator

If julia-vscode/LanguageServer.jl#707 gets merged, then we could have a sense of the package indexing progress by looking at eglot's event buffer.

@non-Jedi
Copy link
Owner

non-Jedi commented Jun 1, 2020

Hi @NightMachinary, feel free to reopen if eglot isn't providing some functionality that you expect, but right now this just looks like the symbol server taking a long time to finish caching. If you're still having issues, the questions I asked above are a good place to start investigating.

@non-Jedi non-Jedi closed this as completed Jun 1, 2020
@NightMachinery
Copy link
Author

I'm happy to say that things are working just fine for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants