Skip to content

Pre-commit hook fails with parse error #1416

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

Closed
pepeiborra opened this issue Feb 20, 2021 · 3 comments · Fixed by #1418
Closed

Pre-commit hook fails with parse error #1416

pepeiborra opened this issue Feb 20, 2021 · 3 comments · Fixed by #1418

Comments

@pepeiborra
Copy link
Collaborator

stylish-haskell..........................................................Failed
- hook id: stylish-haskell
- exit code: 1

ghcide/src/Development/IDE/Main.hs: RealSrcSpan SrcSpanOneLine "ghcide/src/Development/IDE/Main.hs" 198 109 110: parse error on input `@'

I believe stylish-haskell does support type applications, so maybe this is a configuration issue?

@Ailrun
Copy link
Member

Ailrun commented Feb 20, 2021

I cannot reproduce it with CLI, so it's probably to do with nix-pre-commit-hook.

@Ailrun
Copy link
Member

Ailrun commented Feb 20, 2021

It looks like pre-commit cannot detect the stylish-haskell setting file...

@Ailrun
Copy link
Member

Ailrun commented Feb 21, 2021

IDK why, but pre-commit only uses the top-level stylish-haskell setting and does not use any subdirectory settings...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants