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

Cannot read property 'provider' of undefined

Open Evineit opened this issue 6 years ago • 15 comments

Nothing shows up at the commits and branches views when clicked, only an error notification shows up

  • GitLens Version: 11.0.0

VS Code Version: 1.51.1 OS: Windows_NT x64 10.0.19041

Steps to Reproduce:

1.Open the commit view Log log.txt

image Code_13_45_53_934

Evineit avatar Nov 14 '20 19:11 Evineit

Same with me @Evineit

[2020-11-15 01:43:45:198] [2da] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).onVisibilityChanged — e={"visible":true}
[2020-11-15 01:43:45:198] [2db] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).ensureSubscription
[2020-11-15 01:43:45:198] [2dc] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).subscribe
[2020-11-15 01:43:45:198] [2dc] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).subscribe completed • 0 ms
[2020-11-15 01:43:45:198] [2dd] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).triggerChange — false
[2020-11-15 01:43:45:198] [2de] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).triggerChange — false, false
[2020-11-15 01:43:45:198] [2df] CommitsViewNode.triggerChange — false, false
[2020-11-15 01:43:45:198] [2e0] CommitsView.refreshNode — e=CommitsViewNode, t=false, i=false
[2020-11-15 01:43:45:198] [2e1] CommitsViewNode.refresh — false
[2020-11-15 01:43:45:199] [2e1] CommitsViewNode.refresh completed • 0 ms
[2020-11-15 01:43:45:199] [2da] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).onVisibilityChanged completed • 0 ms
[2020-11-15 01:43:45:199] [2e2] CommitsView.triggerNodeChange — e=CommitsViewNode
[2020-11-15 01:43:45:199] [2e2] CommitsView.triggerNodeChange completed • 0 ms
[2020-11-15 01:43:45:199] [2db] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).ensureSubscription completed • 1 ms
[2020-11-15 01:43:45:200] [2e0] CommitsView.refreshNode completed • 1 ms
[2020-11-15 01:43:45:200] [2df] CommitsViewNode.triggerChange completed • 1 ms
[2020-11-15 01:43:45:200] [2de] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).triggerChange completed • 1 ms
[2020-11-15 01:43:45:200] [2dd] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).triggerChange completed • 2 ms
[2020-11-15 01:43:45:203] [2e3] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).ensureSubscription
[2020-11-15 01:43:45:203] [2e3] CommitsRepositoryNode(gitlens:repository(/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web)).ensureSubscription completed • 0 ms
[2020-11-15 01:43:45:203] [2e4] GitService.getRemotes — e=/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web
[2020-11-15 01:43:45:203] [2e5] GitService.getRepository — e=/home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web
[2020-11-15 01:43:45:205] [2e5] GitService.getRepository returned /home/luizmarques/Development/gostack/nivel-03/gobarber-frontend-web • 1 ms
[2020-11-15 01:43:45:205] [2e4] GitService.getRemotes completed • 1 ms

Note: after last update to GitLens v11

luizwhite avatar Nov 15 '20 01:11 luizwhite

Same here using:

GitLens: 11.0.0
VSCode Version: 1.51.1
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.9.4-arch1-1

The error fires when I open "Branches". It also occurs when I open "Commits" if I'm not in the master branch; in master the commits are shown.

The stack trace of the error:

notificationsAlerts.ts:38 TypeError: Cannot read property 'provider' of undefined
    at Function.getHighlanderProviders (/home/daniel/.vscode/extensions/eamodio.gitlens-11.0.0/dist/webpack:/gitlens/src/git/models/remote.ts:18)
    at BranchNode.getTreeItem (/home/daniel/.vscode/extensions/eamodio.gitlens-11.0.0/dist/webpack:/gitlens/src/views/nodes/branchNode.ts:289)
    at /opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:675
    at async Promise.all (/opt/visual-studio-code/resources/app/out/vs/code/electron-browser/workbench/index 1)
    at m.fetchChildrenNodes (/opt/visual-studio-code/resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:674)

InExtremaRes avatar Nov 15 '20 02:11 InExtremaRes

Just installed latest GitLens and same thing happens to me. Can't see commits no matter what.

scrnjakovic avatar Nov 15 '20 11:11 scrnjakovic

Same Issue.

Update to Vscode 1.51 automatically with the latest feature of gitlens. Great now I can directly manipulate gitlens operation in the source control panel.

However, when I clicked at "commits", "repositories" and "file history" to expand, the following error notification will always appear, "Cannot read property "provider" of undefined". I was at a private GitHub repository then. I changed it to a public GitHub repository and this problem got resolved. No more error notification.

Maybe the latest gitlens is having some trouble with the GitHub authentication.

Leslie-Wong-H avatar Nov 15 '20 15:11 Leslie-Wong-H

@Leslie-Wong-H even without a remote the error occurs to me

luizwhite avatar Nov 15 '20 19:11 luizwhite

Same issue with me and all my team

fpragana avatar Nov 16 '20 02:11 fpragana

截屏2020-11-16 09 53 32

v11.0.0, macOS 10.15.5 same issue for me. I am so sad.😫

截屏2020-11-16 10 07 45

Then, I installed the previous version v10.2.3. It's ok.😄

weiliang903 avatar Nov 16 '20 02:11 weiliang903

same issue

Ttou avatar Nov 16 '20 02:11 Ttou

same issue

gp3098 avatar Nov 16 '20 02:11 gp3098

Same issue with the newest version (11.0.0). Installed the older version 10.2.3 and it works.

gentig avatar Nov 16 '20 02:11 gentig

same issue: MBP macOS 10.15.6 vscode 1.51.1

xidianzhangjun avatar Nov 16 '20 03:11 xidianzhangjun

Fixed in v11.0.1

eamodio avatar Nov 16 '20 08:11 eamodio

@eamodio

Fixed in v11.0.1

so fast ,it's work fine now.

lanxb avatar Nov 16 '20 08:11 lanxb

fixed! thanks so much!

thezuliano avatar Nov 17 '20 01:11 thezuliano

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[bot] avatar Jan 02 '21 05:01 github-actions[bot]