Skip to content
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

Weird line break in empty attrsets #265

Closed
piegamesde opened this issue Nov 26, 2024 · 3 comments
Closed

Weird line break in empty attrsets #265

piegamesde opened this issue Nov 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@piegamesde
Copy link
Member

Description

Found by @Atemu. Needs to be bisected, but I strongly suspect that this is a regression of #224

Small example input

{
  foo = {
  };
}

Expected output

no change, or

{
  foo = { };
}

Actual output

{
  foo =
    {
    };
}
@dasJ
Copy link
Member

dasJ commented Nov 26, 2024

Duplicate of #253 ?

@piegamesde
Copy link
Member Author

Unclear, but likely. The other bug looks really similar, but all examples use function applications while this one is directly on an attrset, which is special cased and thus a different code path. So maybe keep this one open in case a fix for one doesn't also fix the other.

@piegamesde
Copy link
Member Author

Duplicate of #253

@piegamesde piegamesde marked this as a duplicate of #253 Dec 2, 2024
@piegamesde piegamesde closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Nix formatting Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

2 participants