-
Notifications
You must be signed in to change notification settings - Fork 45
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
nvim-cmp crash, error "'start' is higher than 'end' " on selecting copilot item #79
Comments
Running into this as well. |
I'm having the same issue, however, it's always on the third time I select something. |
I haven't run into this, but I would guess it has to do with completion insert and replace ranges since I've seen similar errors when experimenting with those. Try out #92 |
Still encounter same issue |
Same here, with golang structs. |
Running into this same problem. |
This crashes the nvim-cmp completely. It's a huge bummer in my workflow and I have no idea how to fix it (tried various options). Same problem with golang structs. |
I have the same problem. Mostly happens in Golang. |
I wonder how it can be fixed. Any advice on where to look? I'd fix it myself, but I don't have a lot of experience with lua, except doing minor fixes in my own config. |
As a fairly reproducible example for me, create a file with the following Go code package main
type Test struct {
Name string `json:"name,omitempty"`
Age int `json:"age"`
} Go to Cmp will crash, and some wierdness goes on where the code is collapsed into one line |
PR to CMP above that seems to fix this issue for me |
When I select a Copilot generated item, I encounter an error and nvim-cmp crashes with the error mentioned below. It looks like cmp tries to replace the entire line. However, I think that when my cursor is at the end of the line, it causes the cmp to crash and returns an error (this is just my wild guess).
Here is a video demonstrating the issue being replicated:
https://cln.sh/t6z8MwwN4YXHVDcMyTYr
cmp error:
cmp configuration
copilot settings
I'm not sure if the issue lies with nvim-cmp or copilot-cmp package. However, I cannot reproduce the same error with other cmp selections.
The text was updated successfully, but these errors were encountered: