StyLua icon indicating copy to clipboard operation
StyLua copied to clipboard

Pre-commit Hook fails on Windows

Open Lyzrinn opened this issue 3 years ago • 2 comments

When attempting to run stylua-system pre-commit hook, an exception is thrown as it attempts to find stylua.EXE (in capital letters).

stylua is installed with aftman under that name, but only works if renamed with the capitalized .EXE version as followed: "stylua.EXE" = "JohnnyMorganz/[email protected]"

Lyzrinn avatar Sep 12 '22 22:09 Lyzrinn

I don't actually use the precommit hook so not sure what the issue is here. It sounds like this might actually be a problem with precommit? If it only searches for stylua.EXE. Or maybe aftman is doing something wrong

JohnnyMorganz avatar Sep 21 '22 18:09 JohnnyMorganz

I had a similar issue while attempting to get a selene precommit hook working with the system language, so I think it is an issue with precommit itself.

TreehouseFalcon avatar Sep 22 '22 22:09 TreehouseFalcon

Going to close this as it seems more of a pre-commit / aftman issue than stylua. Let me know if you have any further questions about it

JohnnyMorganz avatar Dec 07 '22 13:12 JohnnyMorganz