- Notifications
You must be signed in to change notification settings - Fork220
Is auto-import supposed to work with 3rd party packages?#355
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I have rope auto-import enabled and it works for built-in functions and classes. For instance, if I type I made sure to activate the virtual environment with Flask installed before opening Neovim. So my question is, is this expected behavior or is there something wrong with my setup? Thanks. Pylsp version: 1.7.1 |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 3 comments 3 replies
-
Alright, I figured it out. I forgot to update the For those interested, I added this to my project
|
BetaWas this translation helpful?Give feedback.
All reactions
-
@rstcruzo, thanks for mentioning a solution! @bagel897, is there something we could about this on pylsp directly? |
BetaWas this translation helpful?Give feedback.
All reactions
-
Pylsp would need to run in the same virtual environment/be installed there. Otherwise you can pass the environment as a parameter to initialize the rope project in workspace.py |
BetaWas this translation helpful?Give feedback.
All reactions
-
Yeah, that's what I was thinking. Users could send a didChangeConfiguration to set their current interpreter for the Rope project we use for refactorings. |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I would hold off on doing the didChangeConfiguration part untilthis issue and maybethis PR are resolved for speed/consistency reasons. Bit busy rn but shouldn't be too hard for someone to implement. First, I'd implement a general environment path for pylsp, possibly with PEP 582 support. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
Has there been any update with this topic? I'm interested ☻ |
BetaWas this translation helpful?Give feedback.