v1.5.0 release: LyrebirdRandom + Live Scratch editor

LyrebirdRandom scalar distribution sampling (seedable value type + shared
Random) with DistributionKind.sample dispatcher. Live Scratch editor: rename to
LyrebirdScratch, App Support artifact staging, Format Code (⌥⌘F), Render to File
(⌥⌘R offline CAF), line-number gutter, manual completion, Foundation in snippets,
scroll-jump fix, scheduling/NRT docs.
This commit is contained in:
2026-07-22 07:53:12 -07:00
parent 8519cabe42
commit 62b2f5dbec
43 changed files with 2249 additions and 376 deletions
@@ -15,8 +15,11 @@ struct DiagnosticParserTests {
@Test
func parsesSingleErrorAtUserBodyLine() throws {
// Wrapped snippet preamble is 8 lines; user body starts at line 9.
// swiftc reports an error on wrapped line 10 → maps to user line 2.
// Representative offset: for a preamble whose user body starts at line 9,
// a swiftc error on wrapped line 10 maps to user line 2. (This tests the
// parser's arithmetic directly; the actual harness offset — which shifts
// when the preamble changes — is exercised by
// `endToEndOffsetMatchesSnippetHarness` below.)
let stderr: String = "/tmp/Snippet.swift:10:14: error: cannot find 'foo' in scope"
let diagnostics: [Diagnostic] = DiagnosticParser.parse(stderr: stderr, userBodyLineOffset: 9)
try #require(diagnostics.count == 1)