Is auto-import supposed to work with 3rd party packages? #355
rodrigoscc
started this conversation in
General
Replies: 3 comments 2 replies
-
Alright, I figured it out. I forgot to update the For those interested, I added this to my project
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@rstcruzo, thanks for mentioning a solution! @bagel897, is there something we could about this on pylsp directly? |
Beta Was this translation helpful? Give feedback.
0 replies
-
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 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have rope auto-import enabled and it works for built-in functions and classes. For instance, if I type
ip_ad
, theipaddress.ip_address
function will be listed in the completion popup, and if I pick it, it will be automatically imported. However, if I typeMethodView
, I don't seeflask.views.MethodView
listed in the completion popup.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
Neovim: 0.8.3
Beta Was this translation helpful? Give feedback.
All reactions