-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do you know what changed recently? #251
Comments
Can you share a recording? I can't reproduce it. Also what's the output of |
I just rolled back to commit |
@matijas-05 so you noticed it too? How would you describe it? It's a bit hard to explain. I've been trying to record a loom video for @MunifTanjim but it will work perfectly when recording, and as soon as I close it it will come back in a fury... I tried about 5 or 6 times and just gave up. It basically has tons of "artifacts" and junk which doesn't clear if you type too fast, and they actually completely obscure movement/actual typing as if they're real text. |
In my case the time it takes to come up with a suggestion is longer, also when I overwrite a part of the suggestion and accept it, the input that overwrote the suggestion gets added after the suggestion. |
Yes, I also noticed that for sure as a secondary issue. The primary issue as well I noticed is that normal mode actually wont move "through" text but around it, it will jump over entire lines |
I made a comment on Edit: I actually feel bad about making an issue there first 💀 I suppose at first glance I thought the issue might be in agent.js but also in retrospect it's potentially more likely in this repo and something in the response changed perhaps |
Heres a quick example of the issue @matijas-05 encountered. The other issues arent as common but Ill try to get other looms as they come up |
Same. Tried tweaking things, but realized it's not working properly anymore. |
same here |
Hi everyone, I also noticed the same issue, so I made a few tests:
@MunifTanjim I don't really know what this EDIT: The issue might also be due to our configs, so here's mine just in case: opts = {
panel = {
enabled = false,
},
suggestion = {
enabled = true,
auto_trigger = true,
debounce = 500,
keymap = {
accept = "<Tab>",
accept_word = "<C-Right>",
},
},
}, |
Ok so I just noticed this lua code is simply trying to replicate tpope's vimscript code (https://github.com/github/copilot.vim/blob/5b19fb001d7f31c4c7c5556d7a97b243bd29f45f/autoload/copilot.vim#L415) We can see that the condition is a little bit different in the lua implementation, so I guess this is why we have issues here. |
@meeehdi-dev that is awesome, especially because you also fixed the delay issue. Nice!! Hopefully this gets merged or looked at soon as this is killin me |
As @matijas-05 mentioned, you can still rollback to commit After further investigation it seems to me there is a drift between this plugin's lua code and tpope's. I don't know if it is intended or not, but let's say it is. The difference in behavior we end up with is that tpope's code updates the suggestion when the user inputs new characters while the suggestion is shown, so his plugin has no issue of additional characters appearing at the end of the accepted suggestion. I'll wait for the maintainers to tell us what's the best course of action now that we know where the problem comes from. |
@meeehdi-dev he replied here with a possible fix, are you able to test it? #259 I'm not at my computer atm but I figured I would put it here anyway as you were investigating that issue, so might be easy for you to test |
The issue doesn't appear anymore after this fix, with the same options i mentioned above ( |
Noice. Sorry for getting back so late. Let's reopen if the issue comes back again. |
Thanks!! Nice work, looks great so far for me |
I did skim this issue before I opened #259 but it wasn't clear this was the same problem. Sorry for the redundancy -- but hopefully the sleuthing I did in #259 was helpful to @MunifTanjim (and thanks again!) |
Yep, the description in #259 helped me reproduce the issue. Thanks for that 🙌🏼 @jtackaberry |
I know this is a problem with copilon.nvim and not copilot.lua. Mr pope has issues turned off though, and I figure maybe someone knows here due to the knowledge sharing between these 2 projects.
Do you know what happened recently with autocompleting the text? it is atrocious, like when it makes a suggestion, Its like its treated as "real text" now, so when i move up/down with the cursor, I cant type "through" the incorrect stuff anymore and just ignore it, now it actually affects cursor movement as if its real text
Im wondering if anyone else notices this, it truly ruins the experience :[
The text was updated successfully, but these errors were encountered: