Skip to content

Settings "python.autoComplete.extraPaths" support GLOB wildcard #5838

Closed

Description

@r-bit-rry

We use a local eggs folder for each projects which stores all the dependencies for that project.
However when I specify the path to this eggs folder, autocomplete does not recognize the underlying packages folders (unless I specify each one manually).
This can be solved by GLOB pattern/wildcard support.

for example this is what I specify that works:
"python.autoComplete.extraPaths": [ "${workspaceFolder}/src", "${workspaceFolder}/eggs/pycparser-2.19-py2.7.egg", "${workspaceFolder}/eggs/asn1crypto-0.24.0-py2.7.egg", "${workspaceFolder}/eggs/ipaddress-1.0.22-py2.7.egg"]
And this doesn't work:
"python.autoComplete.extraPaths": [ "${workspaceFolder}/src", "${workspaceFolder}/eggs"]

Activity

  1. ghost added
    triage-neededNeeds assignment to the proper sub-team
    on May 30, 2019
  2. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on May 30, 2019
  3. DonJayamanne commented on May 30, 2019

    @DonJayamanne

    Does intellisense not work when you use the new MS Language Server?
    To enable this, please go into settings.json and add the following setting "python.jediEnabled": false

  4. r-bit-rry commented on Jun 2, 2019

    @r-bit-rry
    Author

    jediEnabled is set to false, I made sure on MS Language Server is working and that it is the only one working. The intellisense is not working (specifically go to definition) and the import of libraries is underlined as "can not import".
    Thanks for addressing this issue.

  5. jakebailey commented on Jun 24, 2019

    @jakebailey
    Member

    With microsoft/python-language-server#1183, this should be fixed. Stable has been updated past that PR.

  6. DonJayamanne commented on Jun 24, 2019

    @DonJayamanne
  7. jakebailey commented on Jun 24, 2019

    @jakebailey
  8. jakebailey commented on Jun 24, 2019

    @jakebailey
    Member

    Roy Belio (@r-bit-rry) would be better to clarify, of course. 🙂

  9. luabud commented on Jul 2, 2019

    @luabud
    Member

    Thanks for the suggestion but we're not going to do this for now

  10. 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

    area-intellisenseLSP-related functionality: auto-complete, docstrings, navigation, refactoring, etc.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