Skip to content

python.autoComplete.extraPaths not working #2791

@ddor254

Description

@ddor254

Environment data

  • VS Code version: Version: 1.27.2
  • Extension version (available under the Extensions sidebar): XXX
  • OS and version: ubuntu 16.04 LTS
  • Python version (& distribution if applicable, e.g. Anaconda): Python 2.7.12

Actual behavior

paths in python.autoComplete.extraPaths does not work

Expected behavior

paths in python.autoComplete.extraPaths will behave same as adding the folder to sys.path

Steps to reproduce:

Create a ~/Desktop/extras folder.
Create a file named foobar.py in that folder containing def spam(): pass
Set python.autoComplete.extraPaths to point to the extras folder
import foobar; foobar. should have spam in its completion list.
getting [pylint] E0401:Unable to import extra and there is no completion.

I installed the latest VScode version , following this commit : #1471

still does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions