Jedi-vim: Unable to go to definition using jedi-vim plugin on packages installed using pip install --user

Created on 11 Oct 2017  ·  13Comments  ·  Source: davidhalter/jedi-vim

Issue

I am able to _goto definitions_ of functions imported from a package using jedi-vim for packages in following directory:

/usr/lib64/python2.7/site-packages/

However for packages installed in the following directory, using pip install --user package_name, goto definition fails with error: jedi-vim: Couldn't find any definitions for this.

$HOME/.local/lib/python2.7/site-packages

Do I need additional configuration with jedi-vim to make sure that it jumps the definition even for packages installed in $HOME/.local/lib/python2.7/ directory?

Steps to reproduce

  1. Install any python package using:
    pip install --user <package_name>
  2. Import any function from the package.
  3. Use _goto definition_ feature on the imported function.

Content of vimrc

filetype plugin indent on
let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
set conceallevel=2
set concealcursor=vin
let g:clang_snippets=1
let g:clang_conceal_snippets=1
let g:clang_snippets_engine='clang_complete'
set completeopt=menu,menuone
set pumheight=20
let g:ycm_python_binary_path = 'python'

"disable YCM for python
let g:ycm_filetype_specific_completion_to_disable = {
\ 'python': 1
}

Output of “:verbose JediDebugInfo”

Jedi-vim debug information

Using Python version: 3

  • sys.version: 3.5.2 (default, Sep 14 2017, 22:51:06), [GCC 5.4.0 20160609]
  • site module: /usr/lib/python3.5/site.py
    Jedi path: $HOME/.vim/bundle/jedi-vim/pythonx/jedi/jedi/__init__.py
  • version: 0.10.2
  • sys_path:

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/OmniSharpServer

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/bottle

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/argparse

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/racerd

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/waitress

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/frozendict

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/requests

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/JediHTTP

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/tern_runtime

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/godef

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/gocode

    • $HOME/.vim/bundle/YouCompleteMe/third_party/pythonfutures

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd

    • $HOME/.vim/bundle/YouCompleteMe/third_party/requests-futures

    • $HOME/.vim/bundle/YouCompleteMe/python/ycm/../../third_party/ycmd

    • $HOME/.vim/bundle/YouCompleteMe/autoload/../python

    • /usr/lib/python35.zip

    • /usr/lib/python3.5

    • $HOME/.vim/bundle/YouCompleteMe/third_party/ycmd/third_party/python-future/src

    • /usr/lib/python3.5/plat-x86_64-linux-gnu

    • /usr/lib/python3.5/lib-dynload

    • $HOME/.local/lib/python3.5/site-packages

    • /usr/local/lib/python3.5/dist-packages

    • /usr/lib/python3/dist-packages

    • _vim_path_

  • jedi-vim git version: 0.8.0-94-gddaec56
  • jedi git submodule status: 5427b02712828b2875d35b5ee1c8b5e58f820537 pythonx/jedi (v0.10.2)
Settings
  omnifunc=
  completeopt=menuone
    Last set from ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim

:version

VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Nov 24 2016 16:44:48)
Included patches: 1-1689
Extra patches: 8.0.0056
Modified by [email protected]
Compiled by [email protected]
Huge version with GTK2-GNOME GUI.  Features included (+) or not (-):
+acl             +conceal         +file_in_path    +linebreak       -mouse_sysmouse  +python3         +tcl             +wildmenu
+arabic          +cryptv          +find_in_path    +lispindent      +mouse_urxvt     +quickfix        +terminfo        +windows
+autocmd         +cscope          +float           +listcmds        +mouse_xterm     +reltime         +termresponse    +writebackup
+balloon_eval    +cursorbind      +folding         +localmap        +multi_byte      +rightleft       +textobjects     +X11
+browse          +cursorshape     -footer          +lua             +multi_lang      +ruby            +timers          -xfontset
++builtin_terms  +dialog_con_gui  +fork()          +menu            -mzscheme        +scrollbind      +title           +xim
+byte_offset     +diff            +gettext         +mksession       +netbeans_intg   +signs           +toolbar         +xsmp_interact
+channel         +digraphs        -hangul_input    +modify_fname    +packages        +smartindent     +user_commands   +xterm_clipboard
+cindent         +dnd             +iconv           +mouse           +path_extra      +startuptime     +vertsplit       -xterm_save
+clientserver    -ebcdic          +insert_expand   +mouseshape      +perl            +statusline      +virtualedit     +xpm
+clipboard       +emacs_tags      +job             +mouse_dec       +persistent_undo -sun_workshop    +visual          
+cmdline_compl   +eval            +jumplist        +mouse_gpm       +postscript      +syntax          +visualextra     
+cmdline_hist    +ex_extra        +keymap          -mouse_jsbterm   +printer         +tag_binary      +viminfo         
+cmdline_info    +extra_search    +langmap         +mouse_netterm   +profile         +tag_old_static  +vreplace        
+comments        +farsi           +libcall         +mouse_sgr       -python          -tag_any_white   +wildignore      
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
2nd user gvimrc file: "~/.vim/gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -pthread -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/freetype2 -D_REENTRANT -DORBIT2=1 -pthread -I/usr/include/libgnomeui-2.0 -I/usr/include/gnome-keyring-1 -I/usr/include/libbonoboui-2.0 -I/usr/include/libxml2 -I/usr/include/libgnome-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/orbit-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gail-1.0 -I/usr/include/libart-2.0 -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/x86_64-linux-gnu/gnome-vfs-2.0/include -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1      
Linking: gcc   -L. -Wl,-Bsymbolic-functions -Wl,-z,relro -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E  -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim   -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lgobject-2.0 -lglib-2.0 -lfontconfig -lfreetype  -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lgnome-2 -lpopt -lbonobo-2 -lbonobo-activation -lORBit-2 -lgnomecanvas-2 -lart_lgpl_2 -lgtk-x11-2.0 -lgdk-x11-2.0 -lpangocairo-1.0 -latk-1.0 -lcairo -lgio-2.0 -lpangoft2-1.0 -lpango-1.0 -lfontconfig -lfreetype -lgdk_pixbuf-2.0 -lgnomevfs-2 -lgconf-2 -lgthread-2.0 -lgmodule-2.0 -lgobject-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE  -lm -ltinfo -lnsl  -lselinux  -lacl -lattr -lgpm -ldl  -L/usr/lib -llua5.2 -Wl,-E  -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/x86_64-linux-gnu/perl/5.22/CORE -lperl -ldl -lm -lpthread -lcrypt  -L/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu -lpython3.5m -lpthread -ldl -lutil -lm -L/usr/lib/x86_64-linux-gnu -ltcl8.6 -ldl -lz -lpthread -lieee -lm -lruby-2.3 -lpthread -lgmp -ldl -lcrypt -lm     

:messages

Messages maintainer: Bram Moolenaar <[email protected]>
"~/.vimrc" 112L, 3549C
search hit BOTTOM, continuing at TOP
search hit BOTTOM, continuing at TOP
search hit BOTTOM, continuing at TOP
search hit BOTTOM, continuing at TOP

:scriptnames

  1: /usr/share/vim/vimrc
  2: /usr/share/vim/vim74/debian.vim
  3: /usr/share/vim/vim74/syntax/syntax.vim
  4: /usr/share/vim/vim74/syntax/synload.vim
  5: /usr/share/vim/vim74/syntax/syncolor.vim
  6: /usr/share/vim/vim74/filetype.vim
  7: ~/.vimrc
  8: /usr/share/vim/vim74/syntax/nosyntax.vim
  9: ~/.vim/colors/solarized.vim
 10: /usr/share/vim/vim74/ftoff.vim
 11: ~/.vim/bundle/Vundle.vim/autoload/vundle.vim
 12: ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
 13: /usr/share/vim/vim74/ftplugin.vim
 14: /usr/share/vim/vim74/indent.vim
 15: ~/.vim/plugin/auto-pairs.vim
 16: ~/.vim/plugin/cscope_maps.vim
 17: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
 18: ~/.vim/bundle/YouCompleteMe/plugin/youcompleteme.vim
 19: /usr/share/vim/vim74/plugin/getscriptPlugin.vim
 20: /usr/share/vim/vim74/plugin/gzip.vim
 21: /usr/share/vim/vim74/plugin/logiPat.vim
 22: /usr/share/vim/vim74/plugin/matchparen.vim
 23: /usr/share/vim/vim74/plugin/netrwPlugin.vim
 24: /usr/share/vim/vim74/plugin/rrhelper.vim
 25: /usr/share/vim/vim74/plugin/spellfile.vim
 26: /usr/share/vim/vim74/plugin/tarPlugin.vim
 27: /usr/share/vim/vim74/plugin/tohtml.vim
 28: /usr/share/vim/vim74/plugin/vimballPlugin.vim
 29: /usr/share/vim/vim74/plugin/zipPlugin.vim
 30: /usr/share/vim/vim74/scripts.vim
 31: /usr/share/vim/vim74/syntax/vim.vim
 32: /usr/share/vim/vim74/syntax/lua.vim
 33: /usr/share/vim/vim74/syntax/perl.vim
 34: /usr/share/vim/vim74/syntax/pod.vim
 35: /usr/share/vim/vim74/syntax/ruby.vim
 36: /usr/share/vim/vim74/syntax/python.vim
 37: /usr/share/vim/vim74/ftplugin/vim.vim
 38: /usr/share/vim/vim74/indent/vim.vim
 39: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
 40: ~/.vim/bundle/jedi-vim/autoload/jedi.vim

jedi-issue

Most helpful comment

I hope that I can tackle this once I add true support of virtual envs to Jedi.

All 13 comments

I hope that I can tackle this once I add true support of virtual envs to Jedi.

@chetalpatil
You have $HOME/.local/lib/python3.5/site-packages in sys.path..!
So you need to activate py2 in Jedi-vim.

@blueyed how do I activate py2?
I looked into _:help jedi-vim_, but couldn't find the relevant information.

@davidhalter Any word on when virtualenv support will be added to jedi-vim? Is this something I can help with?

I'm running into what looks like the same issue. I activated my virtualenv and launched vim from the virtualenv.

E.g.: When I try to find the definition for Sanic, it fails with "jedi-vim: Couldn't find any definition for this." It finds definitions in the python stdlib and in local packages. Here's what the imports look like:

# python stdlib - <leader>d works
import asyncio

# pip installed packages - <leader>d on Sanic doesn't work
from sanic import Sanic, response, request

# my own package (to clarify PYTHONPATH is not set) - <leader>d works
from lib.logging import StructuredLogger, FluentDHandler

Output of “:verbose JediDebugInfo”

Jedi-vim debug information

jedi-vim version
 - jedi-vim git version: 0.9.0-58-gc6f05cd
 - jedi git submodule status:  a79a1fbef57564d031c59f47def20a6d9adf3439 pythonx/jedi (v0.12.1)
 - parso git submodule status:  e6bc924fbabbfa3090044e475c91a7655b9c6e9b pythonx/parso (v0.3.1)
Global Python
Using Python version 3 to access Jedi.
 - global sys.version: `3.7.0 (default, Aug 17 2018, 21:14:48), [Clang 9.1.0 (clang-902.0.39.2)]`
 - global site module: `/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site.py`
Jedi
 - path: `/Users/vijay/.vim/bundle/jedi-vim/pythonx/jedi/jedi/__init__.py`
 - version: 0.12.1
Jedi environment:
 - executable: /Users/vijay/.local/share/virtualenvs/maestro-NtPEd066/bin/python3
 - sys_path:
    - `/Users/vijay/.local/share/virtualenvs/maestro-NtPEd066/lib/python37.zip`
    - `/Users/vijay/.local/share/virtualenvs/maestro-NtPEd066/lib/python3.7`
    - `/Users/vijay/.local/share/virtualenvs/maestro-NtPEd066/lib/python3.7/lib-dynload`
    - `/usr/local/Cellar/python/3.7.0/Frameworks/Python.framework/Versions/3.7/lib/python3.7`
    - `/Users/vijay/.local/share/virtualenvs/maestro-NtPEd066/lib/python3.7/site-packages`
Known environments
 - <Environment: 2.7.15 in /usr/local> (/usr/local/bin/python2.7)
Settings
g:jedi#force_py_version = 3 (default: 'auto')
g:jedi#use_tabs_not_buffers = 1 (default: 0)

  omnifunc=jedi#completions
        Last set from ~/.vimrc
  completeopt=menuone,preview
        Last set from ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim

:version

VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 22 2018 13:55:00)
macOS version
Included patches: 1-300
Compiled by Homebrew
Huge version without GUI.  Features included (+) or not (-):
+acl               +cursorbind        +insert_expand     +mouse_sgr         +ruby              +vartabs
+arabic            +cursorshape       +job               -mouse_sysmouse    +scrollbind        +vertsplit
+autocmd           +dialog_con        +jumplist          +mouse_urxvt       +signs             +virtualedit
+autochdir         +diff              +keymap            +mouse_xterm       +smartindent       +visual
-autoservername    +digraphs          +lambda            +multi_byte        +startuptime       +visualextra
-balloon_eval      -dnd               +langmap           +multi_lang        +statusline        +viminfo
+balloon_eval_term -ebcdic            +libcall           -mzscheme          -sun_workshop      +vreplace
-browse            +emacs_tags        +linebreak         +netbeans_intg     +syntax            +wildignore
++builtin_terms    +eval              +lispindent        +num64             +tag_binary        +wildmenu
+byte_offset       +ex_extra          +listcmds          +packages          +tag_old_static    +windows
+channel           +extra_search      +localmap          +path_extra        -tag_any_white     +writebackup
+cindent           +farsi             -lua               +perl              -tcl               -X11
-clientserver      +file_in_path      +menu              +persistent_undo   +termguicolors     -xfontset
+clipboard         +find_in_path      +mksession         +postscript        +terminal          -xim
+cmdline_compl     +float             +modify_fname      +printer           +terminfo          -xpm
+cmdline_hist      +folding           +mouse             +profile           +termresponse      -xsmp
+cmdline_info      -footer            -mouseshape        -python            +textobjects       -xterm_clipboard
+comments          +fork()            +mouse_dec         +python3           +timers            -xterm_save
+conceal           -gettext           -mouse_gpm         +quickfix          +title
+cryptv            -hangul_input      -mouse_jsbterm     +reltime           -toolbar
+cscope            +iconv             +mouse_netterm     +rightleft         +user_commands
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation:
clang -c -I. -Iproto -DHAVE_CONFIG_H   -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: clang   -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/openssl/lib -L/usr/local/
opt/readline/lib  -L/usr/local/lib -o vim        -lncurses -liconv -framework AppKit   -mmacosx-version-min=10.13 -fstack-prote
ctor-strong -L/usr/local/lib  -L/usr/local/Cellar/perl/5.28.0/lib/perl5/5.28.0/darwin-thread-multi-2level/CORE -lperl -lm -luti
l -lc  -L/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -framewor
k CoreFoundation  -lruby.2.5.1 -lobjc

:messages

Messages maintainer: Bram Moolenaar <[email protected]>
VIM - Vi IMproved 8.1 (2018 May 18, compiled Aug 22 2018 13:55:00)

<details><summary>:scriptnames</summary>
  1: ~/.vimrc
  2: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/vimrc_example.vim
  3: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/defaults.vim
  4: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/syntax/syntax.vim
  5: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/syntax/synload.vim
  6: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/syntax/syncolor.vim
  7: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/filetype.vim
  8: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/ftplugin.vim
  9: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/indent.vim
 10: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/colors/industry.vim
 11: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/ftoff.vim
 12: ~/.vim/bundle/Vundle.vim/autoload/vundle.vim
 13: ~/.vim/bundle/Vundle.vim/autoload/vundle/config.vim
 14: ~/.vim/bundle/vim-fugitive/ftdetect/fugitive.vim
 15: ~/.vim/bundle/vim-lawrencium/ftdetect/hgcommit.vim
 16: ~/.vim/bundle/vim-lawrencium/ftdetect/hgstatus.vim
 17: ~/.vim/bundle/vim-go/ftdetect/gofiletype.vim
 18: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/syntax/nosyntax.vim
 19: ~/.vim/bundle/jedi-vim/plugin/jedi.vim
 20: ~/.vim/bundle/SimpylFold/plugin/SimpylFold.vim
 21: ~/.vim/bundle/syntastic/plugin/syntastic/autoloclist.vim
 22: ~/.vim/bundle/syntastic/plugin/syntastic/balloons.vim
 23: ~/.vim/bundle/syntastic/plugin/syntastic/checker.vim
 24: ~/.vim/bundle/syntastic/plugin/syntastic/cursor.vim
 25: ~/.vim/bundle/syntastic/plugin/syntastic/highlighting.vim
 26: ~/.vim/bundle/syntastic/plugin/syntastic/loclist.vim
 27: ~/.vim/bundle/syntastic/plugin/syntastic/modemap.vim
 28: ~/.vim/bundle/syntastic/plugin/syntastic/notifiers.vim
 29: ~/.vim/bundle/syntastic/plugin/syntastic/registry.vim
 30: ~/.vim/bundle/syntastic/plugin/syntastic/signs.vim
 31: ~/.vim/bundle/syntastic/plugin/syntastic.vim
 32: ~/.vim/bundle/syntastic/autoload/syntastic/util.vim
 33: ~/.vim/bundle/ctrlp.vim/plugin/ctrlp.vim
 34: ~/.vim/bundle/ctrlp.vim/autoload/ctrlp/mrufiles.vim
 35: ~/.vim/bundle/vim-fugitive/plugin/fugitive.vim
 36: ~/.vim/bundle/vim-lawrencium/plugin/lawrencium.vim
 37: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium.vim
 38: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/addremove.vim
 39: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/annotate.vim
 40: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/cat.vim
 41: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/commit.vim
 42: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/diff.vim
 43: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/hg.vim
 44: ~/.vim/bundle/vim-lawrencium/resources/hg_usage.vim
 45: ~/.vim/bundle/vim-lawrencium/resources/hg_command_file_types.vim
 46: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/log.vim
 47: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/mq.vim
 48: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/record.vim
 49: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/revert.vim
 50: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/status.vim
 51: ~/.vim/bundle/vim-lawrencium/autoload/lawrencium/vimutils.vim
 52: ~/.vim/bundle/powerline/powerline/bindings/vim/plugin/powerline.vim
 53: ~/.vim/bundle/vim-dirdiff/plugin/dirdiff.vim
 54: ~/.vim/bundle/vim-go/plugin/go.vim
 55: ~/.vim/bundle/vim-go/autoload/go/config.vim
 56: ~/.vim/bundle/YouCompleteMe/plugin/youcompleteme.vim
 57: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/getscriptPlugin.vim
 58: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/gzip.vim
 59: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/logiPat.vim
 60: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/manpager.vim
 61: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/matchparen.vim
 62: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/netrwPlugin.vim
 63: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/rrhelper.vim
 64: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/spellfile.vim
 65: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/tarPlugin.vim
 66: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/tohtml.vim
 67: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/vimballPlugin.vim
 68: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/plugin/zipPlugin.vim
 69: /usr/local/Cellar/vim/8.1.0300/share/vim/vim81/pack/dist/opt/matchit/plugin/matchit.vim
 70: ~/.vim/bundle/syntastic/autoload/syntastic/log.vim
 71: ~/.vim/bundle/vim-fugitive/autoload/fugitive.vim
 72: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim
 73: ~/.vim/bundle/jedi-vim/autoload/jedi.vim

@vijayvaradan
Likely related to https://github.com/davidhalter/jedi/pull/1199.
Why the downvotes to my previous comment? :confused:

@blueyed - Downvoted in error (getting used to mac trackpad, buttons are separate on my Windows machine). Apologies. Removed.

@Statham-stone Your tone feels demotivating. Your of course entitled to your opinion, but if you except us to work for you, please pay us. This is open source software and you could even fix it yourself. Always happy to receive pull requests. It generally helps to be constructive. I'm not even sure what your issue is at this point, I just know that you are annoyed that we are not fixing everything in our free time.

If you just want to give an issue a push, use :+1: on the first comment of the issue, I occasionally sort by those.

However, Virtualenvs are supported now as are different Python versions, you could e.g. use :let jedi#force_py_version=3.7 to force usage of Python 3.7.

@Statham-stone Your tone feels demotivating. Your of course entitled to your opinion, but if you except us to work for you, please pay us. This is open source software and you could even fix it yourself. Always happy to receive pull requests. It generally helps to be constructive. I'm not even sure what your issue is at this point, I just know that you are annoyed that we are not fixing everything in our free time.

If you just want to give an issue a push, use on the first comment of the issue, I occasionally sort by those.

However, Virtualenvs are supported now as are different Python versions, you could e.g. use :let jedi#force_py_version=3.7 to force usage of Python 3.7.

I am really sorry for my words, and I apologize for that, I am very grateful that all of you spend your free time in this great vim plugin.

And I just find the solution, I will share the solution later.

Change all "safe=True" to "safe=False" in "~/.vim/bundle/jedi-vim/pythonx/jedi/jedi/api/environment.py" solved the problem for me, hope this will be useful for others.

I apologize sincerely to you again, for being so rude and disrespectful to you, and for taking everything for granted. @davidhalter

@Statham-stone

Change all "safe=True" to "safe=False" in "~/.vim/bundle/jedi-vim/pythonx/jedi/jedi/api/environment.py" solved the problem for me, hope this will be useful for others.

This should be obvious, but just in case: it is not really future compatible (except for when you want to carry this as a stash / local branch). And more importantly it might hide some other (config?) issue. It might be helpful to create a new issue (if there isn't one already), providing more information.
You certainly could try debugging why this is required for you (using print, writing to a file, or pdb).

It's all good, don't worry about it. Just wanted to make it clear that complaining does not help :)

It's great that you got it working. Are you using pyenv?

I use virtual env provided by Anaconda

Was this page helpful?
0 / 5 - 0 ratings