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

Unable to open commit on remote provider. The file is probably not under source control. #2576

Open
kbfirebreather opened this issue Mar 15, 2023 · 1 comment
Labels
blocked: vscode Caused by or dependent on a VS Code issue or feature blocked Blocked or caused by an upstream issue or feature bug Something isn't working

Comments

@kbfirebreather
Copy link

Description

When trying to open a commit from the timeline, I now get a popup stating that Unable to open commit on remote provider. The file is probably not under source control. This previously was working

Clicking the globe icon
image

produces this:
image

And no web page is opened.

No logs show up in gitlens output by default. Enabling debug logging does produce logs, which is attached below.

I am able to click the globe icon from the inline git blame from the code.

Clicking

image
Does open the commit on remote in the browser.

I've tried uninstalling / reinstalling gitlens, and removing the directory in ~/.vscode/extensions/, but nothing seems to be working.

GitLens Version

13.3.2

VS Code Version

Version: 1.76.2
Commit: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
Date: 2023-03-14T17:55:54.936Z
Electron: 19.1.11
Chromium: 102.0.5005.196
Node.js: 16.14.2
V8: 10.2.154.26-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: No

Git Version

git version 2.31.1.windows.1

Logs, Screenshots, Screen Captures, etc

Debug logs when clicking globe

[2023-03-15 18:18:30.611] [  1d5] GitProviderService.getBestRepository(e=undefined, t=undefined)
[2023-03-15 18:18:30.611] [  1d6] GitProviderService.getRepository(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js))
[2023-03-15 18:18:30.611] [  1d6] GitProviderService.getRepository(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js)) returned c:/git/repo • 0 ms
[2023-03-15 18:18:30.611] [  1d5] GitProviderService.getBestRepository(e=undefined, t=undefined) returned c:/git/repo • 0 ms
[2023-03-15 18:18:30.612] [  1d7] GitProviderService.getBlameForLine(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo), t=0, i=undefined)
[2023-03-15 18:18:30.612] [  1d8] LocalGitProvider.getBlameForLine(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo), t=0, i=undefined, s=undefined)
[2023-03-15 18:18:30.612] [  1d9] LocalGitProvider.getBlame(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo), t=undefined)
[2023-03-15 18:18:30.625] [  1da] y.fromUri(e=Uri(file:///c:/git/repo))
[2023-03-15 18:18:30.625] [  1db] GitProviderService.getOrOpenRepository(e=Uri(file:///c:/git/repo))
[2023-03-15 18:18:30.625] [  1dc] GitProviderService.getRepository(e=Uri(file:///c:/git/repo))
[2023-03-15 18:18:30.625] [  1dc] GitProviderService.getRepository(e=Uri(file:///c:/git/repo)) returned c:/git/repo • 0 ms
[2023-03-15 18:18:30.626] [  1db] GitProviderService.getOrOpenRepository(e=Uri(file:///c:/git/repo)) returned c:/git/repo • 0 ms
[2023-03-15 18:18:30.626] [  1da] y.fromUri(e=Uri(file:///c:/git/repo)) returned GitUri(file:///c:/git/repo repoPath=c:/git/repo) • 0 ms
[2023-03-15 18:18:30.626] [  1dd] GitProviderService.getRepository(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo))
[2023-03-15 18:18:30.626] [  1dd] GitProviderService.getRepository(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo)) returned c:/git/repo • 0 ms
[2023-03-15 18:18:30.626] [  1de] LocalGitProvider.isTrackedPrivate(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo))
[2023-03-15 18:18:30.626] [  1df] GitProviderService.getRepository(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo))
[2023-03-15 18:18:30.626] [  1df] GitProviderService.getRepository(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo)) returned c:/git/repo • 0 ms
[2023-03-15 18:18:30.626] [  1e0] LocalGitProvider.isTrackedCore(e=c:/git/repo/, t=, i=c:/git/repo, r=undefined, n=W(c:/git/repo))
[2023-03-15 18:18:30.902] [GIT  ] [c:/git/repo] git ls-files --  • 275 ms
[2023-03-15 18:18:31.182] [GIT  ] [c:/git] git ls-files -- repo • 280 ms
[2023-03-15 18:18:31.183] [  1e0] LocalGitProvider.isTrackedCore(e=c:/git/repo/, t=, i=c:/git/repo, r=undefined, n=W(c:/git/repo)) completed • 556 ms (slow)
[2023-03-15 18:18:31.183] [  1de] LocalGitProvider.isTrackedPrivate(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo)) returned false • 556 ms (slow)
[2023-03-15 18:18:31.183] [  1d9] LocalGitProvider.getBlame Cache miss: 'blame'
[2023-03-15 18:18:31.183] [  1e1] LocalGitProvider.isTrackedPrivate(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo))
[2023-03-15 18:18:31.183] [  1e2] GitProviderService.getRepository(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo))
[2023-03-15 18:18:31.183] [  1e2] GitProviderService.getRepository(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo)) returned c:/git/repo • 0 ms
[2023-03-15 18:18:31.183] [  1e3] LocalGitProvider.isTrackedCore(e=c:/git/repo/, t=, i=c:/git/repo, r=undefined, n=W(c:/git/repo))
[2023-03-15 18:18:31.184] [  1d9] LocalGitProvider.getBlame Cache add: 'blame'
[2023-03-15 18:18:31.475] [GIT  ] [c:/git/repo] git ls-files --  • 291 ms
[2023-03-15 18:18:31.761] [GIT  ] [c:/git] git ls-files -- repo • 285 ms
[2023-03-15 18:18:31.761] [  1e3] LocalGitProvider.isTrackedCore(e=c:/git/repo/, t=, i=c:/git/repo, r=undefined, n=W(c:/git/repo)) completed • 577 ms (slow)
[2023-03-15 18:18:31.761] [  1e1] LocalGitProvider.isTrackedPrivate(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo)) returned false • 578 ms (slow)
[2023-03-15 18:18:31.761] [  1d9] LocalGitProvider.getBlame Skipping blame; 'c:\git\repo' is not tracked
[2023-03-15 18:18:31.761] [  1d9] LocalGitProvider.getBlame(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo), t=undefined) completed • 1149 ms (slow)
[2023-03-15 18:18:31.762] [  1d8] LocalGitProvider.getBlameForLine(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo), t=0, i=undefined, s=undefined) completed • 1149 ms (slow)
[2023-03-15 18:18:31.762] [  1d7] GitProviderService.getBlameForLine(e=GitUri(file:///c:/git/repo repoPath=c:/git/repo), t=0, i=undefined) completed • 1149 ms (slow)
[2023-03-15 18:18:31.762] ShowMessage(warn, 'Unable to open commit on remote provider. The file is probably not under source control.', suppressFileNotUnderSourceControlWarning, {"title":"Don't Show Again"})

Debug logs when hovering cursor over line and clicking globe from modal that pops up

[2023-03-15 18:27:54.253] [  31d] LineHoverController.provideDetailsHover(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js), t=262:91)
[2023-03-15 18:27:54.255] [  31e] GitProviderService.getRemotesWithProviders(e=c:/git/repo, t={"sort":true})
[2023-03-15 18:27:54.255] [  31f] GitProviderService.getRepository(e=c:/git/repo)
[2023-03-15 18:27:54.255] [  31f] GitProviderService.getRepository(e=c:/git/repo) returned c:/git/repo • 0 ms
[2023-03-15 18:27:54.256] [  31e] GitProviderService.getRemotesWithProviders(e=c:/git/repo, t={"sort":true}) completed • 1 ms
[2023-03-15 18:27:54.256] [  800] Hovers.getAutoLinkedIssuesOrPullRequests — message=<message>
[2023-03-15 18:27:54.257] [  321] GitProviderService.getBestRemoteWithRichProvider(e=origin)
[2023-03-15 18:27:54.257] [  802] Hovers.getPullRequestForCommit — ref=41d3f61416055a88ac8ad0ead2ac1bedb22b1105
[2023-03-15 18:27:54.257] [  323] GitProviderService.getBestRemoteWithRichProvider(e=origin, t={"includeDisconnected":true})
[2023-03-15 18:27:54.257] [  324] VslsController.maybeGetPresence([email protected])
[2023-03-15 18:27:54.257] [  325] VslsController.getContactPresence([email protected])
[2023-03-15 18:27:54.257] [  326] VslsController.getContact([email protected])
[2023-03-15 18:27:54.258] [  321] GitProviderService.getBestRemoteWithRichProvider(e=origin) completed • 1 ms
[2023-03-15 18:27:54.258] [  323] GitProviderService.getBestRemoteWithRichProvider(e=origin, t={"includeDisconnected":true}) completed • 1 ms
[2023-03-15 18:27:54.259] [  326] VslsController.getContact([email protected]) completed • 2 ms
[2023-03-15 18:27:54.259] [  800] Hovers.getAutoLinkedIssuesOrPullRequests completed • 3 ms
[2023-03-15 18:27:54.259] [  802] Hovers.getPullRequestForCommit completed • 2 ms
[2023-03-15 18:27:54.259] [  325] VslsController.getContactPresence([email protected]) completed • 2 ms
[2023-03-15 18:27:54.260] [  324] VslsController.maybeGetPresence([email protected]) completed • 2 ms
[2023-03-15 18:27:54.260] [  327] Autolinks.linkify(<text>, t=markdown, i=1, s=undefined, r=0)
[2023-03-15 18:27:54.260] [  327] Autolinks.linkify(<text>, t=markdown, i=1, s=undefined, r=0) completed • 0 ms
[2023-03-15 18:27:54.260] [  328] GitProviderService.getRevisionUri(e=49d4612a3ac6163d4522d6223e1ae4751a80fd20, t=js/packages/ui-client/lib/app/spa.js, i=c:/git/repo)
[2023-03-15 18:27:54.261] [  328] GitProviderService.getRevisionUri(e=49d4612a3ac6163d4522d6223e1ae4751a80fd20, t=js/packages/ui-client/lib/app/spa.js, i=c:/git/repo) completed • 0 ms
[2023-03-15 18:27:54.261] [  329] GitProviderService.getRevisionUri(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo sha=41d3f61416055a88ac8ad0ead2ac1bedb22b1105))
[2023-03-15 18:27:54.261] [  329] GitProviderService.getRevisionUri(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo sha=41d3f61416055a88ac8ad0ead2ac1bedb22b1105)) completed • 0 ms
[2023-03-15 18:27:54.262] [  31d] LineHoverController.provideDetailsHover(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js), t=262:91) completed • 8 ms
[2023-03-15 18:27:54.263] [  32a] LineHoverController.provideChangesHover(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js), t=262:91)
[2023-03-15 18:27:54.263] [  32b] GitProviderService.getDiffForLine(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=262, i=49d4612a3ac6163d4522d6223e1ae4751a80fd20, s=undefined)
[2023-03-15 18:27:54.263] [  32c] LocalGitProvider.getDiffForLine(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=262, i=49d4612a3ac6163d4522d6223e1ae4751a80fd20, s=undefined)
[2023-03-15 18:27:54.263] [  32d] LocalGitProvider.getDiffForFile(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=49d4612a3ac6163d4522d6223e1ae4751a80fd20, i=undefined)
[2023-03-15 18:27:54.264] [  32d] LocalGitProvider.getDiffForFile Cache hit: 'diff:49d4612a3ac6163d4522d6223e1ae4751a80fd20'
[2023-03-15 18:27:54.264] [  32d] LocalGitProvider.getDiffForFile(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=49d4612a3ac6163d4522d6223e1ae4751a80fd20, i=undefined) completed • 0 ms
[2023-03-15 18:27:54.264] [  32c] LocalGitProvider.getDiffForLine(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=262, i=49d4612a3ac6163d4522d6223e1ae4751a80fd20, s=undefined) completed • 0 ms
[2023-03-15 18:27:54.264] [  32b] GitProviderService.getDiffForLine(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=262, i=49d4612a3ac6163d4522d6223e1ae4751a80fd20, s=undefined) completed • 0 ms
[2023-03-15 18:27:54.264] [  32a] LineHoverController.provideChangesHover(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js), t=262:91) completed • 1 ms
[2023-03-15 18:27:57.064] [  32e] y.fromUri(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js))
[2023-03-15 18:27:57.064] [  32f] GitProviderService.getOrOpenRepository(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js))
[2023-03-15 18:27:57.064] [  330] GitProviderService.getRepository(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js))
[2023-03-15 18:27:57.065] [  330] GitProviderService.getRepository(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js)) returned c:/git/repo • 0 ms
[2023-03-15 18:27:57.065] [  32f] GitProviderService.getOrOpenRepository(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js)) returned c:/git/repo • 0 ms
[2023-03-15 18:27:57.065] [  32e] y.fromUri(e=Uri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js)) returned GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo) • 0 ms
[2023-03-15 18:27:57.065] [  331] GitProviderService.getBestRepository(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t={"document":{"uri":{"$mid":1,"fsPath":"c:\\git\\repo\\js\\packages\\ui-client\\lib\\app\\spa.js","_sep":1,"external":"file:///c%3A/git/repo/js/packages/ui-client/lib/app/spa.js","path":"/c:/git/repo/js/packages/ui-client/lib/app/spa.js","scheme":"file"},"fileName":"c:\\git\\repo\\js\\packages\\ui-client\\lib\\app\\spa.js","isUntitled":false,"languageId":"javascript","version":1,"isClosed":false,"isDirty":false,"eol":2,"lineCount":305},"selection":{"start":{"line":262,"character":91},"end":{"line":262,"character":91},"active":{"line":262,"character":91},"anchor":{"line":262,"character":91}},"selections":[{"start":{"line":262,"character":91},"end":{"line":262,"character":91},"active":{"line":262,"character":91},"anchor":{"line":262,"character":91}}],"visibleRanges":[[{"line":244,"character":0},{"line":281,"character":47}]],"options":{"tabSize":4,"indentSize":4,"insertSpaces":true,"cursorStyle":1,"lineNumbers":1},"viewColumn":1})
[2023-03-15 18:27:57.065] [  332] GitProviderService.getRepository(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo))
[2023-03-15 18:27:57.065] [  332] GitProviderService.getRepository(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo)) returned c:/git/repo • 0 ms
[2023-03-15 18:27:57.065] [  331] GitProviderService.getBestRepository(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t={"document":{"uri":{"$mid":1,"fsPath":"c:\\git\\repo\\js\\packages\\ui-client\\lib\\app\\spa.js","_sep":1,"external":"file:///c%3A/git/repo/js/packages/ui-client/lib/app/spa.js","path":"/c:/git/repo/js/packages/ui-client/lib/app/spa.js","scheme":"file"},"fileName":"c:\\git\\repo\\js\\packages\\ui-client\\lib\\app\\spa.js","isUntitled":false,"languageId":"javascript","version":1,"isClosed":false,"isDirty":false,"eol":2,"lineCount":305},"selection":{"start":{"line":262,"character":91},"end":{"line":262,"character":91},"active":{"line":262,"character":91},"anchor":{"line":262,"character":91}},"selections":[{"start":{"line":262,"character":91},"end":{"line":262,"character":91},"active":{"line":262,"character":91},"anchor":{"line":262,"character":91}}],"visibleRanges":[[{"line":244,"character":0},{"line":281,"character":47}]],"options":{"tabSize":4,"indentSize":4,"insertSpaces":true,"cursorStyle":1,"lineNumbers":1},"viewColumn":1}) returned c:/git/repo • 0 ms
[2023-03-15 18:27:57.066] [  333] GitProviderService.getRemotesWithProviders(e=c:/git/repo)
[2023-03-15 18:27:57.066] [  334] GitProviderService.getRepository(e=c:/git/repo)
[2023-03-15 18:27:57.066] [  334] GitProviderService.getRepository(e=c:/git/repo) returned c:/git/repo • 0 ms
[2023-03-15 18:27:57.067] [  333] GitProviderService.getRemotesWithProviders(e=c:/git/repo) completed • 0 ms
[2023-03-15 18:27:57.255] [  335] GitProviderService.getBlame(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=false)
[2023-03-15 18:27:57.256] [  336] LocalGitProvider.getBlame(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=false)
[2023-03-15 18:27:57.256] [  336] LocalGitProvider.getBlame Cache hit: 'blame'
[2023-03-15 18:27:57.256] [  336] LocalGitProvider.getBlame(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=false) completed • 0 ms
[2023-03-15 18:27:57.256] [  335] GitProviderService.getBlame(e=GitUri(file:///c:/git/repo/js/packages/ui-client/lib/app/spa.js repoPath=c:/git/repo), t=false) completed • 0 ms
[2023-03-15 18:27:57.257] GitCodeLensProvider.provideCodeLenses: — 2 symbol(s) found
[2023-03-15 18:27:57.331] [  337] GitProviderService.onWindowStateChanged(e=focused=false)
[2023-03-15 18:27:57.331] [  337] GitProviderService.onWindowStateChanged(e=focused=false) completed • 0 ms
[2023-03-15 18:27:58.841] [  338] GitProviderService.onWindowStateChanged(e=focused=true)
[2023-03-15 18:27:58.841] [  338] GitProviderService.onWindowStateChanged(e=focused=true) completed • 0 ms
@kbfirebreather kbfirebreather added potential-bug triage Needs to be looked at labels Mar 15, 2023
@d13 d13 added bug Something isn't working and removed potential-bug triage Needs to be looked at labels Mar 15, 2023
@eamodio eamodio added blocked: vscode Caused by or dependent on a VS Code issue or feature blocked Blocked or caused by an upstream issue or feature labels Mar 16, 2023
@eamodio
Copy link
Member

eamodio commented Mar 16, 2023

Unfortunately VS Code has blocked "foreign" (non-MS) extensions from being able to access the timeline items in the command callbacks, so GitLens isn't currently able to provide this feature anymore.

I've opened microsoft/vscode#177319 to track this. Feel free to upvote it.

Sorry for the inconvience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: vscode Caused by or dependent on a VS Code issue or feature blocked Blocked or caused by an upstream issue or feature bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants