question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Python auto completion doesn't work with $project_path config

See original GitHub issue

I’ve set this config in my jedi-user config:

{
    "python_interpreter": "$project_path/venv/bin/python"
}

But it can’t find installed packages on project venv, so auto completion doesn’t work. Note: each project has its own venv directory. for example:

Workspace/project1/venv
Workspace/projectN/venv

Thanks in advanced.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:17 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
srusskihcommented, Feb 9, 2018

changes reverted 😃 happy coding 😃

1reaction
srusskihcommented, Feb 8, 2018

what i’m trying to figure out is if the pluging uses python from settings or not. daemon.py should be run with a python from virtualenv. so, when completion first time triggered, daemon should be run as a subprocess and we can find out what options was passed to

Read more comments on GitHub >

github_iconTop Results From Across the Web

pycharm code completion doesn't work for file not in project ...
First, check if code completion is turned on. Go to File->Settings->Editor->General->Code Completion and see if there is checkmark next to Show ...
Read more >
Autocomplete fails with paths listed in PYTHONPATH via .env ...
Actual behavior. Auto complete does not work properly with additional packages listed in PYTHONPATH added via the .env file. Expected behavior.
Read more >
Autocomplete | Python in Visual Studio Code
1. Intellisense/Autocompletion not working for custom modules · Cause: The path to the python executable is incorrect. Solution: Configure the path to the...
Read more >
Code completion | PyCharm Documentation - JetBrains
Invoking Basic code completion for the second time shows the names of classes, functions, modules, and variables in the entire project, ...
Read more >
Fix Python Relative Imports and Auto-completion in VSCode
In this video, you will learn how to properly handle Python relative imports without extending the sys. path. Additionally, you will learn ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found