mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-20 04:47:14 +08:00
display errors (caused problems with pydoc)
This commit is contained in:
1 parent
1e3e8e1aec
commit
8fe0bac319
2 files changed
+4
-1
No files matched your search
+1
-1
Submodule jedi updated: bddd097b93...6a8b160e1b.
@@ -61,6 +61,9 @@ import os
|
|||||||
from os.path import dirname, abspath, join
|
from os.path import dirname, abspath, join
|
||||||
sys.path.insert(0, join(dirname(dirname(abspath(vim.eval('expand("<sfile>")')))), 'jedi'))
|
sys.path.insert(0, join(dirname(dirname(abspath(vim.eval('expand("<sfile>")')))), 'jedi'))
|
||||||
|
|
||||||
|
# to display errors correctly
|
||||||
|
import traceback
|
||||||
|
|
||||||
# update the sys path to include the jedi_vim script
|
# update the sys path to include the jedi_vim script
|
||||||
sys.path.append(dirname(abspath(vim.eval('expand("<sfile>")'))))
|
sys.path.append(dirname(abspath(vim.eval('expand("<sfile>")'))))
|
||||||
import jedi_vim
|
import jedi_vim
|
||||||
|
|||||||
Reference in new issue
Block a user