-
Notifications
You must be signed in to change notification settings - Fork 201
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
Rope autoimport doesn't work and cause all completion to not function #503
Comments
lsprel.log |
It also seem that it doesn't send the full text I type often.
Though hard to be sure. |
It's hard for me to understand what the issue here is. Can you Answer the following questions for clarity?
|
2 and 3: In fact, I get no suggestions at all even for same file variables. Unless I disable auto-import. I tried 3 different installations of pylsp with different python versions. What do you suggest to do? The log seems to suggest some valid suggestions even as I don't see them. PS does it matter that python version that runs pylsp and python3_host are different? |
Can you check again with the following setting:
Does that work? |
No, the entire plugin doesn't work in this case ( except diagnostics). Maybe it is related? I allowed both completion and code actions and for a sec it displayed the options.
I typed it at least 10 times, so I wonder why it only appeared once. Out of desperation I improved the implantation of nvim-pymode to use sqllite db , and probably will include your great scoring method. But your implementation is better. I don't understand how it doesn't work no matter what I do. |
Sorry to hear it still doesn’t work. Can you record your screen of the behavior? Everything just works fine on my end … |
https://drive.google.com/file/d/1XUNISIc83vcxI0R4CsR-NonNrJzvSP0A/view?usp=sharing (Trying to add project root doesn't solve it) |
@eyalk11 from the video, it seems the LS is broken. E.g. in 0:23, on line 18, it says Do you get any LSP errors when doing that again? |
I think it is related to the autosave , so it recalled a former expression. As you could see, in the second half, it worked really fine. |
I have the same issue. When I enable |
In my case, completions work but I dont see any coming for autoimports.
with the following config: pylsp = {
-- FIXME: does not work
plugins = {
rope_autoimport = { enabled = true, { completions = { enabled = true } } },
},
}, also, from LSP logs: |
I'm having the exact same issue described above. I don't see a bug-report template for this project, so I'll try and give all the context I think is relevant. Context
Relevant Config: config-with-rope.txt Here's a sample log file so that you can see that all plugins load successfully. Steps to reproduce
ExpectationStep (2) would cause an auto-complete window to show up. What happens insteadNo auto-complete window shows up. Misc NotesWhen Also, disabling |
So long and no solution. |
Yeah, I have python-lsp-server installed via 3.12, but I use 3.10 for all of my projects. However, even when I install and use python-lsp-server under the same 3.10 interpreter I use for my projects (or use the 3.12 interpreter that has the original LS install as my default interpreter), I get the results described above. In the 3.12 case, I installed pylsp using Nix home-manager. In the 3.10 case, I installed it using pip. |
Until the following issue is fixed, it's useless for completion, so basedpyright is taking over that plus all the other stuff it did already. python-lsp/python-lsp-server#503
I've discovered something: If I just enable |
I couldn't get autoimport to work. And when I try to enabled rope_autoimport, suddenly nothing works. It simply doesn't suggest anything (python).
version: 1.9.0
python-lsp-jsonrpc 1.1.2
python-lsp-server 1.9.0
When I did enabled it, I see it found some options
But I couldn't see them in the menu.
When I disable rope_autocomplete , it suddenly work (basic completion) .
Do you have an idea why? or direction?
Thanks
The text was updated successfully, but these errors were encountered: