New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
searchImport not finding modules #5843
Comments
you need to use due to perf reason, we only index top level symbols by default. Just remember, the deeper you go (more submodules), the bigger the performance hit you get (more symbols to show, more files to scan/index). Also, take a look at other option and command around persisting indices and clearing persisted indices. |
I do already have that variable set:
|
As well as these other settings:
|
I see. then if you can share repro steps or at least repro step would be best, if not, the log and probably where your package is installed and every setting you have if it is not included in the log already. |
I dont have enough information yet to provide a reproducible example, but to first describe the issue:
I'm observing that VSCode quick-fix and autoimport functionality are unable to find symbols in a specific python package installed as a dependency in a virtualenv for the project I'm working on. However, once I manually import the module, vscode recognizes it / is able to jump to the source / etc (in other words, once it's told to import the module, everything works as expected). This has only recently become an issue afaik, but is still working for other installed python packages.
When prompted to "search for additional import matches", it is able to find the root name of the package in question but no submodules/symbols below that.
Is it possible to print the search paths that
searchImports
is using to try to debug further to provide more information here? Currently have pylance/python log levels set totrace
but nothing interesting is popping up.Environment data
The text was updated successfully, but these errors were encountered: