emacs-lsp / lsp-python-ms

lsp-mode :heart: Microsoft's python language server
https://emacs-lsp.github.io/lsp-python-ms
BSD 3-Clause "New" or "Revised" License
190 stars 41 forks source link

textDocument/references method is timeout #86

Open Xeite opened 4 years ago

Xeite commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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://github.com/openstack/neutron)

Thanks

seagle0128 commented 4 years ago

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

Xeite commented 4 years ago

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

seagle0128 commented 4 years ago

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