New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Denite refuse to load at python2 vim8 with yarp #558

Closed
skt041959 opened this Issue Jan 9, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@skt041959
Copy link

skt041959 commented Jan 9, 2019

Problems summary

I'm using vim8 configured with python2. But I have installed yarp and configured it with Python3.
I can use deoplete in my vim8. But Denite refuse to load.

Expected

Denite can work with yarp in a python2 vim8

Environment Information (Required!)

  • denite version (SHA1): 65bce80

  • OS: linux

  • Vim/neovim version:

VIM - Vi IMproved 8.1 (2018 May 18, compiled Jun 19 2018 04:05:25)
Included patches: 1
Compiled by xxxx
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl +farsi +mouse_sgr -tag_any_white
+arabic +file_in_path -mouse_sysmouse -tcl
+autocmd +find_in_path +mouse_urxvt +termguicolors
-autoservername +float +mouse_xterm +terminal
+balloon_eval +folding +multi_byte +terminfo
+balloon_eval_term -footer +multi_lang +termresponse
+browse +fork() -mzscheme +textobjects
++builtin_terms +gettext +netbeans_intg +timers
+byte_offset -hangul_input +num64 +title
+channel +iconv +packages +toolbar
+cindent +insert_expand +path_extra +user_commands
+clientserver +job -perl +vertsplit
+clipboard +jumplist +persistent_undo +virtualedit
+cmdline_compl +keymap +postscript +visual
+cmdline_hist +lambda +printer +visualextra
+cmdline_info +langmap +profile +viminfo
+comments +libcall +python +vreplace
+conceal +linebreak -python3 +wildignore
+cryptv +lispindent +quickfix +wildmenu
+cscope +listcmds +reltime +windows
+cursorbind +localmap +rightleft +writebackup
+cursorshape -lua -ruby +X11
+dialog_con_gui +menu +scrollbind -xfontset
+diff +mksession +signs +xim
+digraphs +modify_fname +smartindent +xpm
+dnd +mouse +startuptime +xsmp_interact
-ebcdic +mouseshape +statusline +xterm_clipboard
+emacs_tags +mouse_dec -sun_workshop -xterm_save
+eval -mouse_gpm +syntax
+ex_extra -mouse_jsbterm +tag_binary
+extra_search +mouse_netterm +tag_old_static
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"
defaults file: "$VIMRUNTIME/defaults.vim"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/grid/common/pkgs/vim/v8.1/share/vim"
Compilation: gcc -std=gnu99 -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -std=gnu99 -L/usr/local/lib -Wl,--as-needed -o vim -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lelf -lnsl -lselinux -lacl -lattr -L/grid/common/pkgs/python/v2.7.6/lib/python2.7/config -lpython2.7 -lpthread -ldl -lutil -lm -Xlinker -export-dynamic

  • :checkhealth or :CheckHealth result(neovim only):

Provide a minimal init.vim with less than 50 lines (Required!)

" Your minimal init.vim
let g:python3_host_prog = '/usr/bin/python3'
call plug#begin()
Plug 'roxma/nvim-yarp'
Plug 'roxma/vim-hug-neovim-rpc'
Plug 'Shougo/denite.nvim'
call plug#end()

How to reproduce problems from neovim startup (Required!)

  1. start vim
  2. call :Denite grep
[denite] denite.nvim does not work with this version.
[denite] It requires Vim 8.0+ with Python3 support("+python3").

Generate a logfile if appropriate

Screenshot (if possible)

Upload the log file

@Shougo Shougo added the invalid label Jan 10, 2019

@Shougo

This comment has been minimized.

Copy link
Owner

Shougo commented Jan 10, 2019

denite.nvim depends on Python3.
You need to enable Python3 interface.

Note: Python2 will be no longer maintained.

@Shougo Shougo closed this Jan 10, 2019

@Shougo

This comment has been minimized.

Copy link
Owner

Shougo commented Jan 10, 2019

I'm using vim8 configured with python2. But I have installed yarp and configured it with Python3.

You need Vim8 configured with Python3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment