microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.73k stars 29.09k forks source link

Seeing this popup in every Codespace I create as soon as I create it #220124

Open alexdima opened 3 months ago

alexdima commented 3 months ago

Image

lszomoru commented 3 months ago

This dialog is being shown after the first successful git operation that happens against a remote. What I am suspecting is that when a Codespace is spun up, we run a git operation against the remote which results in this dialog being shown. I will see if we can do something better.

lszomoru commented 3 months ago

@alexdima, what is the value of your git.autofetch setting? Could you also please share the contents of the git output window? Thanks!

alexdima commented 2 months ago

I don't recall changing anything on my side, but I can no longer reproduce this. I just created a Codespace and I didn't see the popup 🎉 . My settings.json is empty. This is the git output:

2024-08-23 19:58:21.525 [info] [main] Log level: Info
2024-08-23 19:58:21.525 [info] [main] Validating found git in: "git"
2024-08-23 19:58:21.525 [info] [main] Using git "2.46.0" from "git"
2024-08-23 19:58:21.525 [info] [Model][doInitialScan] Initial repository scan started
2024-08-23 19:58:21.533 [info] > git rev-parse --show-toplevel [9ms]
2024-08-23 19:58:21.571 [info] > git rev-parse --git-dir --git-common-dir [32ms]
2024-08-23 19:58:21.583 [info] [Model][openRepository] Opened repository: /workspaces/vscode-test-cli
2024-08-23 19:58:21.654 [info] > git rev-parse --show-toplevel [56ms]
2024-08-23 19:58:21.655 [info] > git config --get commit.template [63ms]
2024-08-23 19:58:21.800 [info] > git rev-parse --show-toplevel [28ms]
2024-08-23 19:58:21.800 [info] [Model][doInitialScan] Initial repository scan completed - repositories (1), closed repositories (0), parent repositories (0), unsafe repositories (0)
2024-08-23 19:58:21.804 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [6ms]
2024-08-23 19:58:21.927 [warning] [Git][revParse] Unable to read file: ENOENT: no such file or directory, open '/workspaces/vscode-test-cli/.git/refs/remotes/origin/main'
2024-08-23 19:58:22.040 [info] > git rev-parse refs/remotes/origin/main [113ms]
2024-08-23 19:58:22.096 [info] > git status -z -uall [50ms]
2024-08-23 19:58:22.112 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [9ms]
2024-08-23 19:58:22.118 [info] > git config --get commit.template [6ms]
2024-08-23 19:58:22.123 [info] > git config --local branch.main.vscode-merge-base [6ms]
2024-08-23 19:58:22.123 [warning] [Git][config] git config failed: Failed to execute git
2024-08-23 19:58:22.128 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [6ms]
2024-08-23 19:58:22.132 [warning] [Git][revParse] Unable to read file: ENOENT: no such file or directory, open '/workspaces/vscode-test-cli/.git/refs/remotes/origin/main'
2024-08-23 19:58:22.138 [info] > git rev-parse refs/remotes/origin/main [6ms]
2024-08-23 19:58:22.142 [info] > git reflog main --grep-reflog=branch: Created from *. [15ms]
2024-08-23 19:58:22.151 [info] > git check-ignore -v -z --stdin [14ms]
2024-08-23 19:58:22.152 [info] > git status -z -uall [11ms]
2024-08-23 19:58:22.173 [info] > git symbolic-ref --short refs/remotes/origin/HEAD [23ms]
2024-08-23 19:58:22.180 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [21ms]
2024-08-23 19:58:22.190 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/origin/main refs/remotes/origin/main [12ms]
2024-08-23 19:58:22.196 [info] > git config --local branch.main.vscode-merge-base [10ms]
2024-08-23 19:58:22.196 [warning] [Git][config] git config failed: Failed to execute git
2024-08-23 19:58:22.208 [info] > git reflog main --grep-reflog=branch: Created from *. [7ms]
2024-08-23 19:58:22.213 [info] > git config --local branch.main.vscode-merge-base origin/main [18ms]
2024-08-23 19:58:22.219 [info] > git symbolic-ref --short refs/remotes/origin/HEAD [7ms]
2024-08-23 19:58:22.224 [info] > git config --get commit.template [6ms]
2024-08-23 19:58:22.229 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/origin/main refs/remotes/origin/main [5ms]
2024-08-23 19:58:22.234 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [6ms]
2024-08-23 19:58:22.238 [warning] [Git][revParse] Unable to read file: ENOENT: no such file or directory, open '/workspaces/vscode-test-cli/.git/refs/remotes/origin/main'
2024-08-23 19:58:22.238 [info] > git config --local branch.main.vscode-merge-base origin/main [5ms]
2024-08-23 19:58:22.243 [info] > git rev-parse refs/remotes/origin/main [5ms]
2024-08-23 19:58:22.249 [info] > git config --get commit.template [6ms]
2024-08-23 19:58:22.294 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [33ms]
2024-08-23 19:58:22.294 [info] > git merge-base refs/heads/main refs/remotes/origin/main [46ms]
2024-08-23 19:58:22.303 [warning] [Git][revParse] Unable to read file: ENOENT: no such file or directory, open '/workspaces/vscode-test-cli/.git/refs/remotes/origin/main'
2024-08-23 19:58:22.305 [info] > git rev-list --count --left-right refs/heads/main...refs/remotes/origin/main [7ms]
2024-08-23 19:58:22.315 [info] > git rev-parse refs/remotes/origin/main [12ms]
2024-08-23 19:58:22.320 [info] > git diff --name-status -z --diff-filter=ADMR ca11885c532500bec4bc61416e52f581f96c9dd4...refs/remotes/origin/main [11ms]
2024-08-23 19:58:22.342 [info] > git status -z -uall [23ms]
2024-08-23 19:58:22.354 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [7ms]
2024-08-23 19:58:22.364 [info] > git config --local branch.main.vscode-merge-base [4ms]
2024-08-23 19:58:22.369 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/origin/main refs/remotes/origin/main [1ms]
2024-08-23 19:58:22.967 [info] > git config --local branch.main.github-pr-owner-number [64ms]
2024-08-23 19:58:22.967 [warning] [Git][config] git config failed: Failed to execute git
2024-08-23 19:58:23.432 [info] > git config --get commit.template [6ms]
2024-08-23 19:58:23.433 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [2ms]
2024-08-23 19:58:23.437 [warning] [Git][revParse] Unable to read file: ENOENT: no such file or directory, open '/workspaces/vscode-test-cli/.git/refs/remotes/origin/main'
2024-08-23 19:58:23.438 [info] > git rev-parse refs/remotes/origin/main [1ms]
2024-08-23 19:58:23.444 [info] > git status -z -uall [2ms]
2024-08-23 19:58:23.451 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/main refs/remotes/main [2ms]
2024-08-23 19:58:23.456 [info] > git config --local branch.main.vscode-merge-base [1ms]
2024-08-23 19:58:23.462 [info] > git for-each-ref --format=%(refname)%00%(upstream:short)%00%(objectname)%00%(upstream:track)%00%(upstream:remotename)%00%(upstream:remoteref) refs/heads/origin/main refs/remotes/origin/main [1ms]
lszomoru commented 2 months ago

Thanks! Looking at the logs, I am not seeing any git commands that interact with the remote so I am not surprised that you are not seeing the dialog. It would be great to share the logs in case you are able to repro again to see which is the git command that connects to the remote.