-
Notifications
You must be signed in to change notification settings - Fork 29
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
LSP Copilot chat, stops working #220
Comments
TODO: Fix line Line 234 in a0c75e0
|
So there is either no cursor (which is supposed not to happen) or |
If you can point me to what I should look for, I will be able to test it next time it happens. EDIT: Or maybe I can take a look how to debug it, when it happens. |
Reproduceable steps would help if it's possible. |
I will try, but the problem is, that I had been developing python script since morning and suddenly when I got back with cup of coffee the Copilot was not responding and error was in console. We will see if it happens tonight or tomorrow during the day. |
I see. Sometimes it's just hard to find a stable way to reproduce a bug. |
It seems the problem occurs everytime I launch Copilot chat from debug. I launch my project (python), debugger is stopped at breakpoint and I press ctrl+shift+p and launch Copilot chat, the window for question opens, but when I write question and hit send to copilot it doesn't answer and error is in the console. |
@DJManas i am seeing this now as well. I hope to have time this weekend to review both our code and any changes that may have occurred in the upstream copilot.vim that we may have missed |
Looks like something changed, and when creating a new conversation and sending an empty turn message. It doesn't like it. We should try and not send an empty message when creating a conversation now |
Initial message here can be blank LSP-copilot/plugin/commands.py Line 276 in 530359c
So maybe we need a way to send a message |
I am not sure what's happening since copilot chat seems to just work on my side. |
I am having the same issue. I removed the package, then re-added it. I then sent a "Hello" message, to which it responded. I tried signing out then signing back in, but no change. Is there a way to get error messages for you? |
right after i submitted that message, i tried again and it worked this time. The plugin cannot reference unsaved code (code which only exists in the editor, but not in a file) |
On my side, if you select those codes, it works. |
I agree that this might be problem, but in my first post I didn't referenced anything, still learning how to use Copilot so most of my prompts are mostly questions, not referencing my code yet. But its good point. |
Just confirming I am able to reproduce this issue. I am looking into it. |
I've identified the issue. This line below fails if the view does not have a file on disk. Line 199 in 530359c
I will try to find time today to fix this. |
I misunderstood your original question then; sorry for hijacking the thread! @DJManas are you able to find steps that let you use CoPilot again? (e.g. Close and Reopen Sublime | Sign Out -> Sign back in to CoPilot | Copilot: Destroy Conversation | Remove package then re-add package)? Or is it permanently broken right now? |
It will work on files that are actually saved to disk currently. We think we also found a bug in LSP for unsaved views. |
Seems that copilot is working today, I will continue to use it. As stated in my first comment. I have problems, that it stops working after some time (not sure why), but before it its working normally (talking about chat). And I had written, that I am not using it on unsaved files, but in the same sentence I had written, that its good point. Now thinking about it, and working, when I see there is problem (in source) I will save first and try again. I guess this is thing, that would not get into my mind, when I have problems in source code usage. |
#220 (comment) Signed-off-by: Jack Cherng <jfcherng@gmail.com>
I have fixed and pushed that line. But another issue related to LSP (wrong buffer ID in payloads) is still required to be addressed in order to this issue. |
Hello,
today I used LSP copilot for working and after some time, it stopped working. I use ctrl + shift + p, copilot chat, enter question and nothing generates.
In console I see:
Sublime-Text: 4_4184 (Yes it dev so I dunno if it should not go to them)
Gentoo Linux
Thanks,
Regards,
Petr Sourek
The text was updated successfully, but these errors were encountered: