Skip to content

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

Closed

Description

@karrtikr

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.

Activity

  1. jakebailey commented on Jun 7, 2019

    @jakebailey
    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.

  2. luabud commented on Jul 2, 2019

    @luabud
    Member

    Closing in favour of #924

  3. locked as resolved and limited conversation to collaborators on Jul 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions