josa42 / coc-go

Go language server extension using gopls for coc.nvim.
MIT License
566 stars 30 forks source link

Mangled text after selecting suggestion #191

Closed luisdavim closed 2 years ago

luisdavim commented 2 years ago

I'm not sure if the issue is with this extension or coc.nvim but it seems to be working fine with suggestions from other extensions. In some cases, when selecting a suggestion from go's language server, it mangles the pre-existing text.

This is what's happening: out

luisdavim commented 2 years ago

I can work around the issue by setting "suggest.snippetsSupport": false so this might be an issue with coc itself and not necessarily this extension.

rmzg commented 2 years ago

I'm seeing something similar with text on the same line after I select a suggestion:

https://www.loom.com/share/f368f9f3aebb4a9c8c491c331328bc72

I have uptime.Hours() then type math.Flo| uptime.Hours() where | is the cursor and hitting tab results in math.Floor() .Hours()

And setting "suggest.snippetsSupport": false, doesn't change anything for me.

coc-errlog.txt

rmzg commented 2 years ago

complete-coc-log.txt.gz

The complete log for more details

rmzg commented 2 years ago

Might be helped by "suggest.fixInsertedWord": false,

rmzg commented 2 years ago

If I use the <down> key to select math.Abs from the popup instead of math.Floor it doesn't delete uptime and I end up with math.Abs()uptime... as I would expect: working-coc-log.txt.gz

luisdavim commented 2 years ago

This is an issue with coc and not this extension.