You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
nixpkgs-fmt 1.3.0 was released 2 months ago, and nixpkgs-unstable updated almost immediately. However rnix-lsp appears to still be using nixpkgs-fmt 1.2.0.
nixpkgs-fmt 1.3.0 produces formatting differences from 1.2.0, and this means if I have rnix-lsp and nixpkgs-fmt both installed from recent nixpkgs-unstable, formatting from within my IDE disagrees with formatting from the command-line. This is very frustrating.
Steps to reproduce
With this code snippet:
{x=letx={y=1;};inx;}
Ask rnix-lsp to format it (e.g. with VSCode), and then ask nixpkgs-fmt 1.3.0 to format it. In this case, nixpkgs-fmt converts it to
{x=letx={y=1;};inx;}
(I actually disagree with 1.3.0's formatting here but that's beside the point)
Expected behavior
rnix-lsp's formatting should match that of nixpkgs-fmt.
I realize that when nixpkgs-fmt updates, rnix-lsp might lag a little bit, but it should try to update as soon as is reasonable, so that way pulling rnix-lsp and nixpkgs-fmt from the same nixpkgs revision should result in identical formatting most of the time.
Additional context
Version of rnix-lsp: 0.2.5
Name and version of the editor you've used: VSCode
Operating system: macOS
The text was updated successfully, but these errors were encountered:
Describe the bug
nixpkgs-fmt
1.3.0 was released 2 months ago, and nixpkgs-unstable updated almost immediately. However rnix-lsp appears to still be using nixpkgs-fmt 1.2.0.nixpkgs-fmt 1.3.0 produces formatting differences from 1.2.0, and this means if I have
rnix-lsp
andnixpkgs-fmt
both installed from recentnixpkgs-unstable
, formatting from within my IDE disagrees with formatting from the command-line. This is very frustrating.Steps to reproduce
With this code snippet:
Ask rnix-lsp to format it (e.g. with VSCode), and then ask
nixpkgs-fmt
1.3.0 to format it. In this case, nixpkgs-fmt converts it to(I actually disagree with 1.3.0's formatting here but that's beside the point)
Expected behavior
rnix-lsp's formatting should match that of nixpkgs-fmt.
I realize that when nixpkgs-fmt updates, rnix-lsp might lag a little bit, but it should try to update as soon as is reasonable, so that way pulling rnix-lsp and nixpkgs-fmt from the same nixpkgs revision should result in identical formatting most of the time.
Additional context
The text was updated successfully, but these errors were encountered: