Exafunction / codeium.vim

Free, ultrafast Copilot alternative for Vim and Neovim
https://codeium.com
MIT License
3.72k stars 127 forks source link

Inserting suggestions eats characters or lines #84

Closed MisterFISHUP closed 1 year ago

MisterFISHUP commented 1 year ago

Hi, I've recently started using the Codeium plugin for neovim (nvim v0.8.3 on ubuntu 22.04), it's a great plugin that has been a tremendous help to my coding workflow. However, I've encountered an issue multiple times (at least 100 times, in rust/lua/go/typescript, etc.) where the plugin seems to be deleting lines or characters and sometimes even reversing the order of neighbouring lines when I insert a suggestion.

I have recorded a short video that demonstrates one of the problems. There are several other cases where similar issues have occurred.

https://user-images.githubusercontent.com/68397336/222262150-a57ec90f-702c-4c4c-87ef-ed1f214c09d8.mp4

I'm not sure if this is a bug in the plugin or if I'm doing something wrong, but it's causing some frustration. I would appreciate it if you could take a look at this issue and provide some guidance or assistance.

Thank you for creating this plugin, it has been a great help to my coding, and I look forward to using it more in the future.

pqn commented 1 year ago

Thanks for the report. When this happens, is it reproducible or random? If the former, it would be great if you could send an example file and what you're typing when this occurs so we can try to repro.

MisterFISHUP commented 1 year ago

@pqn Thank you for your prompt response. In answer to your question, I think it's kind of random, but it happens a lot so I think it's reproducible to some extent. In fact, as soon as I read your question, I created a new Rust project locally, and I was able to catch the "reversing lines/eating characters problem" right on the spot. I have recorded a short video that demonstrates the issue:

https://user-images.githubusercontent.com/68397336/222266798-b522b4cb-ee75-4faa-9764-91ee6cb28ae1.mp4

Here is what I did exactly:

I hope this information is helpful in diagnosing and resolving the issue. Please let me know if there is anything else I can provide to assist with this matter.

Thank you again for this useful plugin, and I appreciate your assistance in resolving this issue.

sigmaSd commented 1 year ago

I can confirm this happens frequently in nvim Screencast from 2023-03-09 07-48-40.webm

fortenforge commented 1 year ago

(Sorry, accidentally closed the wrong issue...)