alirezanet / Husky.Net

Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
https://alirezanet.github.io/Husky.Net/
MIT License
632 stars 29 forks source link

No hooks logs in Visual Studio with Husky.Net #50

Closed NilkOne closed 1 year ago

NilkOne commented 1 year ago

Version

0.5.1

Details

In Visual Studio Enterprise 2022 (64 bits) - Preview Version 17.3.0 Preview 6.0, I can't view hook error logs.

I can view an error message "One or more errors occurs" but no details when comiting. No more details in Output window (Git source control section).

I can view logs only if I run a git command line in dos/powershell.

(if I copy the hook directly in Git Hooks folder, that work and I can see error message in VS window)

Any solutions ?

image

Steps to reproduce

alirezanet commented 1 year ago

Hi @NilkOne,

First of all, I don't have this problem in Visual Studio 2022 v17.0.6. for me, it shows the error message directly! image maybe if update your visual studio it will fix.

second, if the visual studio doesn't provide any way to check git error messages I can not do much about that in husky.

NilkOne commented 1 year ago

Thanks for your rapid answer

Can you share your hooks please ?

alirezanet commented 1 year ago

Can you share your hooks please ?

I've tested this problem with the current husky repo.