Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

textDocument/references method is timeout #86

Open
Xeite opened this issue Mar 24, 2020 · 5 comments
Open

textDocument/references method is timeout #86

Xeite opened this issue Mar 24, 2020 · 5 comments

Comments

@Xeite
Copy link

Xeite commented Mar 24, 2020

I changed to pyls to mspyls in spacemacs and found out xref functionality does not work anymore

lsp-request: Timeout while waiting for response. Method: textDocument/references.

Do I have to config anything to use it? Both of emacs and mspyls are master built.

Thank you

@seagle0128
Copy link
Collaborator

Please provide more details including OS version, Emacs version, package version, steps.

And please use vanilla Emacs, then set lsp-print-io to t and provide the logs here.

@Xeite
Copy link
Author

Xeite commented Apr 3, 2020

Sorry for incomplete request. I added some information and try to reproduce with minimal configuration.

Emacs: GNU Emacs 28.0.50 (build 1, x86_64-apple-darwin19.3.0, NS appkit-1894.30 Version 10.15.3 (Build 19D76)) of 2020-04-03
OS: osx Catalina
Package: lsp-python-ms 20200223.2136
python-langage-server: bbb110cc3dfa7dd32f1f32064e6bab6f0bd54fa9

lsp-log below

Found the following clients for /Users/yan/OpenStack/neutron/neutron/plugins/ml2/plugin.py: (server-id mspyls, priority -2)
The following clients were selected based on priority: (server-id mspyls, priority -2)
Analyzing in background, 49 items left...
Analyzing in background, 204 items left...
Analyzing in background, 117 items left...
Analyzing in background, 74 items left...
Analyzing in background, 27 items left...
Analyzing in background, 6 items left...
Analyzing in background, 1 items left...
Found the following clients for /Users/yan/OpenStack/neutron/neutron/plugins/ml2/db.py: (server-id mspyls, priority -2)
The following clients were selected based on priority: (server-id mspyls, priority -2)
Analyzing in background, 3 items left...
Analyzing in background, 1 items left...

It's weird that there is no log seems to be noticeable.

Also, I found relatively small codebase works well, and pyls works even in current problematic codebase. (http:https://github.com/openstack/neutron)

Thanks

@seagle0128
Copy link
Collaborator

I guess there are huge files/folders in the current folder. See FAQ.

@Xeite
Copy link
Author

Xeite commented Apr 6, 2020

@seagle0128 Does it consider virtualenv folder to be huge files? I don't see any specific files but them.

@seagle0128
Copy link
Collaborator

Unfortunately I couldn't reproduce this issue in my env.

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

No branches or pull requests

2 participants