62b2f5dbec
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.
21 lines
642 B
Swift
21 lines
642 B
Swift
// SwiftFormatterError.swift
|
|
// Lyrebird
|
|
//
|
|
// Copyright (c) 2026 Joshua Parmenter / realizedsound
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#if os(macOS)
|
|
|
|
/// Errors raised while formatting snippet source with `swift-format`.
|
|
public enum SwiftFormatterError: Error {
|
|
/// No `swift-format` executable could be located (no Xcode / toolchain, or
|
|
/// an older toolchain that predates the bundled formatter).
|
|
case toolNotFound
|
|
/// `swift-format` exited non-zero — usually a parse error in the source.
|
|
case formatFailed(exitCode: Int32, stderr: String)
|
|
/// A filesystem or process I/O failure.
|
|
case ioFailed(String)
|
|
}
|
|
|
|
#endif
|