Shougo / deoplete.nvim

:stars: Dark powered asynchronous completion framework for neovim/Vim8
Other
5.94k stars 295 forks source link

deoplete puts error on startup #1203

Closed hh02 closed 1 year ago

hh02 commented 1 year ago

Warning: I will close the issue without the minimal init.vim and the reproduction instructions.

Problems summary

[deoplete] VimEnter Autocommands for "*" .. function deoplete#enable[9]..deoplete#initial...e[15]..deoplete#init#channel[24]..yarp#core#notify[1]..yarp#core#wait_channel, line13

Expected

no errors

Environment Information

:version
VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Dec 16 2022 23:30:17)
MS-Windows 64-bit console version
Included patches: 1-1065
Compiled by appveyor@APPVYR-WIN
Huge version without GUI.  Features included (+) or not (-):
+acl                +cmdline_compl      +emacs_tags         +ipv6               +modify_fname       +printer            +startuptime        +timers             +wildmenu
+arabic             +cmdline_hist       +eval               +job                +mouse              +profile            +statusline         +title              +windows
+autocmd            +cmdline_info       +ex_extra           +jumplist           -mouseshape         +python/dyn         -sun_workshop       -toolbar            +writebackup
+autochdir          +comments           +extra_search       +keymap             +multi_byte_ime/dyn +python3/dyn        +syntax             +user_commands      -xfontset
+autoservername     +conceal            -farsi              +lambda             +multi_lang         +quickfix           +tag_binary         +vartabs            -xim
-balloon_eval       +cryptv             +file_in_path       +langmap            +mzscheme/dyn       +reltime            -tag_old_static     +vertsplit          -xpm_w32
+balloon_eval_term  +cscope             +find_in_path       +libcall            -netbeans_intg      +rightleft          -tag_any_white      +vim9script         -xterm_save
-browse             +cursorbind         +float              +linebreak          +num64              +ruby/dyn           -tcl                +viminfo
++builtin_terms     +cursorshape        +folding            +lispindent         +packages           +scrollbind         +termguicolors      +virtualedit
+byte_offset        +dialog_con         -footer             +listcmds           +path_extra         +signs              +terminal           +visual
+channel            +diff               +gettext/dyn        +localmap           +perl/dyn           +smartindent        -termresponse       +visualextra
+cindent            +digraphs           -hangul_input       +lua/dyn            +persistent_undo    +sodium/dyn         +textobjects        +vreplace
+clientserver       -dnd                +iconv/dyn          +menu               +popupwin           +sound              +textprop           +vtp
+clipboard          -ebcdic             +insert_expand      +mksession          -postscript         +spell              -tgetent            +wildignore
Compilation: cl -c /W3 /GF /nologo -I. -Iproto -DHAVE_PATHDEF -DWIN32 -DHAVE_STDINT_H  -DFEAT_CSCOPE -DFEAT_TERMINAL -DFEAT_SOUND  -DFEAT_JOB_CHANNEL -DFEAT_IPV6 -DHAVE_INET_NTOP    -DHAVE_SODIUM -DDYNAMIC_SODIUM -DDYNAMIC_SODIUM_DLL=\"libsodium.dll\" /I "C:\libsodium\include" -DWINVER=0x0601 -D_WIN32_WINNT=0x0601 /source-charset:utf-8 /MP /Ox /GL -DNDEBUG /Zl /MT /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -DFEAT_MBYTE_IME -DDYNAMIC_IME -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_LUA -DDYNAMIC_LUA -DDYNAMIC_LUA_DLL=\"lua54.dll\" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"python27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python311.dll\" -DFEAT_MZSCHEME -I "C:\racket\include" -DMZ_PRECISE_GC -DDYNAMIC_MZSCHEME -DDYNAMIC_MZSCH_DLL=\"libracket3m_da32rk.dll\" -DDYNAMIC_MZGC_DLL=\"libracket3m_da32rk.dll\" -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"perl532.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"x64-msvcrt-ruby300.dll\" -DRUBY_VERSION=30 -DFEAT_HUGE /Fd.\ObjCULYHRZAMD64/ /Zi
Linking: link /nologo /opt:ref /LTCG oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib  comdlg32.lib ole32.lib netapi32.lib uuid.lib user32.lib  /machine:AMD64  libcmt.lib   /nodefaultlib:lua54.lib  /STACK:8388608  /nodefaultlib:python27.lib /nodefaultlib:python311.lib    winmm.lib WSock32.lib Ws2_32.lib   /PDB:vim.pdb -debug

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

call plug#begin()
if has('nvim')
    Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
else
    Plug 'Shougo/deoplete.nvim'
    Plug 'roxma/nvim-yarp'
    Plug 'roxma/vim-hug-neovim-rpc'
endif
call plug#end()
let g:deoplete#enable_at_startup = 1

How to reproduce the problem from neovim/Vim startup (Required!)

  1. install python 3.11.0 (https://www.python.org/ftp/python/3.11.0/python-3.11.0-amd64.exe)
  2. install gvim (https://github.com/vim/vim-win32-installer/releases/download/v9.0.1065/gvim_9.0.1065_x64.exe)
  3. open gvim

Generate a logfile if appropriate

  1. export NVIM_PYTHON_LOG_FILE=/tmp/log
  2. export NVIM_PYTHON_LOG_LEVEL=DEBUG
  3. nvim -u minimal.vimrc
  4. some works
  5. cat /tmp/log_{PID}

Screenshot (if possible)

image

Upload the log file

Shougo commented 1 year ago

I don't know why the error occurred. But the job is dead.

Unfortunately, deoplete development is ended. You should use ddc.vim instead.

Shougo commented 1 year ago
## Requirements

- `has('python3')`
- For Vim 8:
  - [roxma/vim-hug-neovim-rpc](https://github.com/roxma/vim-hug-neovim-rpc)
  - `g:python3_host_prog` pointed to your python3 executable, or `echo
      exepath('python3')` is not empty.
  - [pynvim](https://github.com/neovim/pynvim) (`pip3
      install pynvim`)

I think you don't install pynvim.

hh02 commented 1 year ago

I have solved this problem. On win10, it needs to rename "python.exe" to "python3.exe" for plugin yarp use "python3", otherwise it will not found python, the error appears. Because vim-go use deoplete for completion, I will use ddc immediately when vim-go support it. Thanks for your time!

Shougo commented 1 year ago

Oh...

I don't use vim-go. You can use LSP features instead.