Vscode-gitlens: command "gitlens.XXX" not found

Created on 30 Apr 2019  路  23Comments  路  Source: eamodio/vscode-gitlens

Hello, i already deleted the extension in the folder after deinstalling the extension, and even restarted my mac after manually deleting the plugin in the folder. Sadly this didn't fix anything, i still can't call any commands nor do i get blame annotations inside my VSCode. If i can help in any way to fix it please let me now! I really miss my Lens ! Thanks for the great tool 馃挋

  • GitLens Version: 9.6.3
  • VSCode Version: 1.33.1
  • OS Version: macOS Mojave 10.14.4
potential bug

All 23 comments

@rotwurstesser Can you enabled output logging and post the output?

I apologize If i didn't understand this correctly : i need to set "gitlens.outputLevel": "verbose" in my Settings.json then i should see errors in the "Output" (which is next to the integrated terminal) as soon as i run any gitlens commands ? I don't get any output ....

Yeah, make sure you reload vscode after setting gitlens.outputLevel and you should see the output here:
image

Screenshot 2019-05-01 at 09 29 34

It doesn't show it =( are there any other settings i might need to do?

@rotwurstesser does this issue still happen with GitLens 9.7 or later?

Yes, 'gitLens.showsettingsPage' (or any commands) not found with version 9.7.3

@rotwurstesser Do you possibly have GitLens disabled or something? I don't understand what could be happening

It is active, a difference i did notice since the upgrade to 9.7.3 though: the folder of gitlens in my extensions now has content...

So is it working now? If not, are there any logs now?

Sadly no... but i found a plugin thats working for my needs atm, not as good as Lens but will do ... =) i will check the updates for gitlens from now on and notify you when it works again, thanks for your time !

The only other thing I can think of is that there is anti-virus that is getting in the way (there were some issues with false positives and av software nuking GitLens files). Can you check inside the dist folder inside the GitLens folder and let me know what files are in there?

sure!
This is the content:

  • extension.js
  • extension.js.map
  • webviews

@rotwurstesser does the extension.js have a valid size ~798 KB?

it has 827kb

I had the same problem - what eventually fixed it was deleting all gitlens settings from my settings.json.

@eamodio as @joelw said (thanks! 馃檹) this solves it, i cleared everything and did a clean install, glad to use gitlens again =)

Unfortunatly I got the same issue, but a clean install didn't fix it so far. Opening the debugger gives me some "Unexpected token" errors on ~/.vscode/extensions/eamodio.gitlens-9.9.3/dist/extension.js, which addresses the spread operators like in renderOptions:{before:{...i}}.

I am using:

  • GitLens Version: 9.9.3
  • VSCode Version: 1.36.1
  • OS Version: macOS Mojave 10.14.6

... even on GitLens Version 10.0.1 the error occurs. I tried the uninstall -> delete folder -> install from marketplace and from .vsix procedure a dozen of times with the same results: The debugger shows

[Extension Host] Activating extension `eamodio.gitlens` failed:  ~/.vscode/extensions/eamodio.gitlens-10.0.1/dist/extension.js: Unexpected token (1:35585)

I do not have any GitLens settings in the settings.json. Any hints how to resolve this?

Had the same issue.
My problem was that i had "git.enabled": false in my settings.json
My Solution:

  • change "git.enabled": true
  • reload VScode
    if still not work:

    • Unistalled gitLens,

    • Deleted gitLens folder in .vscode/extensions,

    • Clear all gitLens related settings from your settings,json

    • reload VSCode

    • install gitLens again

Yeaaas, finally I found the breaking point: For me it was the extension vscode babel transform
. After disabling it, gitLens finally works as expected (and missed long time).

Yeaaas, finally I found the breaking point: For me it was the extension vscode babel transform . After disabling it, gitLens finally works as expected (and missed long time).

Confirmed. Same thing was somehow blocking GitLens for me.

My problem was Git Graph v1.26.0, just uninstall and reload VSCode.

Error code: (command 'gitlens.showSettingsPage' not found)

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

robertzauner picture robertzauner  路  3Comments

derrickstolee picture derrickstolee  路  3Comments

rfgamaral picture rfgamaral  路  3Comments

obrejla picture obrejla  路  3Comments

JP-Ellis picture JP-Ellis  路  3Comments