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
http://gitkraken.com/gitlens
Other
9.02k stars 1.35k forks source link

"Element with id already registered" error when Search & Compare view opens to show a comparison #3442

Open axosoft-ramint opened 3 months ago

axosoft-ramint commented 3 months ago

Description

To repro, use a command like "compare to/with ..." on a commit/branch on the graph or branches view while the Search & Compare view is closed/minimized/hidden.

It will open the comparison but then immediately it will vanish, with the error "element with id already registered". Refreshing the Search & compare view fixes the issue and the comparison shows correctly.

GitLens Version

2024.8.205 (pre-release)

VS Code Version

No response

Git Version

No response

Logs, Screenshots, Screen Captures, etc

No response

easyTree commented 3 months ago

Me too - also, I believe the behaviour has changed. Currently if I right-click a commit and choose 'Select for compare' it immediately switches to GitLens Search and Compare - even though only one party for the comparison has been chosen - is this related?

eamodio commented 3 months ago

@easyTree Shouldn't be related, but definitely an issue. I've opened https://github.com/gitkraken/vscode-gitlens/issues/3448 to track it

nzaytsev commented 3 months ago

Tried to reproduce. For me it's reproduced only twice and then I can not reproduce it again, it's strange

ayuzvyak commented 2 months ago

Have the same issue for a year now. At first I thought that it's my local installation was corrupted, but then I've faced with the same problem on my colleague's installation too. Both are on Linux so, maybe it's OS-related.

Every time I'm trying to perform a Search with GitLens Search&Compare widget at first results are shown, then the error appears and Search results is collapsed in the list. When you're trying to expand search result - the same error appears. However, if you will perform another search using + button at the top of the widget - it will allow you to expand new search results just fine, so I'm using it as a workaround for now :)

Bug

If you need any details, I will help to provide it.

My current versions info: Arch Linux asus 6.9.3-arch1-1 SMP PREEMPT_DYNAMIC Fri, 31 May 2024 15:14:45 +0000 x86_64 GNU/Linux VS-Code OSS 1.90.0 Electron 29.4.3