Project text and hash differ between Windows and Linux (spurious Merge versions, false "Modified") #20

Closed
opened 2026-11-05 00:15:17 +01:00 by Alby96 · 0 comments
Owner

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.

## 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
Alby96 added the bugarea/desktoparea/server labels 2026-11-05 00:15:17 +01:00
Alby96 added this to the Road to 1.0 project 2026-11-05 00:15:39 +01:00
Alby96 moved this to In Progress in Road to 1.0 on 2026-11-05 00:15:39 +01:00
Alby96 moved this to Done in Road to 1.0 on 2026-11-05 01:09:39 +01:00
Sign in to join this conversation.