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
Remote Extension host terminated - Github Copilot Extension #194458
Comments
More testing shows that when I open an html file for editing Copilot does not cause a remote extension crash but as soon as I open a python file it crashes. python 3.8.12 |
another discussion with similar experience on python related copilot crashes. |
appears to affect vscode 1.82x and whatever version of GitHub copilot is required for that version (>v1.120.452) I have manually installed 1.81 and disabled vscode update / extension updates and it is working just fine.
dev containers - v0.309.0 |
I also have the same issue with the Rails project in docker environment. Same Copilot extension. |
Seeing the same here. |
In my environment, this problem only seems to occur if a git remote repository has been set up. Just my environment:
Dockerfile
|
I have same issue in vscode-insider with pylance on devcontainer. |
This seems to be pylance related (and maybe already resolved?) |
@jrieken I guess git is reading the credentials and making some error when connecting to the git remote
git auth output
|
BINGO!! |
@jrieken |
@lszomoru to me, this seems like the Git extension using the wrong credentials when setting up the remote. |
@TylerLeonhardt, as far as I understand things, the git extension itself knows nothing about credentials. It exposes extension API, that other extensions can use (ex: GitHub extension) to register a credential provider. If no credential providers are registered, the git extension will show a username/password quick input widget for the use to enter credentials. The entered credentials are not cached. |
@lszomoru doesn't GCM get used somewhere? If so, what's the precedence of that auth vs the token you get from the GitHub extension? |
VS Code is the last participant (uses GIT_ASKPASS environment variable) in the git authentication pipeline, as it's crucial to honour the user's auth settings. If the user has GCM configured, the auth request will never reach VS Code. If the auth request reaches VS Code, the git extension checks for registered credential providers, and if none exist for the remote a quick input widget is being shown to enter the username, password. |
In my case closing ALL vscode windows and loading back up fixed the issue, so something is getting into a bad state, which reloading a single window doesn't fix, so points to some shared state common between all windows. In my case all Windows were started from WSL, so using remote extensions if that's important. |
Hmm I will test later tonight but in my experience it was definitely not related to git credentials as the only fix was to downgrade vscode and copilot to specific versions. Perhaps that may solve some issues but don’t think they’re correlated. |
If you had to downgrade, that would have likely needed to remove all shared state, so "could" be related to what I saw. |
@jonathanfsanchez |
This is when the Error logto the extension host (remote). |
Can you please attach the output channel (ctrl/cmd+shift+u) of:
Some of these may be empty, but anyway I'm curious what we see in there. |
FWIW seeing identical issue but in my case its the minute I navigate to a go file. |
FWIW this also happens for me with python files. |
I'm also seeing this with python files, which is very irritating. Downgrading per the below mitigates the issue and I'm able to use Copilot again.
|
Mac users may find this workaround, referenced in another thread, helpful. The only other workaround that was working for me previously was downgrading.
The settings referenced are accessed from Docker > Settings > General. |
+1 @gloomylumi work-around worked for me. Thanks! |
+1 for this ... I have been waiting for like 6 months to find this fix @gloomylumi This seems to be a big enough problem that it really should be called out by GitHub CoPilot, especially when paying for it. |
Coming back to this, this thread is deep. I want to get to the root of the problem. Can you all please try running the |
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines. Happy Coding! |
Docker Desktop v4.30 has been released. It contains a fix for this issue. You can now try to enable virtualization: VirtuoFS and 'Use Virtualization Framework' option. P.S. Personally, I've switched to OrbStack and it solves all my problems (performance, stability) with Docker Desktop, so you might want to give it a try. |
Does this issue occur when all extensions are disabled?: Yes/No
I have seen a previous issue on this before but it was closed. I don't see a resolution. I have disabled all extensions but Github Copilot and everything works fine. As soon as that extension is enabled and I open a python file, remote host crashes.
Steps to Reproduce:
Start
I get:
my base docker image is pulling from
FROM ubuntu:jammy-20230308
with nothing special going on except beyond some typical packages like git and curl, a pyenv. it was working about a month ago and just started acting up. I have started 3 fresh containers and all experience the issue immediately.
only other command I ran beyond the image is
apt-get update && unminimize
Dockerfile.txt
The text was updated successfully, but these errors were encountered: