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

Emacs frozens occasionally after call lsp-treemacs-call-hierarchy #72

Closed
huangfeiyu opened this issue Nov 6, 2020 · 8 comments
Closed

Comments

@huangfeiyu
Copy link

I experience this issue occasionally. After I call lsp-treemacs-call-hierarchy to try to check the call hierarchy of a method, emacs frozons immediately. When this issue occur, the emacs cpu usage increases to 15% and emacs keeps frozon. I have kill emacs manually. My emacs version is 26.1 the version with the debian 10. Thanks!

@huangfeiyu huangfeiyu changed the title Emacs frozons after occasionally after call lsp-treemacs-call-hierarchy Emacs frozons occasionally after call lsp-treemacs-call-hierarchy Nov 6, 2020
@nbfalcon
Copy link
Member

nbfalcon commented Nov 11, 2020

Does C-g work? That function calls lsp-request for "textDocument/prepareCallHierarchy", which works synchronously. If your language server takes a long time to respond, Emacs will appear stuck.

@huangfeiyu
Copy link
Author

C-g doesn't work, neither ESC-ESC-ESC, I have to kill emacs and lsp server manually. Can setting a timeout help? The issue occur occasionally.

@yyoncho
Copy link
Member

yyoncho commented Nov 12, 2020

have you tried to kill the language server?

@huangfeiyu
Copy link
Author

Yes, I tried to kill language server by using task manager. And after the server killed, emacs remains freeze.

@huangfeiyu huangfeiyu changed the title Emacs frozons occasionally after call lsp-treemacs-call-hierarchy Emacs frozens occasionally after call lsp-treemacs-call-hierarchy Nov 12, 2020
@SreenivasVRao
Copy link

Same behaviour seen with lsp-treemacs-references. I get "Refresh Completed" in the echo area and then emacs completely hangs. Have to force quit.

@huangfeiyu
Copy link
Author

The Issue may has something to do with Wind Move mode https://www.emacswiki.org/emacs/WindMove. Sometimes I experience the issue when I use Wind Move mode to switch to the hierarchy window, but if I use other-window command, it works fine.

@yyoncho
Copy link
Member

yyoncho commented Jan 30, 2021

I think that the root cause was fixed as part of 642e922 please reopen if you still lsee it.

@yyoncho yyoncho closed this as completed Jan 30, 2021
@huangfeiyu
Copy link
Author

Great! @yyoncho thanks!

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

4 participants