gitkraken / vscode-gitlens

Supercharge Git inside VS Code and unlock untapped knowledge within each repository — Visualize code authorship at a glance via Git blame annotations and CodeLens, seamlessly navigate and explore Git repositories, gain valuable insights via rich visualizations and powerful comparison commands, and so much more

Home Page:http://gitkraken.com/gitlens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't add repositories

irvnriir opened this issue · comments

Description

Usually i run git.openRepository trough GUI from other Extension.

That doesn't work for GitLens. I also couldn't find analog command for GitLens.

I tried opening files which are located in the repository, and GitLens didn't detect that repo. (the repository is linked by Git's .git shortcut file. gitlens.views.repositories.autoReveal is true. gitlens.detectNestedRepositories is false, due to perf concern)

I can add a repo by adding it's folder directly to workspace. But after reloading/restarting VSC, all actions which that requires, need to be repeated.

GitLens Version

15.0.4

VS Code Version

1.89.1

Git Version

No response

Logs, Screenshots, Screen Captures, etc

No response

I also get No repository is selected when clicking Show Commit Graph in the VSC's Source Control in sidebar. The issue would be solved for me if that action would be adding the repo to GitLens and opening the graph for corresponding repo.

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 and GitLens (Git) channels.

Thank you!

GitLens

[2024-06-10 08:30:52.253] [   b2] GitProviderService.onWindowStateChanged(e=focused=true) completed [0ms]
[2024-06-10 08:30:52.407] GitProvider(git).onDidOpenRepository(e=file:///d%3A/temporal/2)
[2024-06-10 08:30:52.407] [   b3] GitProviderService.getOrOpenRepository(e=Uri(file:///d:/temporal/2))
[2024-06-10 08:30:52.407] [   b4] GitProviderService.getRepository(e=Uri(file:///d:/temporal/2))
[2024-06-10 08:30:52.407] [   b4] GitProviderService.getRepository(e=Uri(file:///d:/temporal/2)) returned undefined [0ms]
[2024-06-10 08:30:52.408] [   b5] LocalGitProvider.findRepositoryUri(e=Uri(file:///d:/temporal/2), t=undefined)[2024-06-10 08:30:52.525] [GIT  ] [d:\temporal\2] git rev-parse --show-toplevel [54ms]
[2024-06-10 08:30:52.562] [   b5] LocalGitProvider.findRepositoryUri No symlink detected; repoPath=d:/temporal/2
[2024-06-10 08:30:52.562] [   b5] LocalGitProvider.findRepositoryUri(e=Uri(file:///d:/temporal/2), t=undefined) returned Uri(file:///d:/temporal/2) [154ms]
[2024-06-10 08:30:52.563] [   b3] GitProviderService.getOrOpenRepository Repository found in 'file:///d:/temporal/2'
[2024-06-10 08:30:52.563] [   b6] LocalGitProvider.openRepository(e=undefined, t=Uri(file:///d:/temporal/2), i=false, r=undefined, s=true)
[2024-06-10 08:30:52.564] [   b7] GitProviderService.getGitDir(e=Uri(file:///d:/temporal/2))
[2024-06-10 08:30:52.564] [   b8] LocalGitProvider.getGitDir(e=d:/temporal/2)
[2024-06-10 08:30:52.565] [   b6] LocalGitProvider.openRepository(e=undefined, t=Uri(file:///d:/temporal/2), i=false, r=undefined, s=true) returned [x(d:/temporal/2)] [1ms]
[2024-06-10 08:30:52.565] [   ba] GitProviderService.setEnabledContext(e=true)
[2024-06-10 08:30:52.565] [   bb] GitProviderService.getRemotes(e=Uri(file:///d:/<<..>>), t=undefined)
[2024-06-10 08:30:52.565] [   bc] LocalGitProvider.getRemotes(e=d:/<<..>>)
[2024-06-10 08:30:52.565] [   ba] GitProviderService.setEnabledContext(e=true) completed [0ms]
[2024-06-10 08:30:52.569] [   bc] LocalGitProvider.getRemotes(e=d:/<<..>>) completed [3ms]
[2024-06-10 08:30:52.569] [   b3] GitProviderService.getOrOpenRepository(e=Uri(file:///d:/temporal/2)) returned x(d:/temporal/2) [161ms]
[2024-06-10 08:30:52.569] [   bb] GitProviderService.getRemotes(e=Uri(file:///d:/<<..>>), t=undefined) completed [3ms]
[2024-06-10 08:30:52.569] [   bd] GitProviderService.getRemotes(e=Uri(file:///d:/<<..>>), t=undefined)
[2024-06-10 08:30:52.569] [   be] LocalGitProvider.getRemotes(e=d:/<<..>>)
[2024-06-10 08:30:52.569] [   be] LocalGitProvider.getRemotes(e=d:/<<..>>) completed [0ms]
[2024-06-10 08:30:52.569] [   bd] GitProviderService.getRemotes(e=Uri(file:///d:/<<..>>), t=undefined) completed [0ms]
[2024-06-10 08:30:52.569] [   bf] GitProviderService.getRemotes(e=Uri(file:///d:/temporal/2), t=undefined)
[2024-06-10 08:30:52.570] [   c0] LocalGitProvider.getRemotes(e=d:/temporal/2)
[2024-06-10 08:30:52.570] [   c1] GitProviderService.getRepository(e=d:/temporal/2)
[2024-06-10 08:30:52.570] [   c1] GitProviderService.getRepository(e=d:/temporal/2) returned x(d:/temporal/2) [0ms]
[2024-06-10 08:30:52.637] [GIT  ] [d:/temporal/2] git rev-parse --git-dir --git-common-dir [73ms]
[2024-06-10 08:30:52.637] [   b8] LocalGitProvider.getGitDir(e=d:/temporal/2) returned file:///d:/temporal/2/.git, commonUri=undefined [73ms]
[2024-06-10 08:30:52.637] [   b7] GitProviderService.getGitDir(e=Uri(file:///d:/temporal/2)) completed [73ms]
[2024-06-10 08:30:52.637] [   b9] x(d:/temporal/2).setupRepoWatchersCore watching 'file:///d:/temporal/2/.git' for repository changes
[2024-06-10 08:30:52.637] [   b9] x(d:/temporal/2).setupRepoWatchersCore completed [72ms]
[2024-06-10 08:30:52.648] [GIT  ] [d:/temporal/2] git remote -v [76ms]
[2024-06-10 08:30:52.648] [  194] Git.parseRemotes(d:/temporal/2) [0ms]
[2024-06-10 08:30:52.648] [   c0] LocalGitProvider.getRemotes(e=d:/temporal/2) completed [78ms]
[2024-06-10 08:30:52.648] [   bf] GitProviderService.getRemotes(e=Uri(file:///d:/temporal/2), t=undefined) completed [78ms]
[2024-06-10 08:30:52.648] [   c3] GitProviderService.getRemotes(e=Uri(file:///e:/<<..>>), t=undefined)
[2024-06-10 08:30:52.648] [   c4] LocalGitProvider.getRemotes(e=e:/<<..>>)
[2024-06-10 08:30:52.648] [   c4] LocalGitProvider.getRemotes(e=e:/<<..>>) completed [0ms]
[2024-06-10 08:30:52.648] [   c3] GitProviderService.getRemotes(e=Uri(file:///e:/<<..>>), t=undefined) completed [0ms]
[2024-06-10 08:30:52.648] [   c5] GitProviderService.getRemotes(e=Uri(file:///e:/<<..>>), t=undefined)
[2024-06-10 08:30:52.648] [   c6] LocalGitProvider.getRemotes(e=e:/<<..>>)
[2024-06-10 08:30:52.648] [   c6] LocalGitProvider.getRemotes(e=e:/<<..>>) completed [0ms]
[2024-06-10 08:30:52.648] [   c5] GitProviderService.getRemotes(e=Uri(file:///e:/<<..>>), t=undefined) completed [0ms]

GitLens (Git)

[2024-06-10 08:30:52.525] [     54ms] [d:\temporal\2] git rev-parse --show-toplevel
[2024-06-10 08:30:52.637] [     73ms] [d:/temporal/2] git rev-parse --git-dir --git-common-dir
[2024-06-10 08:30:52.648] [     76ms] [d:/temporal/2] git remote -v
[2024-06-10 08:31:32.818] [    109ms] [d:/<<..>>] git status --porcelain=v2 --branch -u --find-renames --
[2024-06-10 08:31:32.840] [    131ms] [d:/<<..>>] git status --porcelain=v2 --branch -u --find-renames --
[2024-06-10 08:31:32.877] [    168ms] [e:/<<..>>] git status --porcelain=v2 --branch -u --find-renames --
[2024-06-10 08:31:33.038] [    150ms] [d:/<<..>>] git rev-parse --verify --end-of-options MERGE_HEAD^{commit}
[2024-06-10 08:31:33.062] [    165ms] [d:/<<..>>] git rev-parse --verify --end-of-options MERGE_HEAD^{commit}
[2024-06-10 08:31:33.066] [    163ms] [e:/<<..>>] git rev-parse --verify --end-of-options MERGE_HEAD^{commit}

The Show Commit Graph button in Source Control also sometimes doesn't work even if the repo is detected. Repositories\<<repo>>\Commits\RMB\Open in Commit Graph and Commit Details\Open in Commit do work.
image

This issue needs more information and has not had recent activity. Please provide the missing information or it will be closed in 7 days. Thanks!

Closing this issue because it needs more information and has not had recent activity. Please re-open this issue if more details can be provided. Thanks!