Python-language-server: hi can u please help me with the fact that VC cant recognize application without

Created on 27 Aug 2019  路  5Comments  路  Source: microsoft/python-language-server

editing settings.json

attaching the following in order to solve the issue

  1. the issue ->
    image
  2. solving by adding .env file to the root folder including PYTHONPATH=FOLDER
    image
  3. adding pythonenvfile to settings.json ->
    image
  4. restart VC

WHAT AM I MISSING OR DOING WRONG ???

Most helpful comment

You've already opened two issues about this (#1474, #1475). It's best to reuse the same issue rather than creating a new one for every message.

As previously mentioned, the troubleshooting guide says you can use extraPaths or PYTHONPATH to set an import root; django_level_five is not a folder in your workspace.

I think you're looking for something like:

"python.autoComplete.extraPaths": ["./learning_users"]

or

PYTHONPATH=./learning_users

As your imports are like import basic_app.models, which are contained within learning_users.

All 5 comments

You've already opened two issues about this (#1474, #1475). It's best to reuse the same issue rather than creating a new one for every message.

As previously mentioned, the troubleshooting guide says you can use extraPaths or PYTHONPATH to set an import root; django_level_five is not a folder in your workspace.

I think you're looking for something like:

"python.autoComplete.extraPaths": ["./learning_users"]

or

PYTHONPATH=./learning_users

As your imports are like import basic_app.models, which are contained within learning_users.

Does it work with the configuration above? Thanks.

Closing, feel free to reopen if still a problem.

Does it work with the configuration above? Thanks.

no its not working

@SnehashishGiri - it is several months old issue from a different account. If you see something similar, it does not mean the case is the same. Feel free to open a separate issue.

Was this page helpful?
0 / 5 - 0 ratings