A workspace on the Windows desktop whose home is the Linux Docker server:
the server keeps adding Merge/External versions with identical content;
the desktop alternates between Server newer and Modified with no edits;
saves produce empty versions;
renders lose the version they were made from.
Cause
ProjectSettings.ToJson and IndentedJson wrote indented JSON with Environment.NewLine: CRLF on Windows, LF on Linux. The canonical text and ProjectContent.Hash of the same choices therefore differed by OS, and the "same choices / same version" comparisons were raw.
Fix
Canonical text uses LF on every OS.
SameChoices and the new MatchesHash compare line-end-insensitively, so versions already stored with CRLF still match.
## Symptom
A workspace on the Windows desktop whose home is the Linux Docker server:
- the server keeps adding Merge/External versions with identical content;
- the desktop alternates between *Server newer* and *Modified* with no edits;
- saves produce empty versions;
- renders lose the version they were made from.
## Cause
`ProjectSettings.ToJson` and `IndentedJson` wrote indented JSON with `Environment.NewLine`: CRLF on Windows, LF on Linux. The canonical text and `ProjectContent.Hash` of the same choices therefore differed by OS, and the "same choices / same version" comparisons were raw.
## Fix
- Canonical text uses LF on every OS.
- `SameChoices` and the new `MatchesHash` compare line-end-insensitively, so versions already stored with CRLF still match.
- Integrity checks (`Verifies`, push 422, sidecar checks) stay exact.
Commits on `or1-p4`: 787f0300, d2332687.
Alby96
added this to the v0.1.0-rc.12 milestone 2026-11-05 00:15:17 +01:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Symptom
A workspace on the Windows desktop whose home is the Linux Docker server:
Cause
ProjectSettings.ToJsonandIndentedJsonwrote indented JSON withEnvironment.NewLine: CRLF on Windows, LF on Linux. The canonical text andProjectContent.Hashof the same choices therefore differed by OS, and the "same choices / same version" comparisons were raw.Fix
SameChoicesand the newMatchesHashcompare line-end-insensitively, so versions already stored with CRLF still match.Verifies, push 422, sidecar checks) stay exact.Commits on
or1-p4:787f0300,d2332687.