environment_path needs to be defined properly

This commit is contained in:
Dave Halter
2020-07-30 18:37:27 +02:00
parent 2949389be4
commit 104d817f0c
2 changed files with 4 additions and 3 deletions

View File

@@ -35,6 +35,8 @@ let s:default_settings = {
\ 'popup_select_first': 1, \ 'popup_select_first': 1,
\ 'quickfix_window_height': 10, \ 'quickfix_window_height': 10,
\ 'force_py_version': "'auto'", \ 'force_py_version': "'auto'",
\ 'environment_path': "'auto'",
\ 'project_path': "'auto'",
\ 'smart_auto_mappings': 0, \ 'smart_auto_mappings': 0,
\ 'use_tag_stack': 1 \ 'use_tag_stack': 1
\ } \ }

View File

@@ -216,12 +216,11 @@ _current_project_cache = None, None
def get_project(): def get_project():
global _current_project_cache
vim_environment_path = vim_eval("g:jedi#environment_path") vim_environment_path = vim_eval("g:jedi#environment_path")
vim_project_path = vim_eval("g:jedi#project_path") vim_project_path = vim_eval("g:jedi#project_path")
cache_key = dict(project_path=vim_project_path, environment_path=vim_environment_path)
global _current_project_cache
cache_key = dict(project_path=vim_project_path, environment_path=vim_environment_path)
if cache_key == _current_project_cache[0]: if cache_key == _current_project_cache[0]:
return _current_project_cache[1] return _current_project_cache[1]