-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Worktree Create button (+) does not do anything, under certain conditions #2530
Comments
Unfortunately, I'm not able to reproduce this. Can you please enable debug logging by running the GitLens: Enable Debug Logging command from the Command Palette (F1 or ctrl/cmd+shift+p). This will enable logging to the GitLens & GitLens (Git) channels in the Output pane. Once enabled, please reproduce the issue, and attach the logs from the GitLens channel, and if its Git related please also attach the logs from the GitLens (Git) channel. Thank you! |
happening again for me. I reported it before here and it was fixed but it is happening again. My log is
and then it become bigger
|
@sedghi Can you provide more details on exactly what you have open in VS Code, e.g. a single folder for a normal repo, single folder for a worktree, multi-root workspace, etc? From the log provided it looks like GL thinks the repo opened is a worktree (or a repo with its Thanks! |
@sedghi Can you check if your If it is, can you temporarily turn it off and check if it fixes the issue? |
it is not checked for me, it is off |
gitlens.detectNestedRepositoriesje |
I just noticed the |
@sedghi Can you see if the latest version (either stable or pre-release) fixes the issue for you? |
No unfortunatellly, clicking + results in
right clicking and delete
|
@sedghi Thanks for the info! Could you try the latest pre-release version ( |
It worked! |
Fixed in commit: d8993ee |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
When there are two or more worktrees and the active worktree is not Main, the + button does not do anything.
It does work when the Main worktree is active, though.
This is probably related to issue #2301 but still occurring in v13.3.1 and in pre-release v2023.2.2411.
When it doesn't work, GitLens debugging output pane reports:
Vc.execute — failed
TypeError: Cannot read properties of undefined (reading 'path')
GitLens Version
13.3.1
VS Code Version
Version: 1.75.1
Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf
Date: 2023-02-08T21:34:59.000Z
Electron: 19.1.9
Chromium: 102.0.5005.194
Node.js: 16.14.2
V8: 10.2.154.23-electron.0
OS: Darwin x64 22.3.0
Sandboxed: No
Git Version
git version 2.39.2
Logs, Screenshots, Screen Captures, etc
No response
The text was updated successfully, but these errors were encountered: