Skip to content

Missing symbols in autoimport.db #687

@lieryan

Description

@lieryan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    autoimportbugUnexpected or incorrect user-visible behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions