Closed iamcco closed 2 years ago
很奇怪,更新了 coc.nvim 和 neovim ,并且把所有 配置 (包括coc配置和插件)都删了,只启用 coc-css ,仍然复现
## versions
vim version: NVIM v0.8.0-dev+3f2e9298b
node version: v14.18.2
coc.nvim version: 0.0.80-dc2f8ac4 2022-05-09 17:02:56 +0800
coc.nvim directory: /Users/aioiyuuko/.configrc/nvim/viml/plugins/coc.nvim
term: xterm-kitty
platform: darwin
## Log of coc.nvim
2022-05-09T20:45:01.264 INFO (pid:27935) [services] - registered service "css"
2022-05-09T20:45:01.267 INFO (pid:27935) [services] - Css language server state change: stopped => starting
2022-05-09T20:45:01.274 INFO (pid:27935) [plugin] - coc.nvim initialized with node: v14.18.2 after 169ms
2022-05-09T20:45:01.291 INFO (pid:27935) [core-watchman] - watchman watching project: /Users/aioiyuuko/.configrc
2022-05-09T20:45:01.391 INFO (pid:27935) [services] - Css language server state change: starting => running
2022-05-09T20:45:01.396 INFO (pid:27935) [services] - service css started
2022-05-09T20:45:04.242 WARN (pid:27935) [completion] - Suggest not triggered with input "", minimal trigger input length: 1
2022-05-09T20:45:04.450 WARN (pid:27935) [completion] - Suggest not triggered with input "", minimal trigger input length: 1
2022-05-09T20:45:06.109 WARN (pid:27935) [completion] - Suggest not triggered with input "", minimal trigger input length: 1
2022-05-09T20:45:11.132 INFO (pid:27935) [snippets-session] - Jump to final placeholder, cancelling snippet session
2022-05-09T20:45:11.133 INFO (pid:27935) [attach] - receive notification: showSignatureHelp []
2022-05-09T20:45:11.197 INFO (pid:27935) [attach] - receive notification: startCompletion [
{
word: '',
bufnr: 1,
col: 13,
disabled: [],
filepath: '/Users/aioiyuuko/.configrc/t.css',
indentkeys: '',
blacklist: [],
line: '\tbackground: ;',
filetype: 'css',
linenr: 2,
input: '',
colnr: 14,
changedtick: 105
}
]
2022-05-09T20:45:11.832 WARN (pid:27935) [completion] - Suggest not triggered with input "", minimal trigger input length: 1
2022-05-09T20:45:18.360 INFO (pid:27935) [attach] - receive notification: highlight []
2022-05-09T20:45:27.152 INFO (pid:27935) [attach] - receive notification: showInfo []
Verbose output needed https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel
Can't reproduce too.
LSP log 我看了挺正常的,我还发现 不仅仅是 css,所有 snippets 的地方,比如 ts console.
选择 log
然后输入 #
也是一样。
Try minimal vimrc.
minimal vimrc
t.vim
in coc.nvim folder
let &runtimepath = &runtimepath . ',' . expand('<sfile>:h')
nvim -u t.vim t.css
still happend
Reproduced, both css and ts.
console.
, choose any snippet from LS
log
snippet, got console.log(|)
, |
is the cursor#
#|console.log()
, and the indent is broken too.OK, downgrade neovim to v0.6.1 then the issue gone. Seems like this issue only happen with latest neovim version.
Should be neovim's bug, happens on neovim >= 0.7.0
I've removed the fix which not fix this issue on all cases, see https://github.com/neovim/neovim/issues/18565
Result from CocInfo
CocInfo
Reproduce
1 open css file
nvim t.css
2 input below code$
is cursor position3 type
background
and select from suggest and trigger snippets 4 type#
then the code become