-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
formatting nixpkgs-fmt command exited with 65280, #412
Comments
I had tried as well with nixfmt in my system packages and this did not work :( pls halp! NixOS newbie, so may be missing the obvious |
A quick fix would be to add In my case, I encountered the same error because nixd releases <= v2.3.1, which was in the unstable channel, effectively forces usage of Until a new release is merged, those that want to use another formatter can either use nixd from source/flake with the nix fmt flake option: outputs = inputs: {
formatter.x86_64-linux = inputs.nixpkgs.legacyPackages.x86_64-linux.nixfmt-rfc-style;
...
}; or the vscode-nix-ide configuration without flakes defined: "nix.serverSettings": {
"nixd": {
"formatting": {
"command": ["nixfmt"]
}
}
}, Both options still require the formatter package in the environment, from my testing. |
Thanks for the suggestions. "nixd": {
"formatting": {
"command": "nixfmt"
}
} has the formatter working again. |
When I try to format with Nix IDE, I get this message:
formatting nixpkgs-fmt command exited with 65280, error: 3
[Error - 11:56:39 AM] Request textDocument/formatting failed.
Message: formatting nixpkgs-fmt command exited with 65280
Code: -32001
I've tried other commands such as
nixfmt
andnixfmt-classic
My settings.json
and the packages in my /etc/nixosconfiguration.nix file
The text was updated successfully, but these errors were encountered: