neoclide / coc.nvim

Nodejs extension host for vim & neovim, load extensions like VSCode and host language servers.
Other
24.42k stars 953 forks source link

Cannot edit file buffers having reference pane open without GUI toolkit (gvim) #3299

Closed Shellcat-Zero closed 3 years ago

Shellcat-Zero commented 3 years ago

Result from CocInfo

versions

vim version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 18 2021 12:35:17) node version: v14.17.5 coc.nvim version: 0.0.78-fc983ce6dd term: dumb platform: linux

Describe the bug

Cursor disappears and cannot enter edit mode in buffer without invoking vim with GTK or similar GUI toolkit, i.e. "gvim" while the reference pane is open.

Reproduce the bug

Invoke vim without GUI. If you see "Huge version with GTK2 GUI" with vim --version, you are failing. To reproduce, you should see "Huge version without GUI" shown here:

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 18 2021 12:35:17)
Included patches: 1-3358
Compiled by user@HOST
Huge version without GUI.  Features included (+) or not (-):
+acl               +file_in_path      +mouse_urxvt       -tag_any_white
+arabic            +find_in_path      +mouse_xterm       -tcl
+autocmd           +float             +multi_byte        +termguicolors
+autochdir         +folding           +multi_lang        +terminal
-autoservername    -footer            -mzscheme          +terminfo
-balloon_eval      +fork()            +netbeans_intg     +termresponse
+balloon_eval_term +gettext           +num64             +textobjects
-browse            -hangul_input      +packages          +textprop
++builtin_terms    +iconv             +path_extra        +timers
+byte_offset       +insert_expand     -perl              +title
+channel           +ipv6              +persistent_undo   -toolbar
+cindent           +job               +popupwin          +user_commands
+clientserver      +jumplist          +postscript        +vartabs
+clipboard         +keymap            +printer           +vertsplit
+cmdline_compl     +lambda            +profile           +virtualedit
+cmdline_hist      +langmap           -python            +visual
+cmdline_info      +libcall           -python3           +visualextra
+comments          +linebreak         +quickfix          +viminfo
+conceal           +lispindent        +reltime           +vreplace
+cryptv            +listcmds          +rightleft         +wildignore
+cscope            +localmap          -ruby              +wildmenu
+cursorbind        -lua               +scrollbind        +windows
+cursorshape       +menu              +signs             +writebackup
+dialog_con        +mksession         +smartindent       +X11
+diff              +modify_fname      -sodium            +xfontset
+digraphs          +mouse             -sound             -xim
-dnd               -mouseshape        +spell             +xpm
-ebcdic            +mouse_dec         +startuptime       +xsmp_interact
+emacs_tags        -mouse_gpm         +statusline        +xterm_clipboard
+eval              -mouse_jsbterm     -sun_workshop      -xterm_save
+ex_extra          +mouse_netterm     +syntax            
+extra_search      +mouse_sgr         +tag_binary        
-farsi             -mouse_sysmouse    -tag_old_static    
   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: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall -Wno-deprecated-declarations -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 
Linking: gcc -L/usr/local/lib -Wl,--as-needed -o vim -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lelf -ldl

Now invoking vim without GUI support, open a project, navigate to a function or class within a file, invoke references on the function/class name to open a references pane, attempt to edit a file bufffer (cursor disappears, and attempting to enter edit mode results in a FUZZY> prompt.

chemzqm commented 3 years ago

You can't modify list buffer.

Shellcat-Zero commented 3 years ago

@chemzqm Can you elaborate?

chemzqm commented 3 years ago

I've tried vim without GUI, works as expected.