Autocompletion breaks closing pair
aalvarado opened this issue · comments
Adan Alvarado commented
coc-pairs version: 1.2.21
coc version: d5471449bf58978d0ac77b2c7c756d062a5788e4
(What's on the release branch right now)
CocOpenLog
2020-06-04T13:47:33.655 DEBUG (pid:150402) [workspace] - buffer created 1
2020-06-04T13:47:33.657 DEBUG (pid:150402) [events] - Event: BufEnter [ 1 ]
2020-06-04T13:47:33.658 DEBUG (pid:150402) [events] - Event: BufWinEnter [ 1, 1000 ]
2020-06-04T13:47:33.691 INFO (pid:150402) [services] - registered service "eslint"
2020-06-04T13:47:33.691 DEBUG (pid:150402) [extensions] - activate: coc-eslint
2020-06-04T13:47:33.694 DEBUG (pid:150402) [extensions] - activate: coc-marketplace
2020-06-04T13:47:33.697 DEBUG (pid:150402) [extensions] - activate: coc-pairs
2020-06-04T13:47:33.828 DEBUG (pid:150402) [extensions] - activate: coc-prettier
2020-06-04T13:47:33.836 INFO (pid:150402) [services] - registered service "reason"
2020-06-04T13:47:33.836 DEBUG (pid:150402) [extensions] - activate: coc-reason
2020-06-04T13:47:33.861 DEBUG (pid:150402) [languages] - created service source snippets
2020-06-04T13:47:33.862 DEBUG (pid:150402) [languages] - created service source snippets-source
2020-06-04T13:47:33.863 DEBUG (pid:150402) [extensions] - activate: coc-snippets
2020-06-04T13:47:34.065 DEBUG (pid:150402) [extensions] - activate: coc-sql
2020-06-04T13:47:34.152 DEBUG (pid:150402) [languages] - created service source coc-webpack
2020-06-04T13:47:34.153 DEBUG (pid:150402) [extensions] - activate: coc-webpack
2020-06-04T13:47:34.154 INFO (pid:150402) [plugin] - coc.nvim 0.0.78-d5471449bf initialized with node: v13.0.1 after 523ms
2020-06-04T13:47:35.547 DEBUG (pid:150402) [events] - Event: InsertEnter [ 1 ]
2020-06-04T13:47:36.385 DEBUG (pid:150402) [events] - Event: InsertCharPre [ "'" ]
2020-06-04T13:47:36.387 DEBUG (pid:150402) [events] - Event: InsertCharPre [ "'" ]
2020-06-04T13:47:36.387 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 1, 2 ] ]
2020-06-04T13:47:36.390 DEBUG (pid:150402) [events] - Event: TextChangedI [ 1, { lnum: 1, col: 2, changedtick: 4, pre: "'" } ]
2020-06-04T13:47:37.212 DEBUG (pid:150402) [events] - Event: InsertCharPre [ 'h' ]
2020-06-04T13:47:37.214 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 1, 3 ] ]
2020-06-04T13:47:37.215 DEBUG (pid:150402) [events] - Event: TextChangedI [ 1, { lnum: 1, col: 3, changedtick: 5, pre: "'h" } ]
2020-06-04T13:47:37.218 DEBUG (pid:150402) [completion] - trigger completion with {
word: 'h',
bufnr: 1,
col: 1,
synname: '',
filepath: '',
blacklist: [],
line: "'h'",
filetype: '',
linenr: 1,
input: 'h',
colnr: 3,
changedtick: 5,
triggerCharacter: 'h'
}
2020-06-04T13:47:37.230 DEBUG (pid:150402) [completion-complete] - Source "around" takes 4ms
2020-06-04T13:47:37.230 DEBUG (pid:150402) [completion-complete] - Source "buffer" takes 3ms
2020-06-04T13:47:37.230 DEBUG (pid:150402) [completion-complete] - Source "file" takes 3ms
2020-06-04T13:47:37.289 DEBUG (pid:150402) [completion-complete] - Source "snippets" takes 64ms
2020-06-04T13:47:37.499 DEBUG (pid:150402) [events] - Event: InsertCharPre [ 't' ]
2020-06-04T13:47:37.500 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 1, 4 ] ]
2020-06-04T13:47:37.501 DEBUG (pid:150402) [events] - Event: TextChangedI [ 1, { lnum: 1, col: 4, changedtick: 6, pre: "'ht" } ]
2020-06-04T13:47:37.504 DEBUG (pid:150402) [completion] - trigger completion with {
word: 'ht',
bufnr: 1,
col: 1,
synname: '',
filepath: '',
blacklist: [],
line: "'ht'",
filetype: '',
linenr: 1,
input: 'ht',
colnr: 4,
changedtick: 6,
triggerCharacter: 't'
}
2020-06-04T13:47:37.508 DEBUG (pid:150402) [completion-complete] - Source "around" takes 1ms
2020-06-04T13:47:37.508 DEBUG (pid:150402) [completion-complete] - Source "buffer" takes 0ms
2020-06-04T13:47:37.508 DEBUG (pid:150402) [completion-complete] - Source "file" takes 0ms
2020-06-04T13:47:37.568 DEBUG (pid:150402) [completion-complete] - Source "snippets" takes 61ms
2020-06-04T13:47:38.849 DEBUG (pid:150402) [events] - Event: InsertCharPre [ 't' ]
2020-06-04T13:47:38.850 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 1, 5 ] ]
2020-06-04T13:47:38.850 DEBUG (pid:150402) [events] - Event: TextChangedI [ 1, { lnum: 1, col: 5, changedtick: 7, pre: "'htt" } ]
2020-06-04T13:47:38.853 DEBUG (pid:150402) [completion] - trigger completion with {
word: 'htt',
bufnr: 1,
col: 1,
synname: '',
filepath: '',
blacklist: [],
line: "'htt'",
filetype: '',
linenr: 1,
input: 'htt',
colnr: 5,
changedtick: 7,
triggerCharacter: 't'
}
2020-06-04T13:47:38.857 DEBUG (pid:150402) [completion-complete] - Source "around" takes 1ms
2020-06-04T13:47:38.857 DEBUG (pid:150402) [completion-complete] - Source "buffer" takes 1ms
2020-06-04T13:47:38.857 DEBUG (pid:150402) [completion-complete] - Source "file" takes 1ms
2020-06-04T13:47:38.918 DEBUG (pid:150402) [completion-complete] - Source "snippets" takes 61ms
2020-06-04T13:47:40.097 DEBUG (pid:150402) [events] - Event: InsertCharPre [ 'p' ]
2020-06-04T13:47:40.098 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 1, 6 ] ]
2020-06-04T13:47:40.099 DEBUG (pid:150402) [events] - Event: TextChangedI [ 1, { lnum: 1, col: 6, changedtick: 8, pre: "'http" } ]
2020-06-04T13:47:40.102 DEBUG (pid:150402) [completion] - trigger completion with {
word: 'http',
bufnr: 1,
col: 1,
synname: '',
filepath: '',
blacklist: [],
line: "'http'",
filetype: '',
linenr: 1,
input: 'http',
colnr: 6,
changedtick: 8,
triggerCharacter: 'p'
}
2020-06-04T13:47:40.105 DEBUG (pid:150402) [completion-complete] - Source "around" takes 0ms
2020-06-04T13:47:40.105 DEBUG (pid:150402) [completion-complete] - Source "buffer" takes 0ms
2020-06-04T13:47:40.105 DEBUG (pid:150402) [completion-complete] - Source "file" takes 0ms
2020-06-04T13:47:40.165 DEBUG (pid:150402) [completion-complete] - Source "snippets" takes 61ms
2020-06-04T13:47:40.631 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 1, 7 ] ]
2020-06-04T13:47:41.289 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 2, 1 ] ]
2020-06-04T13:47:41.291 DEBUG (pid:150402) [events] - Event: TextChangedI [ 1, { lnum: 2, col: 1, changedtick: 9, pre: '' } ]
2020-06-04T13:47:41.923 DEBUG (pid:150402) [events] - Event: InsertCharPre [ "'" ]
2020-06-04T13:47:41.924 DEBUG (pid:150402) [events] - Event: InsertCharPre [ "'" ]
2020-06-04T13:47:41.924 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 2, 2 ] ]
2020-06-04T13:47:41.925 DEBUG (pid:150402) [events] - Event: TextChangedI [ 1, { lnum: 2, col: 2, changedtick: 11, pre: "'" } ]
2020-06-04T13:47:42.322 DEBUG (pid:150402) [events] - Event: InsertCharPre [ 'h' ]
2020-06-04T13:47:42.323 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 2, 3 ] ]
2020-06-04T13:47:42.324 DEBUG (pid:150402) [events] - Event: TextChangedI [ 1, { lnum: 2, col: 3, changedtick: 12, pre: "'h" } ]
2020-06-04T13:47:42.325 DEBUG (pid:150402) [completion] - trigger completion with {
word: 'h',
bufnr: 1,
col: 1,
synname: '',
filepath: '',
blacklist: [],
line: "'h'",
filetype: '',
linenr: 2,
input: 'h',
colnr: 3,
changedtick: 12,
triggerCharacter: 'h'
}
2020-06-04T13:47:42.328 DEBUG (pid:150402) [completion-complete] - Source "around" takes 1ms
2020-06-04T13:47:42.328 DEBUG (pid:150402) [completion-complete] - Source "buffer" takes 1ms
2020-06-04T13:47:42.328 DEBUG (pid:150402) [completion-complete] - Source "file" takes 1ms
2020-06-04T13:47:42.388 DEBUG (pid:150402) [completion-complete] - Source "snippets" takes 60ms
2020-06-04T13:47:42.388 INFO (pid:150402) [completion-complete] - Results from: around
2020-06-04T13:47:42.392 DEBUG (pid:150402) [events] - Event: MenuPopupChanged [
{
col: 1,
row: 2,
scrollbar: false,
completed_item: {},
width: 15,
height: 1,
size: 1
},
1
]
2020-06-04T13:47:42.393 DEBUG (pid:150402) [events] - Event: TextChangedP [ 1, { lnum: 2, col: 3, changedtick: 12, pre: "'h" } ]
2020-06-04T13:47:42.596 DEBUG (pid:150402) [events] - Event: InsertCharPre [ 't' ]
2020-06-04T13:47:42.597 DEBUG (pid:150402) [events] - Event: MenuPopupChanged [
{
col: 1,
row: 2,
scrollbar: false,
completed_item: {},
width: 15,
height: 1,
size: 1
},
1
]
2020-06-04T13:47:42.598 DEBUG (pid:150402) [events] - Event: TextChangedP [ 1, { lnum: 2, col: 4, changedtick: 17, pre: "'ht" } ]
2020-06-04T13:47:42.602 DEBUG (pid:150402) [events] - Event: CompleteDone [ {} ]
2020-06-04T13:47:42.603 DEBUG (pid:150402) [events] - Event: MenuPopupChanged [
{
col: 1,
row: 2,
scrollbar: false,
completed_item: {},
width: 15,
height: 1,
size: 1
},
1
]
2020-06-04T13:47:42.840 DEBUG (pid:150402) [events] - Event: InsertCharPre [ 't' ]
2020-06-04T13:47:42.841 DEBUG (pid:150402) [events] - Event: MenuPopupChanged [
{
col: 1,
row: 2,
scrollbar: false,
completed_item: {},
width: 15,
height: 1,
size: 1
},
1
]
2020-06-04T13:47:42.841 DEBUG (pid:150402) [events] - Event: TextChangedP [ 1, { lnum: 2, col: 5, changedtick: 24, pre: "'htt" } ]
2020-06-04T13:47:42.844 DEBUG (pid:150402) [events] - Event: CompleteDone [ {} ]
2020-06-04T13:47:42.844 DEBUG (pid:150402) [events] - Event: MenuPopupChanged [
{
col: 1,
row: 2,
scrollbar: false,
completed_item: {},
width: 15,
height: 1,
size: 1
},
1
]
2020-06-04T13:47:43.287 DEBUG (pid:150402) [events] - Event: CompleteDone [ {} ]
2020-06-04T13:47:43.288 DEBUG (pid:150402) [events] - Event: InsertCharPre [ "'" ]
2020-06-04T13:47:43.289 DEBUG (pid:150402) [events] - Event: CursorMovedI [ 1, [ 2, 6 ] ]
2020-06-04T13:47:43.290 DEBUG (pid:150402) [events] - Event: TextChangedI [ 1, { lnum: 2, col: 6, changedtick: 25, pre: "'htt'" } ]
2020-06-04T13:47:46.887 DEBUG (pid:150402) [events] - Event: CompleteDone [ {} ]
2020-06-04T13:47:46.888 DEBUG (pid:150402) [events] - Event: InsertLeave [ 1 ]
2020-06-04T13:47:46.891 DEBUG (pid:150402) [events] - Event: CursorMoved [ 1, [ 2, 5 ] ]
2020-06-04T13:48:29.755 DEBUG (pid:150402) [events] - Event: CursorHold [ 1 ]
2020-06-04T13:49:04.784 DEBUG (pid:150402) [events] - Event: VimResized [ 265, 35 ]
2020-06-04T13:49:04.784 DEBUG (pid:150402) [events] - Event: CursorHold [ 1 ]
2020-06-04T13:49:04.835 DEBUG (pid:150402) [events] - Event: VimResized [ 265, 36 ]
vimrc:
set nocompatible
set runtimepath^=/home/adan/.vim/plugged/coc.nvim
filetype plugin indent on
syntax on
set hidden
let $NVIM_COC_LOG_LEVEL = 'debug'
version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jun 4 2020 12:12:02)
Included patches: 1-902
Huge version with GTK2 GUI. Features included (+) or not (-):
+acl -farsi +mouse_sgr +tag_binary
+arabic +file_in_path -mouse_sysmouse -tag_old_static
+autocmd +find_in_path +mouse_urxvt -tag_any_white
+autochdir +float +mouse_xterm -tcl
-autoservername +folding +multi_byte +termguicolors
+balloon_eval -footer +multi_lang +terminal
+balloon_eval_term +fork() -mzscheme +terminfo
+browse +gettext +netbeans_intg +termresponse
++builtin_terms -hangul_input +num64 +textobjects
+byte_offset +iconv +packages +textprop
+channel +insert_expand +path_extra +timers
+cindent +ipv6 -perl +title
+clientserver +job +persistent_undo +toolbar
+clipboard +jumplist +popupwin +user_commands
+cmdline_compl +keymap +postscript +vartabs
+cmdline_hist +lambda +printer +vertsplit
+cmdline_info +langmap +profile +virtualedit
+comments +libcall -python +visual
+conceal +linebreak +python3/dyn +visualextra
+cryptv +lispindent +quickfix +viminfo
+cscope +listcmds +reltime +vreplace
+cursorbind +localmap +rightleft +wildignore
+cursorshape -lua +ruby/dyn +wildmenu
+dialog_con_gui +menu +scrollbind +windows
+diff +mksession +signs +writebackup
+digraphs +modify_fname +smartindent +X11
+dnd +mouse +sound -xfontset
-ebcdic +mouseshape +spell +xim
+emacs_tags +mouse_dec +startuptime +xpm
+eval +mouse_gpm +statusline +xsmp_interact
+ex_extra -mouse_jsbterm -sun_workshop +xterm_clipboard
+extra_search +mouse_netterm +syntax -xterm_save
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: "/usr/local/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/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/pango-1.0 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/uuid -I/usr/include/freetype2 -I/usr/include/libpng16 -g -O2 -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L. -L/home/adan/.rbenv/versions/2.6.4/lib -fstack-protector-strong -rdynamic -Wl,-export-dynamic -L/usr/local/lib -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 -lharfbuzz -lfontconfig -lfreetype -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -ltinfo -lselinux -lcanberra -lacl -lattr -lgpm -ldl
CocInfo
## versions
vim version: VIM - Vi IMproved 8.2 8020902
node version: v13.0.1
coc.nvim version: 0.0.78-d5471449bf
coc.nivm directory: /home/adan/.vim/plugged/coc.nvim
term: dumb
platform: linux
## Output channel: prettier
## Output channel: snippets
[Info 2:29:28 PM] Using ultisnips directories: UltiSnips /home/ad
[Info 2:29:28 PM] Using ultisnips python command: pyx
Qiming zhao commented
Remove '
from your iskeyword
Adan Alvarado commented
Doing
:set iskeyword?
shows:
iskeyword=@,48-57,_,192-255
according to http://vimdoc.sourceforge.net/htmldoc/options.html#'iskeyword'
the above doesn't include the '
since '
is ASCII 39
single quote
.
but even if I do :set iskeyword=@
which is only letters, it exhibits the same issue
Adan Alvarado commented
Adan Alvarado commented
@chemzqm do you think this could be a bug since the '
is not in the iskeyword
list?
Qiming zhao commented
I have reproduced it on vim8, but not neovim, so should be bug with vim8.
Adan Alvarado commented
Correct! I just tried NeoVim and it does not have the bug. thank you!