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 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.
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.promptis returned by rope to auto import it, but theprompt_toolkit.completion.Completeris not.prompt_toolkit.history.FileHistoryis listed too. So the behavior is inconsistent.Seems to me that rope is not able to autoimport from folders inside the prompt_toolkit, since
completionis a folder,historyis 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.