SublimeJEDI: Python auto completion doesn't work with $project_path config
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.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 17 (9 by maintainers)
changes reverted 😃 happy coding 😃
what i’m trying to figure out is if the pluging uses python from settings or not.
daemon.pyshould 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 toI thought I know what I’m doing, going to write some test and review this old code (:
have pushed changes - 78736e3 @mortezaipo could you please check if it works for you?
oh my (: https://github.com/srusskih/SublimeJEDI/blob/master/sublime_jedi/utils.py#L311 it should be
$project_pathbut it is$packagesgoing to fix this today.