-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Expected value but found invalid token at character 1 #415
Comments
This error started happening on my setup today too. I use the Lazy plugin manager and this has been working fine for months until today. It occurs when executing commands like:
|
I improved the error logging so can you check again now and check the error? @thomastthai @gammons |
@deathbeam, thank you for adding additional error logging. Following up on the info I posted from #436:
After acknowledging the error by pressing Here is the tail of
|
FYI, I was able to get copilot chat to work! I did not have to do anything other than run One note, I did have to enable "Copilot chat in the IDE" to get this to work. (this is at https://github.com/settings/copilot) Probably it should be called out in the README that this setting needs to be enabled. |
@thomastthai FWIW I was getting that error as well. For me it was happening because I had |
going to close this issue since this seems to be fixed for me. |
@gammons, I am glad your setup is working now!
My "Copilot chat in the IDE" was enabled per #436 when this error cropped up. |
Please keep the issue open as @deathbeam merged #436 with this issue saying it was a duplicate. |
README.md listed luajit-tiktoken as an option:
If a conflict arises between CopilotChat and @gammons, I'm on MacOS and have
|
@gammons, doesn't "Copilot chat in the IDE" get enabled during the plugin installation? Since there were a few issues mentioning this setting, other users may benefit if |
@thomastthai I would have thought that as well, but it was disabled for my work org, which is the org that's paying for copilot. The weird thing is that regular copilot autocomplete was working just fine with that IDE option disabled 🤷 |
@gammons, you nailed why that setting was not enabled: work org had it disabled. |
The commits to the canary branch from 2024-10-30 fixed errors mentioned in this issue, including one related to #444. Feel free to close this issue. |
Hi there, I am trying to use CopilotChat.nvim. I think maybe the main difference is I am using packer.nvim as my package manager. I am installing Copilot chat like so:
Then I run
PackerSync
and it looks like CopilotChat is installed correctly. (PackerSync is also making sure that all other libraries / dependencies are up-to-date as well)Here is the output of
checkhealth CopilotChat
:However, if I try to enter a prompt into the window, or if I run
CopilotChatExplain
, I am getting the following error:[CopilotChat.nvim] "Expected value but found invalid token at character 1
Any help to debug would be greatly appreciated. Thanks!
The text was updated successfully, but these errors were encountered: