bugfixes, better MusicXML support and 1.1.0

This commit is contained in:
2026-06-10 08:41:07 -07:00
parent 6d3a0930a1
commit f59fd3b55a
228 changed files with 32271 additions and 2586 deletions
@@ -52,7 +52,7 @@ struct LiveSessionDiagnosticsTests {
@Test
func compilerErrorWrapsUnderlyingForNonCompileFailures() {
// Force a non-compile error by pointing at a build dir that doesn't exist.
// The Phase 142 compile path still succeeds (a swiftc invocation with -I
// The compile path still succeeds (a swiftc invocation with -I
// pointing at a missing dir surfaces as `compileFailed` via swiftc's own
// "no such module" — not `compilerError`). Instead, drive a real
// compilerError case by routing through a LiveCompileError that isn't
@@ -60,7 +60,7 @@ struct LiveSessionDiagnosticsTests {
// entrySymbolMissing — but a real run with full build dir succeeds.
// We just verify the type LiveSessionError.compilerError exists and is
// representable; behavioural coverage of non-compileFailed cases is
// exercised at the LiveCompiler layer (Phase 142 tests).
// exercised at the LiveCompiler layer.
let err: LiveSessionError = LiveSessionError.compilerError(.swiftcNotFound)
#expect(String(describing: err).contains("swiftc"))
}
@@ -74,9 +74,9 @@ struct LiveSessionTests {
#expect(session.lastSnippetMessage == "async hello")
}
/// Phase 203 runtime guard: a snippet driven through `compileAndRunAsync` that calls
/// Runtime guard: a snippet driven through `compileAndRunAsync` that calls
/// `context.play(_:)` actually adds and tracks a synth. `context.play` → `engine.add` is
/// `@MainActor` (Phase 201); `compileAndRunAsync` resumes the snippet entry on the main
/// `@MainActor`; `compileAndRunAsync` resumes the snippet entry on the main
/// actor (not the nonisolated executor it suspends on), so this exercises that hop.
@Test
func asyncCompileAndRunPlaysAndTracksSynth() async throws {