Closed ackvf closed 2 years ago
Please upgrade to the latest version, 12.0.6. (Only v12.0.0 had a dependency on the auth extension). If you are still seeing issues with 12.0.6, can you please provide more details as to what isn't working, and ideally provide logs.
You can enable debug logging by running from GitLens: Enable Debug Logging from the Command Palette (F1 or ctrl/cmd+shift+p). This will enable logging to the GitLens and GitLens (Git) channel in the Output pane.
Once enabled, please reproduce the issue, and attach the log from the both GitLens and GitLens (Git) channels.
Thank you!
I installed latest v11 and reloaded window while not doing anything else. This is the output:
Then I simply pressed "update to 12.0.6" button and "Reload Required", which reloaded the window and then I got this output:
Same with all 12.0.x versions.
Moreover, I don't even see the buttons at the top right of an editor such as these (version 11)
@ackvf From looking at the logs it looks like you might be using symlinks? I've fixed some issues with symlinks in the recent insiders version. Either way, can you try to see if the issue is still reproducible in the GitLens insiders edition?
You can install the GitLens insiders edition from here.
Please be sure to disable or uninstall the stable version of GitLens first.
@eamodio Yeah, that is right. I am using a symlink for my base repo directory.
Anyway, I disabled the extension and installed the insiders edition and it behaves the same way.
Hrm, I don't see the log line where GitLens detected a symlink -- can you explain your symlink setup, so I can try to set up something similar?
Sure,
Original directory that contains all the repos is here C:\Users\Qwerty\repos
And this is the link C:\repos
C:\>dir
Volume in drive C is OS
Volume Serial Number is 4E4E-9350
Directory of C:\
27.09.2018 21:07 <JUNCTION> repos [C:\Users\Qwerty\repos]
So after reopening the project via full path (and not the symlinked C:\repos
) and even when I update to v12.0.6, I get it working again.
It is unfortunate though, as it is not easily possible to re-open all my other projects by hand as I sometimes have lots of tabs open in them.
My full analysis https://stackoverflow.com/a/72208453/985454
I have the same issue, with the same configuration (my dev env is behind a windows junction).
I have the same behavior in the log below : the file and the repo doesn't match. Maybe it can be related ?
[2022-05-04 23:06:46.638] [ f] GitUri.fromUri returned
GitUri(file:///c:/repos/CXIP/cxip-core-web/src/pages/create-collection.tsx
repoPath=c:/Users/Qwerty/repos/CXIP/cxip-core-web) • 16210 ms (slow)
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!
git repositories created under a windows junction doesn't work since v12.
I can provide more info or tests if necessary.
Really sorry for the delay on this -- the major refactor GitLens underwent in version 12 to bring virtual repository support and web support made tracking down a performant solution much harder than I had expected/hoped.
Can you please verify this fix in today's GitLens insiders edition?
You can install the GitLens insiders edition from here.
Please be sure to disable or uninstall the stable version of GitLens first.
Thanks a lot 😊
I'll test it on Monday in my work environment.
There is something weird going on.
launch, it did not start after few minutes, so I enabled Debug mode, opened console and before I could restart extension host the extension loaded.
I tried to replicate the steps, but the extension did not work at all.
I enabled Debug again, restarted the host and the extension loaded instantaneously.
with debug enabled, I restarted again. I can't see gitlens again, but it does emit events in the debug console when I click around.
It still haven't loadad after several minutes.
... a few clicks later
okay it is weird, when I switch tab, the extension produces expected visible hints. When I switch back to the previous tab, it is not visible. I closed and reopened the tab and now it is visible there as well.
@ackvf Thanks for the logs! I've tracked down the timing issue -- it was when a file is open and its repository gets "discovered" before the workspace folder discovery completes. It should be fixed in the latest insiders.
Can you please verify this fix in the latest GitLens insiders edition?
You can install the GitLens insiders edition from here.
Please be sure to disable or uninstall the stable version of GitLens first.
For me the test is positive, it works with windows junction. Tested on windows 10, with vscode insiders 2022-05-24 and vscode gitlens insiders 2022.5.2402
Thanks !
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.
v12.0.0
and latergit version 2.35.1.windows.2
After fiddling with different versions, the settings and debug level reporting, I noticed this error box suddenly.
When I downgrade to latest v11, the extension works.