zbirenbaum / copilot.lua

Fully featured & enhanced replacement for copilot.vim complete with API for interacting with Github Copilot
MIT License
2.43k stars 64 forks source link

Issue with poject that contains both Rust and Go code #283

Closed svanharmelen closed 2 months ago

svanharmelen commented 2 months ago

Hi,

I'm working on a project that contains both Rust and Go code in a single repo. Often I have source files open from both languages at the same time on my ultrawide monitor.

I just tried to move towards copilot.lua together with copilot.cmp and noticed completion didn't show Copilot suggestions fo Go, but it did for Rust. Check Copilot status of each buffer sometimes showed:

[Copilot] Online
[Copilot] Disabled manually for go

And sometimes showed:

[Copilot] Online
[Copilot] Enabled manually for rust

I didn't enable or disable anything myself, but when trying to "fix" the problem but running Copilot enable on a buffer with Go code I receive this error:

image

I get the same error when I try to disable and then enable (use Copilot toggle twice) on a Rust buffer.

Any ideas or suggestions on what could be to cause for this to happen?

svanharmelen commented 2 months ago

Closing this issue as (for now) I'm not going to use this plugin. Could be I'll reopen it later when I have some more time to play with it. Thanks!