mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +08:00
environment_path needs to be defined properly
This commit is contained in:
@@ -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
|
||||||
\ }
|
\ }
|
||||||
|
|||||||
@@ -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]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user