dprint / dprint

Pluggable and configurable code formatting platform written in Rust.

Home Page:https://dprint.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

newLineKind system formats "LF" on windows

nikolaiessel opened this issue · comments

Version: 0.42.5

I downloaded windows installer from https://github.com/dprint/dprint/releases/download/0.42.5/dprint-x86_64-pc-windows-msvc-installer.exe

Regardless of execution via PS or CMD, files are formated with "LF" line ending when using {"newLineKind": "system"}.
Files are formatted with correct line ending, if I change configuration to {"newLineKind": "crlf"}

We have both Windows & Mac users and git checks out the files with system line endings. So after formatting on windows, each file is marked as changed because of the line-ending.

Maybe the windows version is build with wrong target configuration?