-
Notifications
You must be signed in to change notification settings - Fork 284
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
Cannot LspRename #218
Comments
Are you able to get me the stderr of the python language server? Seems like the log you linked just includes the vim-lsp logs. |
I have So, I tried to add this to the configuration in if executable('pyls')
" pip install python-language-server
au User lsp_setup call lsp#register_server({
\ 'name': 'pyls',
\ 'cmd': {server_info->['pyls', '--verbose', '--log-file', '/tmp/pyls-log.txt']},
\ 'whitelist': ['python'],
\ })
endif And attached is both pyls-log.txt and vim-lsp.log. |
@mcepl could you try |
That's really weird, the pyls log just stops abruptly, and the vim log claims python exited 1. I'll try and reproduce |
Still doesn’t work even with python-language-server 0.14.0, latest vim-lsp and vim 8.0.1520. |
A strange thing is that I cannot rename that attribute even with VSCode (1.20.1-1518536126, ms-python.python 2018.1), does it use this language server as well (but some its private copy, right? Not the I am not sure, where to find debugging logs from VSCode, vim ones are pyls-log.txt and vim-lsp.log. |
When trying to use autozimu/LanguageClient-neovim (with vim8), I get same results like with VS Code (I can rename |
Any updates? Still experiencing this issue with autozimu/LanguageClient-neovim autozimu/LanguageClient-neovim#46 |
I'm also running into errors when I try to rename using the |
This appears to be a result of a) how line numbers get serialized and b) the types that |
Renaming now works for me on Emacs, but it's really really slow. |
My experience is that rename sometimes works, and sometimes doesn't. When it doesn't, my LSP client informs me that there has been a timeout. I dug around a little bit and it seems that the I tried dill-pickling the I noticed this tends to happen when trying to rename in ad-hoc scripts which live in directories alongside a lot of other (possibly unrelated) stuff. In conventionally structured projects (libraries, apps), it tends to work fine, especially if they're on the smallish side. A workaround if you're writing an ad-hoc script is to place it in a directory on its own, then refactoring should be speedy, at least according to my experience. |
I also can't rename in Emacs. The error message says "Timeout while waiting for response". Any suggestion on how to fix this issue? |
Dunno If this is the same issue but when I try to |
Same issue here, any updates? |
issue still exists |
I have filed prabirshrestha/vim-lsp#61 but the maintainer there (@prabirshrestha) closed the bug on me blaming the server. Even when I upgraded python-language-server to the last release (0.12.1) I get the same reaction (this is the log): no error, but no change in the editor.
Using vim 8, python 3.4, on RHEL-7.
Any ideas, what's wrong?
The text was updated successfully, but these errors were encountered: