microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
913 stars 133 forks source link

There is now way to get rid of some "unresolved imports" #2032

Open charles-dexter-ward opened 4 years ago

charles-dexter-ward commented 4 years ago

Environment data

Expected behaviour

Al custom imported packages should be found.

Actual behaviour

Some custom imported packages are treated as "unresolved imports", some others no.

Steps to reproduce:

  1. XXX image

Logs

I tried to use every known (to me) settings to define the PYTHONPATH:

"terminal.integrated.env.windows": {"PYTHONPATH": .....} "python.envFile": "python.autoComplete.extraPaths": [ ..... ]

but some packages are always "unresolved imports"

In the image above, for example, _utils is found but not bp001_tbutenti. Even if both the folders are in the PYTHONPATH in every possible known setting.

MikhailArkhipov commented 4 years ago

Have you looked into https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warnings by any chance?

charles-dexter-ward commented 4 years ago

Yes I have tried both envFile file and autoComplemete.extraPaths without success.