Skip to content

nix fmt support is broken #103

Closed as duplicate
Closed as duplicate

Description

@provokateurin

I requested the support in #97 and it was implemented in #102.

I was already a bit confused when I looked at the diff, because the issue was not just the working directory, but also that the output for the formatter command is written to the file. nix fmt doesn't print the formatted file to its ouput, thus the file content is emptied. I had already mentioned it in #97 (comment).

Activity

  1. bodiam commented on Jul 11, 2026

    @bodiam

    Hi @provokateurin , I'm not sure if it's gonna help you much, but "nix fmt" is working in Nix Pro (it's a plugin of which I am the author, and it's commercial so I can spend the time on it to maintain it, but I can understand if that's not the thing you're looking for here). Cheers!

  2. provokateurin commented on Jul 11, 2026

    @provokateurin
    MemberAuthor

    As far as I can see, you never contributed to this plugin, so please stop your advertising.

  3. bodiam commented on Jul 11, 2026

    @bodiam

    I have not, since this is not my repo. However, since I already built the feature, I was more than happy to contribute the feature here as well, but all good.

  4. JojOatXGME commented on Jul 11, 2026

    @JojOatXGME
    Contributor

    @provokateurin You are right, we should not have closed #97, as the topic was only partially addressed. Sorry for the confusion. I did reopen the initial ticket.

  5. provokateurin commented on Jul 11, 2026

    @provokateurin
    MemberAuthor

    No problem :) I didn't want to bump a closed issue, because I know it usually gets lost. I'll close this one, since you re-opened my original issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions