nixfmt icon indicating copy to clipboard operation
nixfmt copied to clipboard

`numtide/treefmt` compatibility

Open yorickvP opened this issue 3 years ago • 1 comments

User report:

I set up treefmt for my editor and nixfmt fails formatting without any obvious sign. Maybe the spec is incomplete, but I think it had to do with some sort of temp-file mutation. iirc. Maybe treefmt and nixfmt are competing on the file-handling domain in incompatible ways?

yorickvP avatar Feb 25 '22 20:02 yorickvP

@blaggacao

yorickvP avatar Feb 25 '22 20:02 yorickvP

I would like to hijack this as nixfmt was added by me to treefmt without seeing this - it works fine (from formatting output) but it changes mtime even file didn't had to be reformatted which was reported here and violates the idempotence requirement from treefmt.

Sadly I don't have any Haskell knowledge and currently no time to get into so I would appreciate if someone could help out here :v:

SebTM avatar Sep 24 '23 20:09 SebTM