Closed foxingreen closed 9 months ago
Also stopped working on my visual code studio insiders - there is says login when I try and access the chat but the button does not do anything.
facing this same error `Version: 1.86.0 Commit: 05047486b6df5eb8d44b2ecd70ea3bdf775fd937 Date: 2024-01-31T10:29:11.933Z Electron: 27.2.3 ElectronBuildId: 26495564 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 23.2.0
` just showing this screen doing nothing ?
I'm also running into this issue. VS Code says the extension has access to the correct GitHub account in Manage Trusted Extensions.
But based on the extension Output, chat seems to be using the authentication I use for Git, which is a different account that does not have a Copilot subscription. I use multiple GitHub accounts, Copilot chat is using the wrong account, and I can't seem to change it. Suggestions still work, however.
Can you include your logs from CMD / CTRL + SHIFT + U
-> Copilot Chat
@lramos15 Here's what I have.
2024-02-07 14:51:32.846 [info] [FetcherService] Using Helix fetcher
2024-02-07 14:51:32.846 [info] [gitExtensionService] Initializing Git extension service.
2024-02-07 14:51:32.846 [info] [gitExtensionService] Successfully activated the vscode.git extension.
2024-02-07 14:51:32.846 [info] [gitExtensionService] Enablement state of the vscode.git extension: true.
2024-02-07 14:51:32.846 [info] [gitExtensionService] Successfully registered Git commit message provider.
2024-02-07 14:51:33.125 [info] [auth] Logged in as AnthonyNave-M3
2024-02-07 14:51:33.471 [info] [auth] Invalid copilot token: missing token: 403
2024-02-07 14:51:33.474 [info] [extension] GitHub Copilot could not connect to server. Extension activation failed: "No access to GitHub Copilot found. You are currently logged in as AnthonyNave-M3."
But my Copilot subscription is on another account, which is what GitHub Copilot (but not chat?) correctly shows up under in the Manage Trusted Extensions screenshot. Thanks!
Have you tried signing out of the other account and just using the one with access? Multi account can be finnicky
Looks like GitHub Copilot Chat does appear in the list of things that used this account, even though it's not in Manage Trusted Extensions.
If I sign out, the extension does correct to the account that has the subscription. But now I can't use my other Git extensions like Source Control and Pull Requests and Issues until I sign back in with the account I need for the repo. Once I do that via the prompts that appear for reauthentication and then I reload the VS Code window, GitHub Copilot Chat goes back to using this account instead of the one that has the subscription and fails to find it. Unfortunately for me, I have to use multiple accounts for work.
I have the same issue, which started happening ~12 hours ago. I discovered I was signed in with two GitHub accounts, and clearly it was using the one without the copilot extension. I also tried to remove access to the account via manage trusted extensions, but GitHub Copilot Chat wasn't an option to deselect, even though when I went to later sign out, it was showin as an extension that had been using the account (same experience as @AnthonyNave-M3).
Anyway, the workaround was to sign out of the other account, which I don't need access to via VS Code anyway.
There should really be an option to configure Copilot to use a specific account, but also, why has this suddently changed for some users?
Same problem here
I am also experiencing the same issue (as mention in #849). In my case the problem happens when I log in the Github Copilot extension with my personal account and the Github Pull requests and Issues with my company account (to get access to our private repos). When I log in my company account, Github Copilot Chat also logs in into the company account (while Github Copilot keeps logged in into my personal account) and I lose access to Github Copilot Chat
Resolved by this : =========> I resolved the issue by logging out all other accounts from VS Code. Those accounts use HTTPS for GitHub authentication. I am utilizing SSH for thjose removed accounts cloning or pushing my code to GitHub, with only one account logged in via HTTPS. This particular account has the Copilot subscription.
I get this error a lot and it's really annoying. The extension needs to be aware that folks may be signed into multiple accounts to do work, and realize that it cannot just de-authorize for no explainable reason when the licensed account remains signed in.
Facing the same issue is there any solution to it, I am using MacOS (sonoma 14.1.1) and this is what I get in the "Output" Logs, although I have the active subscription right now!
[info] [code-referencing] Public code references are enabled.
Facing same issue here .....
This issue is caused by VS Code not properly supporting multiple auth sessions. Not much can be done on the extension side until VS Code fixes this. It was a bug that this worked before
Ref: https://github.com/microsoft/vscode/issues/203850 https://github.com/microsoft/vscode/issues/127967
Closing as a duplicate of upstream issues called out by @lramos15
On MacOS the solution is to install VS Code 1.85 and pin the copilot extension 1.161.0. Disable all updates in VSCode Settings. Keep this until this bug and/or https://github.com/microsoft/vscode/issues/127967 are fixed for real. With the pinned versions both GitHub Issues and PRs, as well as CoPilot work just fine with a different account for each.
To add to @WarpedPixel's comment, I'm using the latest VS Code VS Code 1.85.2 on macOS and Copilot v1.162.0 and Copilot Chat v0.11.1 which works as expected for me. I agree that either this or the other should be fixed before updating as the user experience should not be broken in the meantime when it was working for multiple accounts in these earlier versions and VS Code already appears to support multiple accounts.
https://github.com/microsoft/vscode/issues/127967#issuecomment-1960352783
vs code: Version: 1.86.0 (Universal) Commit: 05047486b6df5eb8d44b2ecd70ea3bdf775fd937 Date: 2024-01-31T10:29:15.765Z (6 days ago) Electron: 27.2.3 ElectronBuildId: 26495564 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin x64 23.1.0
co-pilot: GitHub Copilot Chat v0.12.0
I have a paid subscription and all worked fine for months but now it says start your 30 days free trial. When I click the button it takes me to github where it says I already have a paid subscription. How can I get it back to work
Mac os Sonoma 14.1.2
Steps to Reproduce: