copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.79k stars 126 forks source link

args-out-of-range error when using copilot with narrowing enabled #115

Closed LemonBreezes closed 1 year ago

LemonBreezes commented 1 year ago

Error running timer ‘copilot--post-command-debounce’: (args-out-of-range 4646 18925 34646)

This occurs while using Copilot with a narrowed buffer while at the end of the narrowed buffer.

zerolfx commented 1 year ago

Could you provide the call stack? (use toggle-debug-on-error)

zerolfx commented 1 year ago

I've just fixed a bug related to narrowing. Please upgrade and give it another try.

LemonBreezes commented 1 year ago

I've just fixed a bug related to narrowing. Please upgrade and give it another try.

Thanks. Now I am not getting the error anymore, but it only shows one character from the completion if I am at the very end of the narrowed buffer image

zerolfx commented 1 year ago

image image

Unfortunately, I can't reproduce the new problem. Does the issue occur 100% of the time at the end of a narrowed buffer? Can you provide detailed steps to reproduce it?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 1 year ago

This issue was closed because it has been stalled for 5 days with no activity.