Vscode-gitlens: Error: Unknown view gitlens.views.fileHistory:gitlens

Created on 12 Apr 2019  路  7Comments  路  Source: eamodio/vscode-gitlens


  • GitLens Version: 9.6.0
  • VSCode Version: 1.33.0
  • OS Version: Windows 7 64bits

Steps to Reproduce:

  1. Execute the "GitLens: Show File History" or "GitLens: Show File History View" command
  2. The file history view does not show, and an error message pops in the output:
[2019-04-12 05:56:23:297] e.isVisible
Error: Unknown view gitlens.views.fileHistory:gitlens

I tried reinstalling the extension (and even deleting the files in the .vscode/extensions folder), but the problem is still present.

Here's a screenshot of my sidebar:

image

bug

All 7 comments

This sounds like the same issue as https://github.com/eamodio/vscode-gitlens/issues/710. Unfortunately I can't reproduce either of these. Can you try again with vscode 1.33.1 to see if it makes any difference?

I tried with the following VSCode versions (in that order) :

  • Upgrade to 1.33.1: not working
  • Downgrade to 1.32.3: not working
  • Downgrade to 1.31.1 : not working
  • Downgrade to 1.28.2: working
  • Upgrade to 1.29.1: not working

I uninstalled and reinstalled the extension each time I changed VSCode version

@scambier I think I have figured out the issue -- do you have gitlens.views.fileHistory.enabled set to false in your vscode configuration? If so, that explains the issue, since GitLens doesn't even register the view if it is disabled. I will make a change in the next version to instead prompt you to enable the view in this case.

Indeed, that was the issue, even though I don't remember disabling it.

@scambier I think I have figured out the issue -- do you have gitlens.views.fileHistory.enabled set to false in your vscode configuration? If so, that explains the issue, since GitLens doesn't even register the view if it is disabled. I will make a change in the next version to instead prompt you to enable the view in this case.

@eamodio Can you share how did you do it? Sorry if it is a naive questions

@musahaidari F1 > "Open User/Workspace Settings"

Click on the "json" icon to have a raw view
image

Then locate the setting and either change its value or delete the line.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

roblourens picture roblourens  路  4Comments

vgrafe picture vgrafe  路  3Comments

Ardeshir81 picture Ardeshir81  路  3Comments

DavidBabel picture DavidBabel  路  3Comments

ridhwaans picture ridhwaans  路  3Comments