Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

View File History not working - absolute path used #1045

Closed
waiholiu opened this issue Jun 2, 2020 · 46 comments
Closed

View File History not working - absolute path used #1045

waiholiu opened this issue Jun 2, 2020 · 46 comments
Assignees
Labels
bug Something isn't working verified ✔ Verified
Milestone

Comments

@waiholiu
Copy link

waiholiu commented Jun 2, 2020

  • GitLens Version: v10.2.1
  • VSCode Version: 1.45.1
  • OS Version: Windows 10 1909
  • Git Version : 2.27.0.windows.1

This issue #932 seems to have come back.

The File History view no longer displays the commits for a file
image

even through as can be seen below, there are commits.
image

when you try to open it I get the following error

[2020-06-02 12:18:36:813] OpenWorkingFileCommand
Error: cannot open file:///c%3A/Users/waiho/OneDrive/Source/tempProjects/testNEWGIT/c%3A/Users/waiho/OneDrive/source/tempProjects/testNEWGIT/filetxt.txt. Detail: Unable to read file 'c:\Users\waiho\OneDrive\Source\tempProjects\testNEWGIT\c:\Users\waiho\OneDrive\source\tempProjects\testNEWGIT\filetxt.txt' (Error: Unable to resolve non-existing file 'c:\Users\waiho\OneDrive\Source\tempProjects\testNEWGIT\c:\Users\waiho\OneDrive\source\tempProjects\testNEWGIT\filetxt.txt')

looks like it's using the absolute path.

@ili101
Copy link

ili101 commented Jun 22, 2020

Please help, Don't know why diff suddenly stopped working when on UNC path

Unable to open 'Test.ps1 (added in c9f4f86)': Unable to read file 'gitlens://c9f4f86/my.server.local/PsF/Scripts/Test/Test.ps1?{"path":"//my.server.local/PsF/Scripts/Test/Test.ps1","ref":"c9f4f8632dccbaf3f552103ea9f2f66ef5a4bcda","repoPath":"//my.server.local/PsF/Scripts/Test"}' (Error: Unable to resolve non-existing file 'gitlens://c9f4f86/my.server.local/PsF/Scripts/Test/Test.ps1?{"path":"//my.server.local/PsF/Scripts/Test/Test.ps1","ref":"c9f4f8632dccbaf3f552103ea9f2f66ef5a4bcda","repoPath":"//my.server.local/PsF/Scripts/Test"}').

@ili101
Copy link

ili101 commented Jun 22, 2020

Reverted VSCode from 1.46.1 to 1.45.1 and it started working again.
https://code.visualstudio.com/updates/v1_45
Looks like something in the last VSCode update broke the extension.

Maybe something to do with this https://code.visualstudio.com/updates/v1_46#_file-path-casing?

@skupjoe
Copy link

skupjoe commented Jun 24, 2020

Same issue....this is what happens when I try to use the Compare feature:

Unable to open 'mon-svc-host.json (676e0f6) ⟷ mon-svc-host.json (a94acbf)': Unable to read file 'gitlens://676e0f6/<host>>/6TB/dropbox/projects/packer/mon-svc-host/mon-svc-host.json?{"path":"//<host>>/6TB/dropbox/projects/packer/mon-svc-host/mon-svc-host.json","ref":"676e0f6f512b7bf83060e6a1d8d4c0158ea201d9","repoPath":"//<host>>/6TB/dropbox/projects/packer/mon-svc-host"}' (Error: Unable to resolve non-existing file 'gitlens://676e0f6/<host>>/6TB/dropbox/projects/packer/mon-svc-host/mon-svc-host.json?{"path":"//<host>>/6TB/dropbox/projects/packer/mon-svc-host/mon-svc-host.json","ref":"676e0f6f512b7bf83060e6a1d8d4c0158ea201d9","repoPath":"//<host>>/6TB/dropbox/projects/packer/mon-svc-host"}').

Not an issue with my other machine that does not use UNC path.

@gukandrew
Copy link

same here
GitLens opens staged files with relative path not from project root, but from Linux user home folder.
It didn't use to work that way before.
2020-07-10_20-45

@ili101
Copy link

ili101 commented Jul 12, 2020

Hi, can someone please help with this?
I froze my VSCode to April version to workaround this problem an I will like to get back to the last version ):

@gukandrew
Copy link

This issue also breaks breakpoint set (xdebug php). Them will not work until absolute path used while opening file.

@ili101
Copy link

ili101 commented Jul 20, 2020

Well I switched to the "Git History" extension. I don't like the UI as much but at least it works. Maybe need some more time to get used to it.

@p3t3r5
Copy link

p3t3r5 commented Aug 27, 2020

GitLens is unusable on network share / drive. Something is wrong with GitUri, inconsistent paths. UNC, Networkdrive and together. Sometimes authority=[commit hash]. Not correct?

Ok, not my job, but I have simple workaround for compare... I have replaced one line in relativeFsPath():
: paths.relative(this.repoPath, this.fsPath);
to
: paths.relative(this.repoPath, this.fsPath.replace(/^\\(?!\\)/,'\\\\'));

You can replace files in GitLens extention dist folder with attached files. Tested with last portable git for windows on network share and network drive.

dist.zip

@ili101
Copy link

ili101 commented Sep 6, 2020

Thank you @p3t3r5 your fixed version works for me 👍
Is this extension still maintained by someone? Maybe make a PR?

@p3t3r5
Copy link

p3t3r5 commented Oct 8, 2020

gitlens-11.0.0-beta.1 works nice 😊 In VSCode: F1 > vsix > ... install from VSIX

gitlens-11.0.0-beta.1.vsix.zip

@ili101
Copy link

ili101 commented Oct 9, 2020

gitlens-11.0.0-beta.1 works nice 😊 In VSCode: F1 > vsix > ... install from VSIX

gitlens-11.0.0-beta.1.vsix.zip

Not working for me, same error.
Going back to your dist.zip

@p3t3r5
Copy link

p3t3r5 commented Oct 12, 2020

Confirmed, gitlens-11.0.0-beta.1 not working with UNC Pathes, but it works on Network Drive

@mikes-gh
Copy link

11.0.1 is out but this issue still exists.
@eamodio I think this is affecting enough people to look at.
Looks like a simple fix?

@eamodio eamodio added help wanted Want community input and/or pull request bug Something isn't working and removed type: potential bug labels Nov 19, 2020
@eamodio eamodio added this to the Backlog milestone Nov 19, 2020
@eamodio
Copy link
Member

eamodio commented Nov 19, 2020

@mikes-gh If you are able to dig into it and provide a PR that would be greatly helpful

@mikes-gh
Copy link

@eamodio Happy to do PR I have spent a few hours looking..
Before I start I need some insight.

It seems the gitlens document scheme doesn't play well with UNC.

https://github.com/eamodio/vscode-gitlens/blob/b0fab09dd9325228ba0a1f602f27aff0fca1f484/src/git/gitUri.ts#L56

So when the uri is split the shortsha ends up being the authority and the path loses its double slash \\
This is the behaviour of the base class that vscode uri provides.

gitlens://0cee44d/aesrocc/home/ROCCTEST/fldedit/invfe53gst.et?{"path":"//aesrocc/home/ROCCTEST/fldedit/invfe53gst.et","ref":"0cee44d88243c4180f17837d9adf3b43a231ead2","repoPath":"//aesrocc/home/ROCCTEST"}
\_____/   \_____/\__________________________________________/ \___________________________________________________________________________________________________________________________________________/ 
   |        |            |                                                                                 |
scheme     authority       path                                                                 query   

uri.path = /aesrocc/home/ROCCTEST/fldedit/invfe53gst.et
but the network path is still correct in the query
data.path = //aesrocc/home/ROCCTEST/fldedit/invfe53gst.et (from query)

Also could you explain this bit of code.

https://github.com/eamodio/vscode-gitlens/blob/b0fab09dd9325228ba0a1f602f27aff0fca1f484/src/git/gitUri.ts#L59

It is in this area that I could potentially fix the uri.path to be the data.path but I am unsure of the original design intentions and feel this may introduce a regression in other scenarios.

Your input would greatly aid me in direction of the PR.

@voguemaster
Copy link

HI,
I can also add that this fails for subst drives under Windows. I've a repository on drive E: and the repository is subst into another drive (v:). I get this error from gitlens:

[2020-11-20 12:11:04:316] [e:/Data/Repos/myrepo] Git Command failed: C:\Program Files\Git\cmd\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false -c color.status=false status --porcelain=v2 --find-renames=10% -- v:/mp/portal/LightViewer/Client/JavaScript/LVClient/EngineLayer/SyncZP.js • v:/mp/portal/LightViewer/Client/JavaScript/LVClient/EngineLayer/SyncZP.js: 'v:/mp/portal/LightViewer/Client/JavaScript/LVClient/EngineLayer/SyncZP.js' is outside repository at 'E:/Data/Repos/myrepo' • 112 ms

This used to work with the previous GitLens version and previous git version. You can check this out as well:
pre-commit/pre-commit#1610

However, things like adding and committing works in VSCode (I have 1.51) so I guess it somehow knows how to handle subst drives.

Thanks! If I can do anything to help speed this along, I'd help.

@mikes-gh
Copy link

@eamodio

uri.fsPath in vscode wont play nicely with the short sha as the authority

https://github.com/microsoft/vscode-uri/blob/ddd89dfc5ef3e8385588a5ee6244b1302c969670/src/index.ts#L1083

Not designed to work with gitslens scheme.

mikes-gh pushed a commit to mikes-gh/vscode-gitlens that referenced this issue Nov 21, 2020
mikes-gh pushed a commit to mikes-gh/vscode-gitlens that referenced this issue Nov 21, 2020
mikes-gh pushed a commit to mikes-gh/vscode-gitlens that referenced this issue Nov 21, 2020
mikes-gh pushed a commit to mikes-gh/vscode-gitlens that referenced this issue Nov 24, 2020
mikes-gh pushed a commit to mikes-gh/vscode-gitlens that referenced this issue Nov 24, 2020
mikes-gh pushed a commit to mikes-gh/vscode-gitlens that referenced this issue Nov 24, 2020
@egfx-notifications
Copy link
Contributor

Sorry for late response, I had a few busy days at work.

This seems odd:

[2020-12-08 08:55:14:086] [3] GitService.repositorySearch(k:\USER\Flo\Script\vs-konfiguration) found root repository in 'k:'

The actual git repository is k:\USER\Flo\Script\vs-konfiguration

Behind the letter K: is a windows NAS, mapped using a UNC path.

Here's the debug output:

[2020-12-08 08:55:13:411] GitLens (v2020.12.704): syncedVersion=2020.12.304, previousVersion=2020.12.304, gitlens:views:welcome:visible=false, gitlens:views:updates:visible=false
[2020-12-08 08:55:13:412] [1] GitService.initialize
[2020-12-08 08:55:13:412] [2] GitService.getBuiltInGitApi
[2020-12-08 08:55:13:413] [2] GitService.getBuiltInGitApi completed • 0 ms
[2020-12-08 08:55:13:674] Git found: 2.29.2.windows.2 @ C:\Program Files\cmder\vendor\git-for-windows\bin\git.exe • 261 ms
[2020-12-08 08:55:13:674] [1] GitService.initialize completed • 261 ms
[2020-12-08 08:55:13:676] Starting repository search in 1 folders
[2020-12-08 08:55:13:676] [3] GitService.repositorySearch(k:\USER\Flo\Script\vs-konfiguration) searching (depth=1)...
[2020-12-08 08:55:13:677] [4] GitService.getRepoPathCore — e=k:\USER\Flo\Script\vs-konfiguration, t=true
[2020-12-08 08:55:13:697] [5] LineAnnotationController.resume
[2020-12-08 08:55:13:697] [6] GitLineTracker.start
[2020-12-08 08:55:13:698] [6] GitLineTracker.start completed • 0 ms
[2020-12-08 08:55:13:698] [5] LineAnnotationController.resume completed • 0 ms
[2020-12-08 08:55:13:698] [7] LineAnnotationController.refresh
[2020-12-08 08:55:13:698] [8] GitLineTracker.start
[2020-12-08 08:55:13:698] [8] GitLineTracker.start completed • 0 ms
[2020-12-08 08:55:13:699] [9] GitLineTracker.start
[2020-12-08 08:55:13:699] [9] GitLineTracker.start completed • 0 ms
[2020-12-08 08:55:13:712] GitLens upgraded from v2020.12.304 to v2020.12.704
[2020-12-08 08:55:13:713] GitLens (v2020.12.704) activated • 302 ms
[2020-12-08 08:55:13:713] [7] LineAnnotationController.refresh completed • 14 ms
[2020-12-08 08:55:14:077] [k:\USER\Flo\Script\vs-konfiguration] git rev-parse --show-toplevel • 399 ms
[2020-12-08 08:55:14:086] [4] GitService.getRepoPathCore completed • 409 ms
[2020-12-08 08:55:14:086] [3] GitService.repositorySearch(k:\USER\Flo\Script\vs-konfiguration) found root repository in 'k:'
[2020-12-08 08:55:14:088] [a] GitService.repositorySearchCore — e=k:\USER\Flo\Script\vs-konfiguration, t=1
[2020-12-08 08:55:14:093] [b] GitService.repositorySearchCore — e=k:\USER\Flo\Script\vs-konfiguration\Backup Studio Setup, t=0
[2020-12-08 08:55:14:102] [b] GitService.repositorySearchCore completed • 8 ms
[2020-12-08 08:55:14:102] [c] GitService.repositorySearchCore — e=k:\USER\Flo\Script\vs-konfiguration\PSP Install, t=0
[2020-12-08 08:55:14:107] [c] GitService.repositorySearchCore completed • 4 ms
[2020-12-08 08:55:14:107] [d] GitService.repositorySearchCore — e=k:\USER\Flo\Script\vs-konfiguration\viz-io_stuff, t=0
[2020-12-08 08:55:14:113] [d] GitService.repositorySearchCore completed • 6 ms
[2020-12-08 08:55:14:113] [e] GitService.repositorySearchCore — e=k:\USER\Flo\Script\vs-konfiguration\VS_Kalibrierung, t=0
[2020-12-08 08:55:14:118] [e] GitService.repositorySearchCore completed • 4 ms
[2020-12-08 08:55:14:118] [a] GitService.repositorySearchCore completed • 29 ms
[2020-12-08 08:55:14:118] [3] GitService.repositorySearch(k:\USER\Flo\Script\vs-konfiguration) searching in 'k:\USER\Flo\Script\vs-konfiguration'...
[2020-12-08 08:55:14:118] [f] GitService.getRepoPathCore — e=k:\USER\Flo\Script\vs-konfiguration, t=true
[2020-12-08 08:55:14:468] [k:\USER\Flo\Script\vs-konfiguration] git rev-parse --show-toplevel • 349 ms
[2020-12-08 08:55:14:520] [f] GitService.getRepoPathCore completed • 401 ms
[2020-12-08 08:55:14:520] [3] GitService.repositorySearch(k:\USER\Flo\Script\vs-konfiguration) found repository in 'k:'
[2020-12-08 08:55:14:520] [3] GitService.repositorySearch(k:\USER\Flo\Script\vs-konfiguration) returned 2 repositories (k:, k:) • 844 ms
[2020-12-08 08:55:14:991] [k:] git remote -v • 292 ms
[2020-12-08 08:55:14:992] [10] GitRemoteParser.parse completed • 0 ms
[2020-12-08 08:55:14:992] [11] GitService.getRichRemoteProvider
[2020-12-08 08:55:14:992] [11] GitService.getRichRemoteProvider completed • 0 ms
[2020-12-08 08:55:15:386] [k:] git remote -v • 393 ms
[2020-12-08 08:55:15:386] [12] GitRemoteParser.parse completed • 0 ms
[2020-12-08 08:55:15:387] [13] GitService.getRichRemoteProvider — {"includeDisconnected":true}
[2020-12-08 08:55:15:387] [13] GitService.getRichRemoteProvider completed • 0 ms
[2020-12-08 08:55:15:802] [k:] git remote -v • 415 ms
[2020-12-08 08:55:15:803] [14] GitRemoteParser.parse completed • 0 ms
[2020-12-08 08:55:29:330] [15] GitService.getHighlanderRepoPath
[2020-12-08 08:55:29:331] [15] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 08:55:29:331] [16] GitService.getBranchesAndOrTags — e=k:
[2020-12-08 08:55:29:332] [17] GitService.getBranches — e=k:, t={}
[2020-12-08 08:55:29:347] [18] GitService.getTags — e=k:, t={}
[2020-12-08 08:55:29:569] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 221 ms
[2020-12-08 08:55:29:569] [19] GitTagParser.parse completed • 0 ms
[2020-12-08 08:55:29:569] [1a] GitService.getRepository — e=k:
[2020-12-08 08:55:29:569] [1a] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:29:569] [18] GitService.getTags completed • 222 ms
[2020-12-08 08:55:29:614] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 282 ms
[2020-12-08 08:55:29:615] [1b] GitBranchParser.parse completed • 0 ms
[2020-12-08 08:55:29:615] [1c] GitService.getRepository — e=k:
[2020-12-08 08:55:29:615] [1c] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:29:615] [17] GitService.getBranches completed • 283 ms
[2020-12-08 08:55:29:615] [16] GitService.getBranchesAndOrTags completed • 283 ms
[2020-12-08 08:55:30:711] [1d] GitService.onWindowStateChanged — e={"focused":false}
[2020-12-08 08:55:30:711] [1d] GitService.onWindowStateChanged completed • 0 ms
[2020-12-08 08:55:33:813] [1e] GitService.onWindowStateChanged — e={"focused":true}
[2020-12-08 08:55:33:814] [1e] GitService.onWindowStateChanged completed • 0 ms
[2020-12-08 08:55:39:124] [1f] GitService.getHighlanderRepoPath
[2020-12-08 08:55:39:124] [1f] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 08:55:39:124] [20] GitService.getBranchesAndOrTags — e=k:
[2020-12-08 08:55:39:125] [21] GitService.getBranches — e=k:, t={}
[2020-12-08 08:55:39:138] [22] GitService.getTags — e=k:, t={}
[2020-12-08 08:55:39:158] [23] GitService.getHighlanderRepoPath
[2020-12-08 08:55:39:158] [23] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 08:55:39:158] [24] GitService.getBranchesAndOrTags — e=k:
[2020-12-08 08:55:39:158] [25] GitService.getBranches — e=k:, t={}
[2020-12-08 08:55:39:159] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • waiting...
[2020-12-08 08:55:39:159] [26] GitService.getTags — e=k:, t={}
[2020-12-08 08:55:39:159] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • waiting...
[2020-12-08 08:55:39:190] [27] GitService.getHighlanderRepoPath
[2020-12-08 08:55:39:190] [27] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 08:55:39:190] [28] GitService.getBranchesAndOrTags — e=k:
[2020-12-08 08:55:39:190] [29] GitService.getBranches — e=k:, t={}
[2020-12-08 08:55:39:190] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • waiting...
[2020-12-08 08:55:39:190] [2a] GitService.getTags — e=k:, t={}
[2020-12-08 08:55:39:191] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • waiting...
[2020-12-08 08:55:39:392] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 253 ms
[2020-12-08 08:55:39:392] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 233 ms (waited)
[2020-12-08 08:55:39:392] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 201 ms (waited)
[2020-12-08 08:55:39:392] [2b] GitTagParser.parse completed • 0 ms
[2020-12-08 08:55:39:392] [2c] GitService.getRepository — e=k:
[2020-12-08 08:55:39:392] [2d] GitTagParser.parse completed • 0 ms
[2020-12-08 08:55:39:392] [2e] GitService.getRepository — e=k:
[2020-12-08 08:55:39:392] [2f] GitTagParser.parse completed • 0 ms
[2020-12-08 08:55:39:392] [30] GitService.getRepository — e=k:
[2020-12-08 08:55:39:393] [2c] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:39:393] [2e] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:39:393] [30] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:39:393] [22] GitService.getTags completed • 254 ms
[2020-12-08 08:55:39:393] [26] GitService.getTags completed • 233 ms
[2020-12-08 08:55:39:393] [2a] GitService.getTags completed • 202 ms
[2020-12-08 08:55:39:438] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 313 ms
[2020-12-08 08:55:39:438] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 279 ms (waited)
[2020-12-08 08:55:39:438] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 248 ms (waited)
[2020-12-08 08:55:39:438] [31] GitBranchParser.parse completed • 0 ms
[2020-12-08 08:55:39:438] [32] GitService.getRepository — e=k:
[2020-12-08 08:55:39:439] [33] GitBranchParser.parse completed • 0 ms
[2020-12-08 08:55:39:439] [34] GitService.getRepository — e=k:
[2020-12-08 08:55:39:439] [35] GitBranchParser.parse completed • 0 ms
[2020-12-08 08:55:39:439] [36] GitService.getRepository — e=k:
[2020-12-08 08:55:39:439] [32] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:39:439] [34] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:39:439] [36] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:39:439] [21] GitService.getBranches completed • 314 ms
[2020-12-08 08:55:39:439] [25] GitService.getBranches completed • 280 ms
[2020-12-08 08:55:39:439] [29] GitService.getBranches completed • 248 ms
[2020-12-08 08:55:39:439] [20] GitService.getBranchesAndOrTags completed • 314 ms
[2020-12-08 08:55:39:439] [24] GitService.getBranchesAndOrTags completed • 280 ms
[2020-12-08 08:55:39:439] [28] GitService.getBranchesAndOrTags completed • 249 ms
[2020-12-08 08:55:40:575] [37] GitService.getHighlanderRepoPath
[2020-12-08 08:55:40:575] [37] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 08:55:40:575] [38] GitService.getBranchesAndOrTags — e=k:
[2020-12-08 08:55:40:575] [39] GitService.getBranches — e=k:, t={}
[2020-12-08 08:55:40:589] [3a] GitService.getTags — e=k:, t={}
[2020-12-08 08:55:40:602] [3b] GitService.getHighlanderRepoPath
[2020-12-08 08:55:40:602] [3b] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 08:55:40:602] [3c] GitService.getBranchesAndOrTags — e=k:
[2020-12-08 08:55:40:602] [3d] GitService.getBranches — e=k:, t={}
[2020-12-08 08:55:40:602] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • waiting...
[2020-12-08 08:55:40:602] [3e] GitService.getTags — e=k:, t={}
[2020-12-08 08:55:40:603] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • waiting...
[2020-12-08 08:55:40:915] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 326 ms
[2020-12-08 08:55:40:915] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 312 ms (waited)
[2020-12-08 08:55:40:915] [3f] GitTagParser.parse completed • 0 ms
[2020-12-08 08:55:40:915] [40] GitService.getRepository — e=k:
[2020-12-08 08:55:40:915] [41] GitTagParser.parse completed • 0 ms
[2020-12-08 08:55:40:915] [42] GitService.getRepository — e=k:
[2020-12-08 08:55:40:915] [40] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:40:915] [42] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:40:915] [3a] GitService.getTags completed • 326 ms
[2020-12-08 08:55:40:915] [3e] GitService.getTags completed • 312 ms
[2020-12-08 08:55:40:915] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 340 ms
[2020-12-08 08:55:40:915] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 313 ms (waited)
[2020-12-08 08:55:40:915] [43] GitBranchParser.parse completed • 0 ms
[2020-12-08 08:55:40:916] [44] GitService.getRepository — e=k:
[2020-12-08 08:55:40:916] [45] GitBranchParser.parse completed • 0 ms
[2020-12-08 08:55:40:916] [46] GitService.getRepository — e=k:
[2020-12-08 08:55:40:916] [44] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:40:916] [46] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:40:916] [39] GitService.getBranches completed • 340 ms
[2020-12-08 08:55:40:916] [3d] GitService.getBranches completed • 313 ms
[2020-12-08 08:55:40:916] [38] GitService.getBranchesAndOrTags completed • 340 ms
[2020-12-08 08:55:40:916] [3c] GitService.getBranchesAndOrTags completed • 313 ms
[2020-12-08 08:55:41:402] [47] GitService.getHighlanderRepoPath
[2020-12-08 08:55:41:402] [47] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 08:55:41:402] [48] GitService.getBranchesAndOrTags — e=k:
[2020-12-08 08:55:41:402] [49] GitService.getBranches — e=k:, t={}
[2020-12-08 08:55:41:415] [4a] GitService.getTags — e=k:, t={}
[2020-12-08 08:55:41:428] [4b] GitService.getHighlanderRepoPath
[2020-12-08 08:55:41:428] [4b] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 08:55:41:428] [4c] GitService.getBranchesAndOrTags — e=k:
[2020-12-08 08:55:41:428] [4d] GitService.getBranches — e=k:, t={}
[2020-12-08 08:55:41:429] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • waiting...
[2020-12-08 08:55:41:429] [4e] GitService.getTags — e=k:, t={}
[2020-12-08 08:55:41:429] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • waiting...
[2020-12-08 08:55:41:649] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 234 ms
[2020-12-08 08:55:41:649] [k:] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 220 ms (waited)
[2020-12-08 08:55:41:649] [4f] GitTagParser.parse completed • 0 ms
[2020-12-08 08:55:41:649] [50] GitService.getRepository — e=k:
[2020-12-08 08:55:41:649] [51] GitTagParser.parse completed • 0 ms
[2020-12-08 08:55:41:649] [52] GitService.getRepository — e=k:
[2020-12-08 08:55:41:650] [50] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:41:650] [52] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:41:650] [4a] GitService.getTags completed • 234 ms
[2020-12-08 08:55:41:650] [4e] GitService.getTags completed • 220 ms
[2020-12-08 08:55:41:686] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 284 ms
[2020-12-08 08:55:41:686] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 258 ms (waited)
[2020-12-08 08:55:41:687] [53] GitBranchParser.parse completed • 0 ms
[2020-12-08 08:55:41:687] [54] GitService.getRepository — e=k:
[2020-12-08 08:55:41:687] [55] GitBranchParser.parse completed • 0 ms
[2020-12-08 08:55:41:687] [56] GitService.getRepository — e=k:
[2020-12-08 08:55:41:687] [54] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:41:687] [56] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:55:41:687] [49] GitService.getBranches completed • 284 ms
[2020-12-08 08:55:41:687] [4d] GitService.getBranches completed • 258 ms
[2020-12-08 08:55:41:687] [48] GitService.getBranchesAndOrTags completed • 284 ms
[2020-12-08 08:55:41:687] [4c] GitService.getBranchesAndOrTags completed • 258 ms
[2020-12-08 08:57:18:016] [57] GitUri.fromUri — e=Uri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)
[2020-12-08 08:57:18:017] [58] GitService.getRepoPath — e=Uri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)
[2020-12-08 08:57:18:017] [59] GitService.getRepository — e=Uri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg), t={"skipCacheUpdate":true}
[2020-12-08 08:57:18:101] [5b] LineAnnotationController.onActiveLinesChanged — e=editor=file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=undefined, pending=true, reason=editor
[2020-12-08 08:57:18:101] [5c] LineAnnotationController.clear completed • 0 ms
[2020-12-08 08:57:18:101] [5b] LineAnnotationController.onActiveLinesChanged completed • 0 ms
[2020-12-08 08:57:18:101] [5d] LineHoverController.onActiveLinesChanged — e=editor=file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=undefined, pending=true, reason=editor
[2020-12-08 08:57:18:101] [5d] LineHoverController.onActiveLinesChanged completed • 0 ms
[2020-12-08 08:57:18:101] [5e] StatusBarController.onActiveLinesChanged — e=editor=file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=undefined, pending=true, reason=editor
[2020-12-08 08:57:18:101] [5e] StatusBarController.onActiveLinesChanged completed • 0 ms
[2020-12-08 08:57:18:331] [k:] git ls-files -- USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg • 273 ms
[2020-12-08 08:57:18:331] [5a] GitService.isTracked returned false • 273 ms — e=k:\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg, t=k:, i={"skipCacheUpdate":true}
[2020-12-08 08:57:18:331] [59] GitService.getRepository returned undefined • 314 ms
[2020-12-08 08:57:18:331] [5f] GitService.getRepoPathCore — e=k:\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg, t=false
[2020-12-08 08:57:18:532] [k:\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A] git rev-parse --show-toplevel • 201 ms
[2020-12-08 08:57:18:536] [5f] GitService.getRepoPathCore completed • 205 ms
[2020-12-08 08:57:18:536] [58] GitService.getRepoPath returned k: • 519 ms
[2020-12-08 08:57:18:537] [57] GitUri.fromUri returned GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:) • 520 ms
[2020-12-08 08:57:18:537] [61] GitService.getRepository — e=GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:)
[2020-12-08 08:57:18:537] [61] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:57:18:744] [k:] git ls-files -- k:\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg • 206 ms
[2020-12-08 08:57:18:744] [62] GitService.isTracked returned true • 207 ms — e=GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:)
[2020-12-08 08:57:18:949] [k:] git remote -v • 204 ms
[2020-12-08 08:57:18:950] [63] GitRemoteParser.parse completed • 0 ms
[2020-12-08 08:57:18:950] [64] GitService.getBlameForFile — e=GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:)
[2020-12-08 08:57:18:951] [65] GitService.getBlameForLine — e=GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:), t=0
[2020-12-08 08:57:18:951] [66] GitService.getBlameForFile — e=GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:)
[2020-12-08 08:57:18:951] [64] GitService.getBlameForFile Cache miss: 'blame'
[2020-12-08 08:57:18:951] [64] GitService.getBlameForFile Cache add: 'blame'
[2020-12-08 08:57:18:951] [66] GitService.getBlameForFile Cache hit: 'blame'
[2020-12-08 08:57:18:952] [67] GitService.isTracked returned true • 0 ms — e=GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:)
[2020-12-08 08:57:19:237] [k:] Git Command failed: C:\Program Files\cmder\vendor\git-for-windows\bin\git.exe -c core.longpaths=true -c core.quotepath=false -c color.ui=false blame --root --incremental -- USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg • no such path 'USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg' in HEAD • 285 ms
[2020-12-08 08:57:19:237] [k:] git blame --root --incremental -- USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg • 285 ms
[2020-12-08 08:57:19:238] [68] GitService.getCurrentUser — k:
[2020-12-08 08:57:19:446] [k:] git config --get-regex ^user. • 207 ms
[2020-12-08 08:57:19:446] [68] GitService.getCurrentUser completed • 208 ms
[2020-12-08 08:57:19:446] [69] GitBlameParser.parse completed • 0 ms
[2020-12-08 08:57:19:446] [64] GitService.getBlameForFile completed • 495 ms
[2020-12-08 08:57:19:446] [66] GitService.getBlameForFile completed • 494 ms
[2020-12-08 08:57:19:446] [65] GitService.getBlameForLine completed • 495 ms
[2020-12-08 08:57:19:446] [60] GitLineTracker.updateState returned false • blame failed • 1093 ms — e=0, t=file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg
[2020-12-08 08:57:19:446] [6a] LineAnnotationController.onActiveLinesChanged — e=editor=file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=undefined, pending=false, reason=editor
[2020-12-08 08:57:19:446] [6b] LineAnnotationController.clear completed • 0 ms
[2020-12-08 08:57:19:446] [6a] LineAnnotationController.onActiveLinesChanged completed • 0 ms
[2020-12-08 08:57:19:446] [6c] LineHoverController.onActiveLinesChanged — e=editor=file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=undefined, pending=false, reason=editor
[2020-12-08 08:57:19:446] [6c] LineHoverController.onActiveLinesChanged completed • 0 ms
[2020-12-08 08:57:19:446] [6d] StatusBarController.onActiveLinesChanged — e=editor=file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=undefined, pending=false, reason=editor
[2020-12-08 08:57:19:446] [6d] StatusBarController.onActiveLinesChanged completed • 0 ms
[2020-12-08 08:57:53:901] [6e] FileHistoryTrackerNode.ensureSubscription
[2020-12-08 08:57:53:901] [6f] FileHistoryTrackerNode.unsubscribe
[2020-12-08 08:57:53:902] [6f] FileHistoryTrackerNode.unsubscribe completed • 0 ms
[2020-12-08 08:57:53:902] [6e] FileHistoryTrackerNode.ensureSubscription completed • 1 ms
[2020-12-08 08:57:54:154] [70] FileHistoryTrackerNode.onVisibilityChanged — e={"visible":true}
[2020-12-08 08:57:54:154] [71] FileHistoryTrackerNode.ensureSubscription
[2020-12-08 08:57:54:154] [72] FileHistoryTrackerNode.subscribe
[2020-12-08 08:57:54:154] [72] FileHistoryTrackerNode.subscribe completed • 0 ms
[2020-12-08 08:57:54:154] [73] FileHistoryTrackerNode.triggerChange — false
[2020-12-08 08:57:54:154] [74] FileHistoryTrackerNode.triggerChange — false, false
[2020-12-08 08:57:54:154] [75] FileHistoryView.refreshNode — e=FileHistoryTrackerNode, t=false, i=false
[2020-12-08 08:57:54:154] [76] FileHistoryTrackerNode.refresh — false
[2020-12-08 08:57:54:155] [77] GitUri.fromUri — e=Uri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)
[2020-12-08 08:57:54:155] [78] GitService.getRepoPath — e=Uri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)
[2020-12-08 08:57:54:155] [79] GitService.getRepository — e=Uri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg), t={"skipCacheUpdate":true}
[2020-12-08 08:57:54:155] [70] FileHistoryTrackerNode.onVisibilityChanged completed • 0 ms
[2020-12-08 08:57:54:155] [71] FileHistoryTrackerNode.ensureSubscription completed • 1 ms
[2020-12-08 08:57:54:155] [7a] GitService.isTracked returned true • 0 ms — e=k:\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg, t=k:, i={"skipCacheUpdate":true}
[2020-12-08 08:57:54:155] [79] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:57:54:155] [78] GitService.getRepoPath returned k: • 0 ms
[2020-12-08 08:57:54:155] [77] GitUri.fromUri returned GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:) • 0 ms
[2020-12-08 08:57:54:155] [7b] FileHistoryTrackerNode.resetChild
[2020-12-08 08:57:54:155] [7b] FileHistoryTrackerNode.resetChild completed • 0 ms
[2020-12-08 08:57:54:155] [76] FileHistoryTrackerNode.refresh returned false, uri=GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:) • 0 ms
[2020-12-08 08:57:54:155] [7c] FileHistoryView.triggerNodeChange — e=FileHistoryTrackerNode
[2020-12-08 08:57:54:155] [7c] FileHistoryView.triggerNodeChange completed • 0 ms
[2020-12-08 08:57:54:156] [75] FileHistoryView.refreshNode completed • 1 ms
[2020-12-08 08:57:54:156] [74] FileHistoryTrackerNode.triggerChange completed • 1 ms
[2020-12-08 08:57:54:156] [73] FileHistoryTrackerNode.triggerChange completed • 1 ms
[2020-12-08 08:57:54:157] [7d] FileHistoryTrackerNode.ensureSubscription
[2020-12-08 08:57:54:157] [7e] GitService.getBranch — e=k:
[2020-12-08 08:57:54:157] [7f] GitService.getBranches — e=k:, t={}
[2020-12-08 08:57:54:183] [7d] FileHistoryTrackerNode.ensureSubscription completed • 26 ms
[2020-12-08 08:57:54:474] [k:] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 316 ms
[2020-12-08 08:57:54:474] [80] GitBranchParser.parse completed • 0 ms
[2020-12-08 08:57:54:474] [81] GitService.getRepository — e=k:
[2020-12-08 08:57:54:474] [81] GitService.getRepository returned k: • 0 ms
[2020-12-08 08:57:54:474] [7f] GitService.getBranches completed • 316 ms
[2020-12-08 08:57:54:474] [7e] GitService.getBranch completed • 316 ms
[2020-12-08 08:57:54:474] [82] FileHistoryNode(gitlens:repository(k:):history:file(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)).ensureSubscription
[2020-12-08 08:57:54:474] [83] FileHistoryNode(gitlens:repository(k:):history:file(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)).subscribe
[2020-12-08 08:57:54:474] [84] GitService.getRepository — e=GitUri(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=k:)
[2020-12-08 08:57:54:475] [85] GitService.getBranchAheadRange — e=master
[2020-12-08 08:57:54:475] [85] GitService.getBranchAheadRange completed • 0 ms
[2020-12-08 08:57:54:475] [86] GitService.getLogForFile — e=k:, t=k:\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg, i={"limit":40}
[2020-12-08 08:57:54:476] [87] GitService.getStatusForFile — e=k:, t=k:\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg
[2020-12-08 08:57:54:500] [84] GitService.getRepository returned k: • 25 ms
[2020-12-08 08:57:54:501] [83] FileHistoryNode(gitlens:repository(k:):history:file(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)).subscribe completed • 26 ms
[2020-12-08 08:57:54:501] [82] FileHistoryNode(gitlens:repository(k:):history:file(file:///k:/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)).ensureSubscription completed • 26 ms
[2020-12-08 08:57:54:501] [86] GitService.getLogForFile Cache miss: 'log:n40'
[2020-12-08 08:57:54:501] [86] GitService.getLogForFile Cache add: 'log:n40'
[2020-12-08 08:57:54:501] [88] GitService.isTracked returned true • 0 ms — e=k:\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg, t=k:, i={}
[2020-12-08 08:57:54:833] [k:] git status --porcelain=v2 --find-renames -- USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg • 356 ms
[2020-12-08 08:57:54:833] [89] GitStatusParser.parse completed • 0 ms
[2020-12-08 08:57:54:833] [87] GitService.getStatusForFile completed • 357 ms
[2020-12-08 08:57:54:863] [k:] git log --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e -n41 -m --numstat --summary -- USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg • 360 ms
[2020-12-08 08:57:54:863] [8a] GitService.getCurrentUser — k:
[2020-12-08 08:57:54:863] [8a] GitService.getCurrentUser completed • 0 ms
[2020-12-08 08:57:54:863] [8b] GitLogParser.parse
[2020-12-08 08:57:54:863] [8b] GitLogParser.parse completed • 0 ms
[2020-12-08 08:57:54:863] [86] GitService.getLogForFile completed • 388 ms
[2020-12-08 08:58:06:211] [8c] FileHistoryTrackerNode.onActiveEditorChanged
[2020-12-08 08:58:06:211] [8d] FileHistoryTrackerNode.triggerChange
[2020-12-08 08:58:06:211] [8e] FileHistoryTrackerNode.triggerChange — false, false
[2020-12-08 08:58:06:211] [8f] FileHistoryView.refreshNode — e=FileHistoryTrackerNode, t=false, i=false
[2020-12-08 08:58:06:211] [90] FileHistoryTrackerNode.refresh — false
[2020-12-08 08:58:06:211] [8c] FileHistoryTrackerNode.onActiveEditorChanged completed • 0 ms
[2020-12-08 08:58:06:211] [90] FileHistoryTrackerNode.refresh returned true • 0 ms
[2020-12-08 08:58:06:211] [8f] FileHistoryView.refreshNode completed • 0 ms
[2020-12-08 08:58:06:211] [8e] FileHistoryTrackerNode.triggerChange completed • 0 ms
[2020-12-08 08:58:06:212] [8d] FileHistoryTrackerNode.triggerChange completed • 0 ms

@egfx-notifications
Copy link
Contributor

Here's the debug output if opening the same git repository using the UNC path directly, not via the mapped drive. In this case everything works fine and the repository is correctly identified as root repository:

[2020-12-08 10:10:32:053] GitLens (v2020.12.804): syncedVersion=2020.12.704, previousVersion=2020.12.704, gitlens:views:welcome:visible=false, gitlens:views:updates:visible=false
[2020-12-08 10:10:32:053] [1] GitService.initialize
[2020-12-08 10:10:32:054] [2] GitService.getBuiltInGitApi
[2020-12-08 10:10:32:054] [2] GitService.getBuiltInGitApi completed • 0 ms
[2020-12-08 10:10:32:473] Git found: 2.29.2.windows.2 @ C:\Program Files\cmder\vendor\git-for-windows\bin\git.exe • 418 ms
[2020-12-08 10:10:32:473] [1] GitService.initialize completed • 419 ms
[2020-12-08 10:10:32:474] Starting repository search in 1 folders
[2020-12-08 10:10:32:475] [3] GitService.repositorySearch(\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration) searching (depth=1)...
[2020-12-08 10:10:32:475] [4] GitService.getRepoPathCore — e=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration, t=true
[2020-12-08 10:10:32:492] [5] GitUri.fromUri — e=Uri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)
[2020-12-08 10:10:32:492] [6] GitService.getRepoPath — e=Uri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)
[2020-12-08 10:10:32:492] [7] GitService.getRepository — e=Uri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg), t={"skipCacheUpdate":true}
[2020-12-08 10:10:32:493] [8] LineAnnotationController.resume
[2020-12-08 10:10:32:493] [9] GitLineTracker.start
[2020-12-08 10:10:32:493] [9] GitLineTracker.start completed • 0 ms
[2020-12-08 10:10:32:493] [8] LineAnnotationController.resume completed • 0 ms
[2020-12-08 10:10:32:493] [a] LineAnnotationController.refresh
[2020-12-08 10:10:32:494] [b] LineAnnotationController.clear completed • 0 ms
[2020-12-08 10:10:32:494] [c] GitLineTracker.start
[2020-12-08 10:10:32:494] [c] GitLineTracker.start completed • 0 ms
[2020-12-08 10:10:32:495] [d] GitLineTracker.start
[2020-12-08 10:10:32:495] [d] GitLineTracker.start completed • 0 ms
[2020-12-08 10:10:32:507] GitLens upgraded from v2020.12.704 to v2020.12.804
[2020-12-08 10:10:32:508] GitLens (v2020.12.804) activated • 455 ms
[2020-12-08 10:10:32:508] [a] LineAnnotationController.refresh completed • Skipped because there is no valid editor or no valid selections • 14 ms
[2020-12-08 10:10:32:509] [e] LineAnnotationController.onActiveLinesChanged — e=editor=file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=undefined, pending=true, reason=editor
[2020-12-08 10:10:32:509] [f] LineAnnotationController.clear completed • 0 ms
[2020-12-08 10:10:32:509] [e] LineAnnotationController.onActiveLinesChanged completed • 0 ms
[2020-12-08 10:10:32:509] [10] LineHoverController.onActiveLinesChanged — e=editor=file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=undefined, pending=true, reason=editor
[2020-12-08 10:10:32:509] [10] LineHoverController.onActiveLinesChanged completed • 0 ms
[2020-12-08 10:10:32:509] [11] StatusBarController.onActiveLinesChanged — e=editor=file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=undefined, pending=true, reason=editor
[2020-12-08 10:10:32:509] [11] StatusBarController.onActiveLinesChanged completed • 0 ms
[2020-12-08 10:10:32:836] [\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration] git rev-parse --show-toplevel • 360 ms
[2020-12-08 10:10:32:836] [4] GitService.getRepoPathCore completed • 361 ms
[2020-12-08 10:10:32:836] [3] GitService.repositorySearch(\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration) found root repository in '//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration'
[2020-12-08 10:10:32:838] [13] GitService.repositorySearchCore — e=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration, t=1
[2020-12-08 10:10:32:843] [14] GitService.repositorySearchCore — e=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\Backup Studio Setup, t=0
[2020-12-08 10:10:32:845] [14] GitService.repositorySearchCore completed • 2 ms
[2020-12-08 10:10:32:845] [15] GitService.repositorySearchCore — e=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\PSP Install, t=0
[2020-12-08 10:10:32:848] [15] GitService.repositorySearchCore completed • 2 ms
[2020-12-08 10:10:32:848] [16] GitService.repositorySearchCore — e=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\viz-io_stuff, t=0
[2020-12-08 10:10:32:852] [16] GitService.repositorySearchCore completed • 3 ms
[2020-12-08 10:10:32:852] [17] GitService.repositorySearchCore — e=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\VS_Kalibrierung, t=0
[2020-12-08 10:10:32:857] [17] GitService.repositorySearchCore completed • 4 ms
[2020-12-08 10:10:32:857] [13] GitService.repositorySearchCore completed • 18 ms
[2020-12-08 10:10:32:857] [3] GitService.repositorySearch(\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration) returned 1 repositories (//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration) • 382 ms
[2020-12-08 10:10:33:232] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git remote -v • 373 ms
[2020-12-08 10:10:33:233] [18] GitRemoteParser.parse completed • 0 ms
[2020-12-08 10:10:33:234] [19] GitService.getRichRemoteProvider
[2020-12-08 10:10:33:234] [19] GitService.getRichRemoteProvider completed • 0 ms
[2020-12-08 10:10:33:234] [1a] GitService.getRichRemoteProvider — {"includeDisconnected":true}
[2020-12-08 10:10:33:234] [1a] GitService.getRichRemoteProvider completed • 0 ms
[2020-12-08 10:10:33:445] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git ls-files -- Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg • 209 ms
[2020-12-08 10:10:33:445] [1b] GitService.isTracked returned true • 209 ms — e=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg, t=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, i={"skipCacheUpdate":true}
[2020-12-08 10:10:33:445] [7] GitService.getRepository returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 953 ms
[2020-12-08 10:10:33:445] [6] GitService.getRepoPath returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 953 ms
[2020-12-08 10:10:33:445] [5] GitUri.fromUri returned GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration) • 953 ms
[2020-12-08 10:10:33:446] [1c] GitService.getRepository — e=GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration)
[2020-12-08 10:10:33:446] [1c] GitService.getRepository returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 0 ms
[2020-12-08 10:10:33:644] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git ls-files -- \bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg • 197 ms
[2020-12-08 10:10:33:644] [1d] GitService.isTracked returned true • 197 ms — e=GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration)
[2020-12-08 10:10:33:644] [1e] GitService.getBlameForLine — e=GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration), t=0
[2020-12-08 10:10:33:644] [1f] GitService.getBlameForFile — e=GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration)
[2020-12-08 10:10:33:644] [20] GitService.getBlameForFile — e=GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration)
[2020-12-08 10:10:33:645] [1f] GitService.getBlameForFile Cache miss: 'blame'
[2020-12-08 10:10:33:645] [1f] GitService.getBlameForFile Cache add: 'blame'
[2020-12-08 10:10:33:645] [20] GitService.getBlameForFile Cache hit: 'blame'
[2020-12-08 10:10:33:645] [21] GitService.isTracked returned true • 0 ms — e=GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration)
[2020-12-08 10:10:34:532] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git blame --root --incremental -- Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg • 886 ms
[2020-12-08 10:10:34:532] [22] GitService.getCurrentUser — //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:34:836] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git config --get-regex ^user. • 303 ms
[2020-12-08 10:10:34:836] [22] GitService.getCurrentUser completed • 303 ms
[2020-12-08 10:10:34:837] [23] GitBlameParser.parse completed • 0 ms
[2020-12-08 10:10:34:837] [1f] GitService.getBlameForFile completed • 1192 ms
[2020-12-08 10:10:34:837] [20] GitService.getBlameForFile completed • 1192 ms
[2020-12-08 10:10:34:837] [1e] GitService.getBlameForLine completed • 1193 ms
[2020-12-08 10:10:34:838] [12] GitLineTracker.updateState returned true • 2016 ms — e=0, t=file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg
[2020-12-08 10:10:34:838] [24] LineAnnotationController.onActiveLinesChanged — e=editor=file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=[0-0], pending=false, reason=editor
[2020-12-08 10:10:34:838] [25] LineAnnotationController.refresh
[2020-12-08 10:10:34:838] [26] LineAnnotationController.clear completed • 0 ms
[2020-12-08 10:10:34:838] [24] LineAnnotationController.onActiveLinesChanged completed • 0 ms
[2020-12-08 10:10:34:838] [27] LineHoverController.onActiveLinesChanged — e=editor=file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=[0-0], pending=false, reason=editor
[2020-12-08 10:10:34:838] [27] LineHoverController.onActiveLinesChanged completed • 0 ms
[2020-12-08 10:10:34:838] [28] StatusBarController.onActiveLinesChanged — e=editor=file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg, selections=[0-0], pending=false, reason=editor
[2020-12-08 10:10:34:838] [29] StatusBarController.updateBlame
[2020-12-08 10:10:34:839] [2a] GitService.getRichRemoteProvider
[2020-12-08 10:10:34:839] [28] StatusBarController.onActiveLinesChanged completed • 0 ms
[2020-12-08 10:10:34:839] [2a] GitService.getRichRemoteProvider completed • 0 ms
[2020-12-08 10:10:34:839] [2b] GitService.getRichRemoteProvider
[2020-12-08 10:10:34:839] [2b] GitService.getRichRemoteProvider completed • 0 ms
[2020-12-08 10:10:34:842] [29] StatusBarController.updateBlame completed • 3 ms
[2020-12-08 10:10:34:844] [25] LineAnnotationController.refresh completed • selection(s)=[0-0] • 6 ms
[2020-12-08 10:10:35:103] [2c] GitService.getBlameForRangeSync — e=, t=GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration), i=[{"line":0,"character":0},{"line":34,"character":0}]
[2020-12-08 10:10:35:104] [2c] GitService.getBlameForRangeSync completed • 0 ms
[2020-12-08 10:10:36:029] [2d] FileHistoryTrackerNode.ensureSubscription
[2020-12-08 10:10:36:029] [2e] FileHistoryTrackerNode.unsubscribe
[2020-12-08 10:10:36:030] [2e] FileHistoryTrackerNode.unsubscribe completed • 0 ms
[2020-12-08 10:10:36:030] [2d] FileHistoryTrackerNode.ensureSubscription completed • 0 ms
[2020-12-08 10:10:36:280] [2f] FileHistoryTrackerNode.onVisibilityChanged — e={"visible":true}
[2020-12-08 10:10:36:280] [30] FileHistoryTrackerNode.ensureSubscription
[2020-12-08 10:10:36:280] [31] FileHistoryTrackerNode.subscribe
[2020-12-08 10:10:36:280] [31] FileHistoryTrackerNode.subscribe completed • 0 ms
[2020-12-08 10:10:36:280] [32] FileHistoryTrackerNode.triggerChange — false
[2020-12-08 10:10:36:280] [33] FileHistoryTrackerNode.triggerChange — false, false
[2020-12-08 10:10:36:280] [34] FileHistoryView.refreshNode — e=FileHistoryTrackerNode, t=false, i=false
[2020-12-08 10:10:36:280] [35] FileHistoryTrackerNode.refresh — false
[2020-12-08 10:10:36:281] [36] GitUri.fromUri — e=Uri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)
[2020-12-08 10:10:36:281] [37] GitService.getRepoPath — e=Uri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)
[2020-12-08 10:10:36:281] [38] GitService.getRepository — e=Uri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg), t={"skipCacheUpdate":true}
[2020-12-08 10:10:36:281] [2f] FileHistoryTrackerNode.onVisibilityChanged completed • 0 ms
[2020-12-08 10:10:36:281] [30] FileHistoryTrackerNode.ensureSubscription completed • 0 ms
[2020-12-08 10:10:36:281] [39] GitService.isTracked returned true • 0 ms — e=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg, t=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, i={"skipCacheUpdate":true}
[2020-12-08 10:10:36:281] [38] GitService.getRepository returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 0 ms
[2020-12-08 10:10:36:281] [37] GitService.getRepoPath returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 0 ms
[2020-12-08 10:10:36:281] [36] GitUri.fromUri returned GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration) • 0 ms
[2020-12-08 10:10:36:281] [3a] FileHistoryTrackerNode.resetChild
[2020-12-08 10:10:36:281] [3a] FileHistoryTrackerNode.resetChild completed • 0 ms
[2020-12-08 10:10:36:281] [35] FileHistoryTrackerNode.refresh returned false, uri=GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration) • 0 ms
[2020-12-08 10:10:36:281] [3b] FileHistoryView.triggerNodeChange — e=FileHistoryTrackerNode
[2020-12-08 10:10:36:282] [3b] FileHistoryView.triggerNodeChange completed • 0 ms
[2020-12-08 10:10:36:282] [34] FileHistoryView.refreshNode completed • 1 ms
[2020-12-08 10:10:36:282] [33] FileHistoryTrackerNode.triggerChange completed • 1 ms
[2020-12-08 10:10:36:282] [32] FileHistoryTrackerNode.triggerChange completed • 1 ms
[2020-12-08 10:10:36:283] [3c] FileHistoryTrackerNode.ensureSubscription
[2020-12-08 10:10:36:283] [3d] GitService.getBranch — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:36:283] [3e] GitService.getBranches — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, t={}
[2020-12-08 10:10:36:297] [3c] FileHistoryTrackerNode.ensureSubscription completed • 14 ms
[2020-12-08 10:10:36:487] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git for-each-ref --format=%3ch%3e%(HEAD)%3cn%3e%(refname)%3cu%3e%(upstream:short)%3ct%3e%(upstream:track)%3cr%3e%(objectname)%3cd%3e%(committerdate:iso8601) refs/heads refs/remotes • 204 ms
[2020-12-08 10:10:36:488] [3f] GitBranchParser.parse completed • 0 ms
[2020-12-08 10:10:36:488] [40] GitService.getRepository — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:36:488] [40] GitService.getRepository returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 0 ms
[2020-12-08 10:10:36:488] [3e] GitService.getBranches completed • 205 ms
[2020-12-08 10:10:36:488] [3d] GitService.getBranch completed • 205 ms
[2020-12-08 10:10:36:489] [41] FileHistoryNode(gitlens:repository(//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration):history:file(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)).ensureSubscription
[2020-12-08 10:10:36:489] [42] FileHistoryNode(gitlens:repository(//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration):history:file(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)).subscribe
[2020-12-08 10:10:36:489] [43] GitService.getRepository — e=GitUri(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg repoPath=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration)
[2020-12-08 10:10:36:489] [44] GitService.getBranchAheadRange — e=master
[2020-12-08 10:10:36:489] [44] GitService.getBranchAheadRange completed • 0 ms
[2020-12-08 10:10:36:489] [45] GitService.getLogForFile — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, t=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg, i={"limit":40}
[2020-12-08 10:10:36:490] [46] GitService.getStatusForFile — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, t=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg
[2020-12-08 10:10:36:505] [43] GitService.getRepository returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 16 ms
[2020-12-08 10:10:36:505] [42] FileHistoryNode(gitlens:repository(//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration):history:file(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)).subscribe completed • 16 ms
[2020-12-08 10:10:36:505] [41] FileHistoryNode(gitlens:repository(//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration):history:file(file://bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration/Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg)).ensureSubscription completed • 16 ms
[2020-12-08 10:10:36:505] [45] GitService.getLogForFile Cache miss: 'log:n40'
[2020-12-08 10:10:36:506] [45] GitService.getLogForFile Cache add: 'log:n40'
[2020-12-08 10:10:36:506] [47] GitService.isTracked returned true • 0 ms — e=\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration\Backup Studio Setup\VS-A\eyePointSetup-VIZVS-A.cfg, t=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, i={}
[2020-12-08 10:10:36:811] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git status --porcelain=v2 --find-renames -- Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg • 320 ms
[2020-12-08 10:10:36:811] [48] GitStatusParser.parse completed • 0 ms
[2020-12-08 10:10:36:811] [46] GitService.getStatusForFile completed • 321 ms
[2020-12-08 10:10:36:819] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git log --format=%x3c%x2ff%x3e%n%x3cr%x3e%x20%H%n%x3ca%x3e%x20%aN%n%x3ce%x3e%x20%aE%n%x3cd%x3e%x20%at%n%x3cc%x3e%x20%ct%n%x3cp%x3e%x20%P%n%x3cs%x3e%n%B%n%x3c%x2fs%x3e%n%x3cf%x3e -n41 -m --numstat --summary -- Backup Studio Setup/VS-A/eyePointSetup-VIZVS-A.cfg • 313 ms
[2020-12-08 10:10:36:819] [49] GitService.getCurrentUser — //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:36:819] [49] GitService.getCurrentUser completed • 0 ms
[2020-12-08 10:10:36:819] [4a] GitLogParser.parse
[2020-12-08 10:10:36:820] [4a] GitLogParser.parse completed • 0 ms
[2020-12-08 10:10:36:820] [45] GitService.getLogForFile completed • 331 ms
[2020-12-08 10:10:36:824] [4b] GitService.getRichRemoteProvider
[2020-12-08 10:10:36:826] [4b] GitService.getRichRemoteProvider completed • 1 ms
[2020-12-08 10:10:40:587] [4c] GitService.getHighlanderRepoPath
[2020-12-08 10:10:40:587] [4c] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 10:10:40:587] [4d] GitService.getBranchesAndOrTags — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:40:587] [4e] GitService.getBranches — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, t={}
[2020-12-08 10:10:40:587] [4f] GitService.getTags — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, t={}
[2020-12-08 10:10:40:601] [4e] GitService.getBranches completed • 13 ms
[2020-12-08 10:10:40:637] [50] GitService.getHighlanderRepoPath
[2020-12-08 10:10:40:637] [50] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 10:10:40:637] [51] GitService.getBranchesAndOrTags — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:40:637] [52] GitService.getBranches — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, t={}
[2020-12-08 10:10:40:637] [53] GitService.getTags — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, t={}
[2020-12-08 10:10:40:637] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • waiting...
[2020-12-08 10:10:40:637] [52] GitService.getBranches completed • 0 ms
[2020-12-08 10:10:40:673] [54] GitService.getHighlanderRepoPath
[2020-12-08 10:10:40:674] [54] GitService.getHighlanderRepoPath completed • 0 ms
[2020-12-08 10:10:40:674] [55] GitService.getBranchesAndOrTags — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:40:674] [56] GitService.getBranches — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, t={}
[2020-12-08 10:10:40:674] [57] GitService.getTags — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration, t={}
[2020-12-08 10:10:40:674] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • waiting...
[2020-12-08 10:10:40:674] [56] GitService.getBranches completed • 0 ms
[2020-12-08 10:10:40:769] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 181 ms
[2020-12-08 10:10:40:769] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 132 ms (waited)
[2020-12-08 10:10:40:769] [//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration] git tag -l --format=%3cn%3e%(refname)%3cr%3e%(if)%(*objectname)%(then)%(*objectname)%(else)%(objectname)%(end)%3cd%3e%(creatordate:iso8601)%3cad%3e%(authordate:iso8601)%3cs%3e%(subject) • 95 ms (waited)
[2020-12-08 10:10:40:769] [58] GitTagParser.parse completed • 0 ms
[2020-12-08 10:10:40:769] [59] GitService.getRepository — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:40:769] [5a] GitTagParser.parse completed • 0 ms
[2020-12-08 10:10:40:769] [5b] GitService.getRepository — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:40:769] [5c] GitTagParser.parse completed • 0 ms
[2020-12-08 10:10:40:769] [5d] GitService.getRepository — e=//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
[2020-12-08 10:10:40:769] [59] GitService.getRepository returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 0 ms
[2020-12-08 10:10:40:769] [5b] GitService.getRepository returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 0 ms
[2020-12-08 10:10:40:769] [5d] GitService.getRepository returned //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration • 0 ms
[2020-12-08 10:10:40:769] [4f] GitService.getTags completed • 182 ms
[2020-12-08 10:10:40:769] [53] GitService.getTags completed • 132 ms
[2020-12-08 10:10:40:769] [57] GitService.getTags completed • 95 ms
[2020-12-08 10:10:40:770] [4d] GitService.getBranchesAndOrTags completed • 182 ms
[2020-12-08 10:10:40:770] [51] GitService.getBranchesAndOrTags completed • 133 ms
[2020-12-08 10:10:40:770] [55] GitService.getBranchesAndOrTags completed • 96 ms
[2020-12-08 10:10:44:632] [5e] FileHistoryTrackerNode.onActiveEditorChanged
[2020-12-08 10:10:44:632] [5f] FileHistoryTrackerNode.triggerChange
[2020-12-08 10:10:44:632] [60] FileHistoryTrackerNode.triggerChange — false, false
[2020-12-08 10:10:44:632] [61] FileHistoryView.refreshNode — e=FileHistoryTrackerNode, t=false, i=false
[2020-12-08 10:10:44:632] [62] FileHistoryTrackerNode.refresh — false
[2020-12-08 10:10:44:632] [5e] FileHistoryTrackerNode.onActiveEditorChanged completed • 0 ms
[2020-12-08 10:10:44:632] [62] FileHistoryTrackerNode.refresh returned true • 0 ms
[2020-12-08 10:10:44:632] [61] FileHistoryView.refreshNode completed • 0 ms
[2020-12-08 10:10:44:632] [60] FileHistoryTrackerNode.triggerChange completed • 0 ms
[2020-12-08 10:10:44:632] [5f] FileHistoryTrackerNode.triggerChange completed • 0 ms
[2020-12-08 10:10:55:862] [63] FileHistoryTrackerNode.onActiveEditorChanged
[2020-12-08 10:10:55:862] [64] FileHistoryTrackerNode.triggerChange
[2020-12-08 10:10:55:862] [65] FileHistoryTrackerNode.triggerChange — false, false
[2020-12-08 10:10:55:862] [66] FileHistoryView.refreshNode — e=FileHistoryTrackerNode, t=false, i=false
[2020-12-08 10:10:55:862] [67] FileHistoryTrackerNode.refresh — false
[2020-12-08 10:10:55:862] [63] FileHistoryTrackerNode.onActiveEditorChanged completed • 0 ms
[2020-12-08 10:10:55:862] [67] FileHistoryTrackerNode.refresh returned true • 0 ms
[2020-12-08 10:10:55:862] [66] FileHistoryView.refreshNode completed • 0 ms
[2020-12-08 10:10:55:862] [65] FileHistoryTrackerNode.triggerChange completed • 0 ms
[2020-12-08 10:10:55:862] [64] FileHistoryTrackerNode.triggerChange completed • 0 ms

@egfx-notifications
Copy link
Contributor

So, I cloned the repo and took a look.

In this block
https://github.com/eamodio/vscode-gitlens/blob/da44f99dc1ce3008a9f136628537e3fc679f2510/src/git/gitService.ts#L3052-L3065

The networkPath always resolves to the complete path as UNC path.
Thus we end up replacing the complete path to the repo with just the drive letter.

It seems that this is due to the usage of fs.realpath.native instead of just fs.realpath as you do in the next block. The path returned from fs.realpath would be fine, but maybe you chose the .native method on purpose? In that case the replacement would need to be rephrased to only replace the part of the path that maps to the drive letter.

egfx-notifications added a commit to egfx-notifications/vscode-gitlens that referenced this issue Dec 18, 2020
… fs.realpath

The previously used fs.realpath.native function returned UNC paths on Windows,
even if the path is actually using a drive letter
egfx-notifications added a commit to egfx-notifications/vscode-gitlens that referenced this issue Dec 18, 2020
Use fs.realpath to get a path starting with the drive letter for mapped drives.
The previously used fs.realpath.native function returned UNC paths on Windows,
even if the path is actually using a drive letter
@eamodio
Copy link
Member

eamodio commented Dec 21, 2020

I used fs.realpath.native because of nodejs/node#8715, and we use the same in VS Code:

https://github.com/microsoft/vscode/blob/2425a265ba26243378cc0e45fd73e8b61a7332a2/extensions/git/src/git.ts#L454-L483

What do you get if you run git rev-parse --show-toplevel from inside there? What are the values of path, repoPath, and networkPath inside that function?

I've tried setting up a test -- file share from 1 machine to another, and I can't repro the issue you are seeing.

Also what version of Git do you have?

@eamodio eamodio removed the pending-release Resolved but not yet released to the stable edition label Dec 24, 2020
@eamodio eamodio modified the milestones: Soon™, Shipped Dec 24, 2020
@egfx-notifications
Copy link
Contributor

I used fs.realpath.native because of nodejs/node#8715, and we use the same in VS Code:

https://github.com/microsoft/vscode/blob/2425a265ba26243378cc0e45fd73e8b61a7332a2/extensions/git/src/git.ts#L454-L483

What do you get if you run git rev-parse --show-toplevel from inside there? What are the values of path, repoPath, and networkPath inside that function?

I've tried setting up a test -- file share from 1 machine to another, and I can't repro the issue you are seeing.

Also what version of Git do you have?

I'll provide the answers to those questions once I'm back in office mid January. Git version was current at the time: 2.29.2.windows.2

@eamodio
Copy link
Member

eamodio commented Dec 29, 2020

Sounds good, thanks!

egfx-notifications added a commit to egfx-notifications/vscode-gitlens that referenced this issue Jan 18, 2021
Use fs.realpath to get a path starting with the drive letter for mapped drives.
The previously used fs.realpath.native function returned UNC paths on Windows,
even if the path is actually using a drive letter
@egfx-notifications
Copy link
Contributor

egfx-notifications commented Jan 18, 2021

I used fs.realpath.native because of nodejs/node#8715, and we use the same in VS Code:

https://github.com/microsoft/vscode/blob/2425a265ba26243378cc0e45fd73e8b61a7332a2/extensions/git/src/git.ts#L454-L483

Interesting. I deactivated GitLens and tried VS Code source control, same behavior for the mapped drive. Once we find out how to fix it for GitLens we should probably port the changes back to VS Code.

What do you get if you run git rev-parse --show-toplevel from inside there? What are the values of path, repoPath, and networkPath inside that function?

The mapped drive has a UNC path of \\bcs-nas3\egfx and is mapped with the drive letter K:
The project is opened in VS Code as K:\USER\Flo\Script\vs-konfiguration
git rev-parse --show-toplevel from commandline returns //bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration
The value of path is "k:\\USER\\Flo\\Script\\vs-konfiguration"
The value of repoPath is "//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration", so that corresponds to running git rev-parse --show-toplevel from commandline
The value of networkPath is "\\\\bcs-nas3\\egfx\\USER\\Flo\\Script\\vs-konfiguration"
The problem then lies in here
https://github.com/eamodio/vscode-gitlens/blob/48184e77e2ac0046caebe5c9395b69ce66089cbd/src/git/gitService.ts#L3239-L3244
The value of repoUri.fsPath is "\\\\bcs-nas3\\egfx\\USER\\Flo\\Script\\vs-konfiguration", so the same as networkPath
The function call to repoUri.fsPath.replace thus replaces the entire string with just the letter (which has the value "k" in this example).

Also what version of Git do you have?

Debug output on Dec 8th used version 2.29.2.windows.2
I upgraded to 2.30.0.windows.2 for today's tests

Edit:
For reference, these are the values when opening the project in VS Code as \\bcs-nas3\egfx\USER\Flo\Script\vs-konfiguration
The value of path is "\\\\bcs-nas3\\egfx\\USER\\Flo\\Script\\vs-konfiguration"
The value of repoPath is "//bcs-nas3/egfx/USER/Flo/Script/vs-konfiguration"
The value of repoUri.fsPath is "\\\\bcs-nas3\\egfx\\USER\\Flo\\Script\\vs-konfiguration"
Since pathUri.authority is "bcs-nas3" we skip the whole mapping part and just return repoPath

Edit2:
And these are the values when opening the project in VS Code as C:\Users\sch0024f\Desktop\Script\vs-konfiguration
The value of path is "c:\\Users\\sch0024f\\Desktop\\Script\\vs-konfiguration"
The value of repoPath is "c:/Users/sch0024f/Desktop/Script/vs-konfiguration"
The value of repoUri.fsPath is "c:\\Users\\sch0024f\\Desktop\\Script\\vs-konfiguration"
Since repoUri.authority is an empty string we skip the whole mapping part as well and just return repoPath

So the part is only relevant for repositories on mapped drives anyway, isn't it?
May I ask what the variable values are for your working test case?

@eamodio
Copy link
Member

eamodio commented Jan 18, 2021

Thanks for the information! I am really confused why networkPath is not \\\\bcs-nas3\\egfx -- since we are just trying to resolve what k: is. Why would that resolve to \\\\bcs-nas3\\egfx\\USER\\Flo\\Script\\vs-konfiguration, since k: doesn't point there.

@eamodio
Copy link
Member

eamodio commented Jan 18, 2021

I wonder if we use fs.realpath as a fallback to fs.realpath.native IF what is returned (e.g. networkPath) is identical to repoUri.fsPath. I have no clue why that would be needed though.

@eamodio
Copy link
Member

eamodio commented Jan 18, 2021

Also does it make any difference if you open VS Code with the path starting with k: vs K:?

@egfx-notifications
Copy link
Contributor

Also does it make any difference if you open VS Code with the path starting with k: vs K:?

I don't seem to can. Windows capitalizes the drive letter right away.

I wonder if we use fs.realpath as a fallback to fs.realpath.native IF what is returned (e.g. networkPath) is identical to repoUri.fsPath. I have no clue why that would be needed though.

That may be a workaround, but let's keep that as a last resort.

Thanks for the information! I am really confused why networkPath is not \\\\bcs-nas3\\egfx -- since we are just trying to resolve what k: is. Why would that resolve to \\\\bcs-nas3\\egfx\\USER\\Flo\\Script\\vs-konfiguration, since k: doesn't point there.

I just checked out 3d1808b where the workaround for new git versions was first introduced. The code from this commit works.
https://github.com/eamodio/vscode-gitlens/blob/3d1808b8b12498b68ac284716bd82cbf8c402fc6/src/git/gitService.ts#L2603-L2610
Here networkPath is indeed "\\\\bcs-nas3\\egfx"
We don't use fs.realpath here, though. The path is retrieved via wmic
https://github.com/eamodio/vscode-gitlens/blob/3d1808b8b12498b68ac284716bd82cbf8c402fc6/src/git/shell.ts#L197-L210
9ffcd2f replaces wmic with fs.realpath.native
Now networkPath already results in "\\\\bcs-nas3\\egfx\\USER\\Flo\\Script\\vs-konfiguration"
I'll have a look into the implementation of fs.realpath.native and get back to you with more information.

@egfx-notifications
Copy link
Contributor

I'll have a look into the implementation of fs.realpath.native and get back to you with more information.

I think I found it. Let me run a few more tests to make sure it doesn't break anything and then you may get an update on the PR.

egfx-notifications added a commit to egfx-notifications/vscode-gitlens that referenced this issue Jan 19, 2021
fs.realpath.native in NodeJS uses the Win32 API function GetFinalPathNameByHandle() on Windows hosts,
therefore a given path must follow the guidelines for Win32 API file functions.
Drive letters on Windows need to end on a backslash according to the Win32 File Naming Conventions (https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file)
Omitting the backslash results in Windows treating the remaining path components as a relative path starting from the current directory on the specified disk
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#fully-qualified-vs-relative-paths
@egfx-notifications
Copy link
Contributor

egfx-notifications commented Jan 19, 2021

Alright, this PR should do the trick #1334
Been a while since I had to read C, but it was an enlightening journey :)

I included some details about the issue in the commit message, but the important part to know is that k: is not a valid drive letter for Win32 API (which NodeJS uses in the background), it has to be k:\
Without the backslash it's considered a relative path starting from the current directory and that's why it returned the complete repository path.

I'm still wondering why it didn't show for your test file share, but maybe it's related to the special behavior with SMB? The drive I tested with is connected using SMB https://docs.microsoft.com/de-de/windows/win32/api/fileapi/nf-fileapi-getfinalpathnamebyhandlew#remarks

Let me know if I should create a PR for VS Code as well once you verified this

@eamodio
Copy link
Member

eamodio commented Jan 19, 2021

Awesome work! Thank you so much -- tried it out and works great. I still wonder why I don't see the issue with my file shares, but 🤷‍♂️

If you'd like to open a PR for VS Code that would be great!

eamodio pushed a commit that referenced this issue Jan 19, 2021
fs.realpath.native in NodeJS uses the Win32 API function GetFinalPathNameByHandle() on Windows hosts,
therefore a given path must follow the guidelines for Win32 API file functions.
Drive letters on Windows need to end on a backslash according to the Win32 File Naming Conventions (https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file)
Omitting the backslash results in Windows treating the remaining path components as a relative path starting from the current directory on the specified disk
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#fully-qualified-vs-relative-paths
@egfx-notifications
Copy link
Contributor

If you'd like to open a PR for VS Code that would be great!

👍

@egfx-notifications
Copy link
Contributor

Awesome work! Thank you so much -- tried it out and works great. I still wonder why I don't see the issue with my file shares, but 🤷‍♂️

Well, I guess I found out now. I forked VS Code to create the PR for it and wasn't able to reproduce the issue there (as the development VS Code was a fresh install without any extensions or settings modified yet).
I then went back to my install of VS Code, commented out all settings and triaged them. Apparently the issue happens when the GitLab Workflow extension is installed and the "gitlab.instanceUrl" setting configured. If this condition is met, the root repository search fails for both GitLens and VS Code integrated Git.

I'd still suggest to make the PR if you agree. After all this would be the right way to pass a drive letter to Win32 API functions according to the specification.
I'll open an issue with GitLab to investigate why their extension interferes with this, though.

@eamodio
Copy link
Member

eamodio commented Jan 20, 2021

Hrm, interesting. I would definitely still like to get the PR merged in VS Code since it is the correct usage and my guess is that there are probably more cases that cause the issue. Since this has come up lots of times on both repos since the git change and I've never been able to get to the bottom of it.

Though it would be quite interesting to see why the GitLab extension causes it.

@egfx-notifications
Copy link
Contributor

Ok, forget about the gitlab.instanceUrl part. It occurs as soon as the GitLab Workflow extension is installed and enabled. I already found the problematic line in their code, but don't know how to solve it better yet. I'll post a link to the issue once I opened it.

@egfx-notifications
Copy link
Contributor

There we go: https://gitlab.com/gitlab-org/gitlab-vscode-extension/-/issues/302

If you want to take a look and share your insights that would be much appreciated. I don't have solid knowledge about how VS Code and its extensions are isolated process-wise.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working verified ✔ Verified
Projects
None yet
Development

No branches or pull requests

9 participants