Le dimanche 21 janvier 2018 15:47:15 UTC+1, Ken Takata a écrit : > Hi, > > 2018/1/21 Sun 23:40:20 UTC+9 Ni Va wrote: > > Le vendredi 19 janvier 2018 12:06:22 UTC+1, Ken Takata a écrit : > > > Hi, > > > > > > 2018/1/19 Fri 19:49:18 UTC+9 Ni Va wrote: > > > > 1. I delete registry entry > > > > > > > > > > > > 2. in _vimrc > > > > > > > > > > > > " Python > > > > > > > > let $pythonhome= 'c:/thirdPartTools/Python36' > > > > let currpath.=';'.'c:/thirdPartTools/Python27' > > > > let currpath.=';'.'c:/thirdPartTools/Python36' > > > > let currpath.=';'.'c:/thirdPartTools/Python36/Lib/site-packages' > > > > let uniqPath= join(uniq(split(currpath,';')),';') > > > > let $path=currpath > > > > > > > > set pythondll=python27.dll > > > > set pythonthreedll=python36.dll > > > > > > > > > > > > > > > > > > > > 3. py3 print('hell') returns hell => OK > > > > > > > > > > > > 4. echo neovim_rpc#serveraddr() returns local ip server => OK > > > > > > > > > > > > > > > > > > > > Distri is now standalone. > > > > > > > > > > > > Thank you ! > > > > > > I suspect that `:py print('hello')` doesn't work now. > > > There is a PR to fix it, but it is not included: > > > https://github.com/vim/vim/pull/1266 > > > > > > Regards, > > > Ken Takata > > > > As you said, py print('hello') not loaded when py3 loaded with the > > following minimal set in _vimrc: > > > > > > I Focus on > > 1. rpc server started OK from > > https://github.com/roxma/vim-hug-neovim-rpc.git > > 2. deoplete from https://github.com/Shougo/deoplete.nvim.git seems OK > > 3. clang_complete from https://github.com/Rip-Rip/clang_complete.git is KO > > > > > > > > > > " Python minimal set with windows cleaned up registry > > let pythonver=36 > > > > let $pythonhome= thirdpartbase.'/Python'.pythonver > > let $pythonpath= $pythonhome > > for path in split(globpath($pythonhome,'*'),'\n') > > let $pythonpath.=';'.path > > endfor > > for path in split(globpath($pythonhome.'/Lib/site-packages','*'),'\n') > > let $pythonpath.=';'.path > > endfor > > > > let $path.=';'.$pythonhome > > let $path.=';'.$pythonhome.'/scripts' > > let $path.=';'.$pythonpath > > > > " set pythondll=python27.dll > > " set pythonthreedll=python36.dll > > > > call join(uniq(split($path,';')),';') > > The problem is that Python 2 and 3 share the same evironment variable. > To solve this, as I already said, PR#1266 is required. > > Regards, > Ken Takata
And is it working ? Because when I mix pythonhome and pythonthreehome with associated paths to pythonpath. Py3 works, not py " {{{ Python let $pythonhome = thirdpartbase.'/Python27' let $pythonpath.=';'.$pythonhome for path in split(globpath($pythonhome,'*'),'\n') let $pythonpath.=';'.path endfor for path in split(globpath($pythonhome.'/Lib/site-packages','*'),'\n') let $pythonpath.=';'.path endfor let $pythonthreehome = thirdpartbase.'/Python36' let $pythonpath.=';'.$pythonthreehome for path in split(globpath($pythonthreehome,'*'),'\n') let $pythonpath.=';'.path endfor for path in split(globpath($pythonthreehome.'/Lib/site-packages','*'),'\n') let $pythonpath.=';'.path endfor " PATH let $path.=';'.$pythonhome let $path.=';'.$pythonhome.'/scripts' let $path.=';'.$pythonthreehome let $path.=';'.$pythonthreehome.'/scripts' let $path.=';'.$pythonpath -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.