vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Error - can no longer see Git Commit Graph with gitlens

Open dtcitron opened this issue 8 months ago • 5 comments

Description

The error message has persisted for several weeks now, and I would very much like to be able to see and interact with the graph again:

An error occurred while loading view: gitlens.views.graph

GitLens Version

17.1.1

VS Code Version

Version: 1.100.2 (Universal) Commit: 848b80aeb52026648a8ff9f7c45a9b0a80641e2e Date: 2025-05-14T21:47:40.416Z Electron: 34.5.1 ElectronBuildId: 11369351 Chromium: 132.0.6834.210 Node.js: 20.19.0 V8: 13.2.152.41-electron.0 OS: Darwin x64 24.2.0

Git Version

git version 2.16.0

Logs, Screenshots, Screen Captures, etc

Image

dtcitron avatar Jun 03 '25 16:06 dtcitron

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!

d13 avatar Jun 03 '25 16:06 d13

I would also suggest restarting vscode if you haven't and uninstalling/re-installing GitLens. We've seen some (rare) issues where the installation gets corrupted on upgrade for some reason.

eamodio avatar Jun 03 '25 17:06 eamodio

Looking over the GitLens logs, this error appears:

Error: Displaying worktrees requires a newer version of Git (>= 2.17.0) than is currently installed (2.16.0). Please install a more recent version of Git and try again.

Seems that git 2.16 is installed in the path where 2.17 should be, I have contacted our HPC admin for assistance with this. If we fix our git versioning and the problem persists, I will reopen this.

Thank you!

dtcitron avatar Jun 05 '25 19:06 dtcitron

We should be handling this case better regardless. Sorry for the issue.

eamodio avatar Jun 05 '25 21:06 eamodio

Updated situation: I spoke with HPC admin and now when I use which git it returns that I am using git 2.49.0

From the Gitlens (Git) error logging, I see this:

Error: fatal: Not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Usually this error comes when current working directory is not a valid git repo, but I have no difficulty using git in the command line in my current working directory. Reloading the window does not seem to help with this.

From the GitLens error logging, I still see this:

Error: Displaying worktrees requires a newer version of Git (>= 2.17.0) than is currently installed (2.16.0). Please install a more recent version of Git and try again.

Using which git and git version both indicate that I am using version 2.49.0 - so there's some kind of mismatch happening here?

Please advise for how to debug. Thanks in advance!

dtcitron avatar Jun 17 '25 20:06 dtcitron

Encounter An error occurred while loading view: gitlens.views.graphDetails in Gitlens Pro Version 17.4.1 Last Updated 2025-09-01, 09:56:16

dominicshanshan avatar Sep 01 '25 02:09 dominicshanshan