You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by rstcruzo April 6, 2023
Hey everyone. I have been using rope with pylsp for a couple of days and noticed something odd. Autoimport suggestions contain my virtual env packages if I add the virtual env site-packages folder to the python_path preference. That's okay, but seems like rope does not scan all subfolders to generate autoimports.
For instance, I'm using prompt_toolkit, and the prompt_toolkit.prompt is returned by rope to auto import it, but the prompt_toolkit.completion.Completer is not. prompt_toolkit.history.FileHistory is listed too. So the behavior is inconsistent.
Seems to me that rope is not able to autoimport from folders inside the prompt_toolkit, since completion is a folder, history is a python file. Is this expected? or is there any configuration I can set to fix this?
I also checked the autoimport.db file and looks like the folders of prompt_toolkit are missing from there too.
The text was updated successfully, but these errors were encountered:
Discussed in #685
Originally posted by rstcruzo April 6, 2023
Hey everyone. I have been using rope with pylsp for a couple of days and noticed something odd. Autoimport suggestions contain my virtual env packages if I add the virtual env site-packages folder to the python_path preference. That's okay, but seems like rope does not scan all subfolders to generate autoimports.
For instance, I'm using
prompt_toolkit
, and theprompt_toolkit.prompt
is returned by rope to auto import it, but theprompt_toolkit.completion.Completer
is not.prompt_toolkit.history.FileHistory
is listed too. So the behavior is inconsistent.Seems to me that rope is not able to autoimport from folders inside the prompt_toolkit, since
completion
is a folder,history
is a python file. Is this expected? or is there any configuration I can set to fix this?I also checked the autoimport.db file and looks like the folders of prompt_toolkit are missing from there too.
The text was updated successfully, but these errors were encountered: