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

The commit graph appears blank when opening VS Code

Open AnouarDoukkali opened this issue 2 years ago • 5 comments

Description

Upon launching VS Code, I've noticed that the commit graph appears to be completely empty or blank. Also , it seems that clicking the refresh button has no effect, as it doesn't update or populate the commit graph as expected.

GitLens Version

v2023.10.2805 pre-release

VS Code Version

Version: 1.83.1 (user setup) Commit: f1b07bd25dfad64b0167beb15359ae573aecd2cc Date: 2023-10-10T23:48:05.904Z Electron: 25.8.4 ElectronBuildId: 24154031 Chromium: 114.0.5735.289 Node.js: 18.15.0 V8: 11.4.183.29-electron.0 OS: Windows_NT x64 10.0.19045

Git Version

git version 2.42.0.windows.2

Logs, Screenshots, Screen Captures, etc

Capture

AnouarDoukkali avatar Oct 29 '23 16:10 AnouarDoukkali

Does it only happen if the Commit Graph is open on start of VS Code or anytime you open the graph?

Can you also 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!

eamodio avatar Oct 29 '23 19:10 eamodio

The problem occurs when I switch between projects or when I open VS Code while the commit graph is pinned. Closing the commit graph and reopening it solves the problem, but it sometimes reoccurs. Logs: Close re-open commit graph.txt GitLens Git.txt GitLens.txt

AnouarDoukkali avatar Oct 29 '23 20:10 AnouarDoukkali

This appears to be an issue with VSCode not pulling the local webview resource correctly

image

For more context: it seems to happen when you have a pinned commit graph editor tab, GitLens updates or upgrades, and you reload VSCode. It would then affect all repos/projects that had a pinned graph prior to GitLens updating.

Example repro steps:

  1. On a repo/project, open the commit graph as an editor tab, and then pin it.
  2. In the Extensions sidebar, switch GitLens to either Pre-release or Release and then reload VSCode.
  3. Open the repo with the pinned graph editor tab. The graph appears blank and when using the Developer: Open Webview Developer Tools command, the above error appears in the devtools console.

I will open an issue in the VS Code github page.

axosoft-ramint avatar Oct 31 '23 19:10 axosoft-ramint

Issue created here: https://github.com/microsoft/vscode/issues/197103

axosoft-ramint avatar Nov 01 '23 15:11 axosoft-ramint

Thank you for assisting

StefanXhunga avatar Nov 18 '23 12:11 StefanXhunga