Lakshmikanth2001 / GitHooks

Git Hooks VS-Code Extension
https://marketplace.visualstudio.com/items?itemName=lakshmikanthayyadevara.githooks
Other
7 stars 2 forks source link

[BUG] Error running command git-hooks.reloadHooks: command 'git-hooks.reloadHooks' not found. #10

Closed ionutz89 closed 1 year ago

ionutz89 commented 1 year ago

Hello,

I am getting this error:

Error running command git-hooks.reloadHooks: command 'git-hooks.reloadHooks' not found. This is likely caused by the extension that contributes git-hooks.reloadHooks.

I mentioned on configuration Git Hooks: Hooks Directory the full path.

Can you please let me know what I can do?

Lakshmikanth2001 commented 1 year ago

i encountered same bug when upgrading from 1.0. to 1.1 just restart your vscode or using Developer: Reload Windows to refresh the vscode instance that automatically resolved the issue please let me know if this works for you

ionutz89 commented 1 year ago

I tried @Lakshmikanth2001, your suggestion, without any luck. I am using VS under OS macOS.

Anything else that I should try it?

ionutz89 commented 1 year ago

When I tried to refresh the Hooks button: I got this error:

Error running command git-hooks.toggleView: command 'git-hooks.toggleView' not found. This is likely caused by the extension that contributes git-hooks.toggleView.

I downgraded to v1.1.0, and I don't anymore the error. The last update does not work very well for me.

Lakshmikanth2001 commented 1 year ago

ok I am unable to reproduce the issue on Mac you can uninstall and install the extension back for the latest version may be some extension caching issue, you can help by inspecting the extension host logs under the output tab, mostly reinstalling the extension should resolve the issue please let me know if it works

you can try out my latest version i.e 1.2.1

ionutz89 commented 1 year ago

It seems it does not like this format path: ~/.hooks

I had to update this version in settings VS: ~/Users/username/.hooks

Lakshmikanth2001 commented 1 year ago

yes you are right you should give absolute path as I am using node's path library to read the file system, let me know if I can close this issue