当我试图查找当前文件中不存在但存在于另一个文件中的函数定义时,这是一个特别的问题......这是我在尝试使用 Go To Definition 时看到的错误打印我正在使用 vim 7.4 with..... out of vim-version 粘贴在最后。它同时支持 +conceal 和 +python , -python3 ...如果有帮助...
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/__init__.py", line 230, in _eval_atom
return self.find_types(scope, atom, stmt.start_pos, search_global=True)
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/__init__.py", line 120, in find_types
return f.find(scopes, search_global)
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/debug.py", line 52, in wrapper
result = func(*args, **kwargs)
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/finder.py", line 87, in find
types = self._names_to_types(names, search_global)
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/finder.py", line 233, in _names_to_types
new_types = _name_to_types(self._evaluator, name, self.scope)
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/cache.py", line 41, in wrapper
rv = function(obj, *args, **kwargs)
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/finder.py", line 282, in _name_to_types
types += imports.ImportWrapper(evaluator, name).follow()
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/cache.py", line 41, in wrapper
rv = function(obj, *args, **kwargs)
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/imports.py", line 94, in follow
types = importer.follow()
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/cache.py", line 41, in wrapper
rv = function(obj, *args, **kwargs)
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/imports.py", line 252, in follow
return self._do_import(self.import_path, self.sys_path_with_modifications())
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/imports.py", line 281, in _do_import
bases = self._do_import(import_path[:-1], sys_path)
File "/Users/atjha/.vim/bundle/jedi-vim/jedi/jedi/evaluate/imports.py", line 316, in _do_import
**if module_path is None:
UnboundLocalError: local variable 'module_path' referenced before assignment**