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

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

Closed
ionutz89 opened this issue Jul 28, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@ionutz89
Copy link

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
Copy link
Owner

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

@Lakshmikanth2001 Lakshmikanth2001 added the bug Something isn't working label Jul 28, 2023
@ionutz89
Copy link
Author

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

Anything else that I should try it?

@ionutz89
Copy link
Author

ionutz89 commented Jul 28, 2023

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
Copy link
Owner

Lakshmikanth2001 commented Jul 28, 2023

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
Copy link
Author

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

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

@Lakshmikanth2001
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants