Skip to content

Many users not aware that Python modules are not automatically resolved #5710

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

Closed
karrtikr opened this issue May 21, 2019 · 2 comments
Closed
Labels
feature-request Request for new features or functionality

Comments

@karrtikr
Copy link

karrtikr commented May 21, 2019

Many users are not aware that they need to explicitly create a .env file, with PYTHONPATH variable set to the relative location where modules need to be searched. This is generally interpreted as a bug.

The usual complaint is "I can run these python files fine but vscode is throwing warnings/errors"

Have to come up with a solution to resolve such python modules in vscode out of the box.

@karrtikr karrtikr added feature-request Request for new features or functionality feature-* labels May 21, 2019
@jakebailey
Copy link
Member

For reference, the LS has a new doc section that covers adding multiple roots via extraPaths: https://github.com/microsoft/python-language-server/blob/master/TROUBLESHOOTING.md#unresolved-import-warnings

But automatically generating this configuration or suggesting something would be a good idea if possible.

@luabud
Copy link
Member

luabud commented Jul 2, 2019

Closing in favour of #924

@luabud luabud closed this as completed Jul 2, 2019
@ghost ghost removed the needs decision label Jul 2, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jul 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants