Skip to content

Windows: the first build's errors fixed, version 0.9.17 - #159

Open
jacques-pr wants to merge 2 commits into
mainfrom
claude/project-thread-mxnwp2
Open

jacques-pr wants to merge 2 commits into
mainfrom
claude/project-thread-mxnwp2

Conversation

@jacques-pr

@jacques-pr jacques-pr commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

The first build of the service on Windows (Swift 6.4.3, x86_64) stopped on six errors of three kinds. This fixes them. More may follow: the compiler stops at the first files that fail, so the Windows half of the socket calls may not have been reached yet.

What changed

  • Windows' own calls (Linux/WindowsCalls.swift): in Swift 6.4 they answer with a plain Bool, so .boolValue is gone from the four places that read memory, processor time and disk space.
  • QR code rows (App/QRCode.swift): String(row.map { $0 ? "1" : "0" }) could be read as characters or as strings on Windows. The row is now joined strings.
  • gzip (Linux/Compression.swift): zlib's uLong is 32 bits on Windows, so the size is passed as uLong.
  • Version 0.9.17.

Checked

scripts/check.sh --quick: 9 of 9 passed (Tokenmeter 0.9.17, x86_64): syntax of 344 Swift files, embedded files, agents, 6117 checks in Tests/, the release build, and the wire, storage, history-store and mesh service tests.

The service also builds on Linux as a stand-in for Windows (os(Windows) true, os(Linux) false). Not compiled on Windows or a Mac here.

To try on Windows

powershell -ExecutionPolicy Bypass -File Windows\build.ps1

https://claude.ai/code/session_01EE8zWAb9NE9fkNfceGiwqR


Generated by Claude Code

claude and others added 2 commits December 1, 2026 17:39
…on 0.9.15

- Windows' own calls answer with a plain Bool in Swift 6.4, so `.boolValue` is gone (Linux/WindowsCalls.swift).
- The QR code's text rows are joined strings: `String(row.map { … })` could be read two ways there.
- zlib's `uLong` is 32 bits on Windows: the gzip bound is asked with that type.

Co-Authored-By: tokenmeter1 <358883051+tokenmeter1@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EE8zWAb9NE9fkNfceGiwqR
Co-Authored-By: tokenmeter1 <358883051+tokenmeter1@users.noreply.github.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EE8zWAb9NE9fkNfceGiwqR
@jacques-pr jacques-pr changed the title Windows: the first build's errors fixed, version 0.9.15 Windows: the first build's errors fixed, version 0.9.17 Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants