Build Information
Failed to build LispKit, reference master (169d99
), with Swift 6.2 (beta) for macOS (SPM) on 11 Aug 2025 03:46:07 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3003:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3005:27: error: no exact matches in call to subscript
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
3007 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3006:28: error: no exact matches in call to subscript
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3007 | throw RawDecodingError.cannotReadSize
3008 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3009:38: error: no exact matches in call to subscript
3007 | throw RawDecodingError.cannotReadSize
3008 | }
3009 | guard let bitsPerComponent = info[CGPDFDictionaryGetInteger, "BitsPerComponent"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3010 | throw RawDecodingError.cannotReadBitsPerComponent
3011 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3013:28: error: no exact matches in call to subscript
3011 | }
3012 | let decode: [CGFloat]?
3013 | if let decodeRef = info[CGPDFDictionaryGetArray, "Decode"] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3014 | let count = CGPDFArrayGetCount(decodeRef)
3015 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3083:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3081 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3082 | var result: UnsafePointer<UInt8>!
3083 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3084 | return nil
3085 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3091:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3089 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3090 | var result: R!
3091 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3092 | return nil
3093 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3100:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3098 | _ key: K) -> R? {
3099 | var result = R()
3100 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3101 | return nil
3102 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3108:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3106 | func getNameArray(for key: String) -> [String]? {
3107 | var object: CGPDFObjectRef!
3108 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3109 | return nil
3110 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3111:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3109 | return nil
3110 | }
3111 | if let name = object.getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3112 | return [name]
3113 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3120:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3118 | var names = [String]()
3119 | for index in 0..<CGPDFArrayGetCount(array) {
3120 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3121 | continue
3122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3131:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3129 |
3130 | func getColorSpace() throws -> CGColorSpace {
3131 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3132 | switch name {
3133 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3147:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3145 | throw RawDecodingError.corruptColorSpace
3146 | }
3147 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3148 | throw RawDecodingError.corruptColorSpace
3149 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:37: error: no exact matches in call to subscript
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3157:34: error: no exact matches in call to subscript
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3157 | let hival = array[CGPDFArrayGetInteger, 2],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3158 | hival < 256 else {
3159 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3162:37: error: no exact matches in call to subscript
3160 | }
3161 | let colorSpace: CGColorSpace?
3162 | if let lookupTable = array[CGPDFArrayGetString, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3163 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3164 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3167:44: error: no exact matches in call to subscript
3165 | }
3166 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3167 | } else if let lookupTable = array[CGPDFArrayGetStream, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3168 | var format = CGPDFDataFormat.raw
3169 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3184:35: error: no exact matches in call to subscript
3182 | case "ICCBased":
3183 | var format = CGPDFDataFormat.raw
3184 | guard let stream = array[CGPDFArrayGetStream, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3185 | let info = CGPDFStreamGetDictionary(stream),
3186 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3200:33: error: no exact matches in call to subscript
3198 | return colorSpace
3199 | case "Lab":
3200 | guard let info = array[CGPDFArrayGetDictionary, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3201 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3202 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3219:12: error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
3219 | self[CGPDFArrayGetNumber, $0]!
| `- error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3220 | }
3221 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3218:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3216 |
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3219 | self[CGPDFArrayGetNumber, $0]!
3220 | }
[524/532] Compiling LispKit MarkdownLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:780:67: error: missing argument for parameter 'parent' in call
778 | case .pair(_ , _):
779 | return .makeString(HtmlGenerator.standard.generate(blocks:
780 | try self.internMarkdown(blocks: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:49:13: note: 'generate(blocks:parent:tight:)' declared here
47 | }
48 |
49 | open func generate(blocks: Blocks, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(blocks:parent:tight:)' declared here
50 | var res = ""
51 | for block in blocks {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:783:66: error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
783 | try self.internMarkdown(block: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
784 | default:
785 | throw RuntimeError.custom(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:57:13: note: 'generate(block:parent:tight:)' declared here
55 | }
56 |
57 | open func generate(block: Block, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(block:parent:tight:)' declared here
58 | switch block {
59 | case .document(_):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:980:34: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
978 | if case .pair(let char, .pair(let tight, .pair(let blocks, .null))) = args {
979 | return .listItem(.bullet(Character(unicodeScalar(try char.asUniChar()))),
980 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
981 | try self.internMarkdown(blocks: blocks))
982 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:988:32: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
986 | return .listItem(.ordered(try start.asInt(),
987 | Character(unicodeScalar(try char.asUniChar()))),
988 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
989 | try self.internMarkdown(blocks: blocks))
990 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1191:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1189 | self.bullet,
1190 | .char(ch.utf16.first!),
1191 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1192 | self.externMarkdown(blocks))
1193 | case .listItem(.ordered(let n, let ch), let tight, let blocks):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1198:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1196 | .makeNumber(n),
1197 | .char(ch.utf16.first!),
1198 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1199 | self.externMarkdown(blocks))
1200 | case .paragraph(let text):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:37: error: no exact matches in call to subscript
2943 | guard let page = self.pageRef,
2944 | let dictionary = page.dictionary,
2945 | let resources = dictionary[CGPDFDictionaryGetDictionary, "Resources"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
2946 | return []
2947 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:36: error: no exact matches in call to subscript
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3003:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3005:27: error: no exact matches in call to subscript
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
3007 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3006:28: error: no exact matches in call to subscript
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3007 | throw RawDecodingError.cannotReadSize
3008 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3009:38: error: no exact matches in call to subscript
3007 | throw RawDecodingError.cannotReadSize
3008 | }
3009 | guard let bitsPerComponent = info[CGPDFDictionaryGetInteger, "BitsPerComponent"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3010 | throw RawDecodingError.cannotReadBitsPerComponent
3011 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3013:28: error: no exact matches in call to subscript
3011 | }
3012 | let decode: [CGFloat]?
3013 | if let decodeRef = info[CGPDFDictionaryGetArray, "Decode"] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3014 | let count = CGPDFArrayGetCount(decodeRef)
3015 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3083:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3081 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3082 | var result: UnsafePointer<UInt8>!
3083 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3084 | return nil
3085 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3091:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3089 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3090 | var result: R!
3091 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3092 | return nil
3093 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3100:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3098 | _ key: K) -> R? {
3099 | var result = R()
3100 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3101 | return nil
3102 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3108:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3106 | func getNameArray(for key: String) -> [String]? {
3107 | var object: CGPDFObjectRef!
3108 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3109 | return nil
3110 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3111:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3109 | return nil
3110 | }
3111 | if let name = object.getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3112 | return [name]
3113 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3120:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3118 | var names = [String]()
3119 | for index in 0..<CGPDFArrayGetCount(array) {
3120 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3121 | continue
3122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3131:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3129 |
3130 | func getColorSpace() throws -> CGColorSpace {
3131 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3132 | switch name {
3133 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3147:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3145 | throw RawDecodingError.corruptColorSpace
3146 | }
3147 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3148 | throw RawDecodingError.corruptColorSpace
3149 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:37: error: no exact matches in call to subscript
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3157:34: error: no exact matches in call to subscript
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3157 | let hival = array[CGPDFArrayGetInteger, 2],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3158 | hival < 256 else {
3159 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3162:37: error: no exact matches in call to subscript
3160 | }
3161 | let colorSpace: CGColorSpace?
3162 | if let lookupTable = array[CGPDFArrayGetString, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3163 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3164 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3167:44: error: no exact matches in call to subscript
3165 | }
3166 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3167 | } else if let lookupTable = array[CGPDFArrayGetStream, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3168 | var format = CGPDFDataFormat.raw
3169 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3184:35: error: no exact matches in call to subscript
3182 | case "ICCBased":
3183 | var format = CGPDFDataFormat.raw
3184 | guard let stream = array[CGPDFArrayGetStream, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3185 | let info = CGPDFStreamGetDictionary(stream),
3186 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3200:33: error: no exact matches in call to subscript
3198 | return colorSpace
3199 | case "Lab":
3200 | guard let info = array[CGPDFArrayGetDictionary, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3201 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3202 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3219:12: error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
3219 | self[CGPDFArrayGetNumber, $0]!
| `- error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3220 | }
3221 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3218:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3216 |
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3219 | self[CGPDFArrayGetNumber, $0]!
3220 | }
[525/532] Compiling LispKit MathLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:780:67: error: missing argument for parameter 'parent' in call
778 | case .pair(_ , _):
779 | return .makeString(HtmlGenerator.standard.generate(blocks:
780 | try self.internMarkdown(blocks: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:49:13: note: 'generate(blocks:parent:tight:)' declared here
47 | }
48 |
49 | open func generate(blocks: Blocks, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(blocks:parent:tight:)' declared here
50 | var res = ""
51 | for block in blocks {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:783:66: error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
783 | try self.internMarkdown(block: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
784 | default:
785 | throw RuntimeError.custom(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:57:13: note: 'generate(block:parent:tight:)' declared here
55 | }
56 |
57 | open func generate(block: Block, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(block:parent:tight:)' declared here
58 | switch block {
59 | case .document(_):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:980:34: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
978 | if case .pair(let char, .pair(let tight, .pair(let blocks, .null))) = args {
979 | return .listItem(.bullet(Character(unicodeScalar(try char.asUniChar()))),
980 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
981 | try self.internMarkdown(blocks: blocks))
982 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:988:32: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
986 | return .listItem(.ordered(try start.asInt(),
987 | Character(unicodeScalar(try char.asUniChar()))),
988 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
989 | try self.internMarkdown(blocks: blocks))
990 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1191:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1189 | self.bullet,
1190 | .char(ch.utf16.first!),
1191 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1192 | self.externMarkdown(blocks))
1193 | case .listItem(.ordered(let n, let ch), let tight, let blocks):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1198:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1196 | .makeNumber(n),
1197 | .char(ch.utf16.first!),
1198 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1199 | self.externMarkdown(blocks))
1200 | case .paragraph(let text):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:37: error: no exact matches in call to subscript
2943 | guard let page = self.pageRef,
2944 | let dictionary = page.dictionary,
2945 | let resources = dictionary[CGPDFDictionaryGetDictionary, "Resources"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
2946 | return []
2947 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:36: error: no exact matches in call to subscript
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3003:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3005:27: error: no exact matches in call to subscript
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
3007 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3006:28: error: no exact matches in call to subscript
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3007 | throw RawDecodingError.cannotReadSize
3008 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3009:38: error: no exact matches in call to subscript
3007 | throw RawDecodingError.cannotReadSize
3008 | }
3009 | guard let bitsPerComponent = info[CGPDFDictionaryGetInteger, "BitsPerComponent"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3010 | throw RawDecodingError.cannotReadBitsPerComponent
3011 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3013:28: error: no exact matches in call to subscript
3011 | }
3012 | let decode: [CGFloat]?
3013 | if let decodeRef = info[CGPDFDictionaryGetArray, "Decode"] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3014 | let count = CGPDFArrayGetCount(decodeRef)
3015 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3083:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3081 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3082 | var result: UnsafePointer<UInt8>!
3083 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3084 | return nil
3085 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3091:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3089 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3090 | var result: R!
3091 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3092 | return nil
3093 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3100:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3098 | _ key: K) -> R? {
3099 | var result = R()
3100 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3101 | return nil
3102 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3108:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3106 | func getNameArray(for key: String) -> [String]? {
3107 | var object: CGPDFObjectRef!
3108 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3109 | return nil
3110 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3111:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3109 | return nil
3110 | }
3111 | if let name = object.getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3112 | return [name]
3113 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3120:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3118 | var names = [String]()
3119 | for index in 0..<CGPDFArrayGetCount(array) {
3120 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3121 | continue
3122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3131:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3129 |
3130 | func getColorSpace() throws -> CGColorSpace {
3131 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3132 | switch name {
3133 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3147:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3145 | throw RawDecodingError.corruptColorSpace
3146 | }
3147 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3148 | throw RawDecodingError.corruptColorSpace
3149 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:37: error: no exact matches in call to subscript
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3157:34: error: no exact matches in call to subscript
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3157 | let hival = array[CGPDFArrayGetInteger, 2],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3158 | hival < 256 else {
3159 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3162:37: error: no exact matches in call to subscript
3160 | }
3161 | let colorSpace: CGColorSpace?
3162 | if let lookupTable = array[CGPDFArrayGetString, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3163 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3164 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3167:44: error: no exact matches in call to subscript
3165 | }
3166 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3167 | } else if let lookupTable = array[CGPDFArrayGetStream, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3168 | var format = CGPDFDataFormat.raw
3169 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3184:35: error: no exact matches in call to subscript
3182 | case "ICCBased":
3183 | var format = CGPDFDataFormat.raw
3184 | guard let stream = array[CGPDFArrayGetStream, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3185 | let info = CGPDFStreamGetDictionary(stream),
3186 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3200:33: error: no exact matches in call to subscript
3198 | return colorSpace
3199 | case "Lab":
3200 | guard let info = array[CGPDFArrayGetDictionary, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3201 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3202 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3219:12: error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
3219 | self[CGPDFArrayGetNumber, $0]!
| `- error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3220 | }
3221 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3218:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3216 |
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3219 | self[CGPDFArrayGetNumber, $0]!
3220 | }
[526/532] Compiling LispKit PDFLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:780:67: error: missing argument for parameter 'parent' in call
778 | case .pair(_ , _):
779 | return .makeString(HtmlGenerator.standard.generate(blocks:
780 | try self.internMarkdown(blocks: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:49:13: note: 'generate(blocks:parent:tight:)' declared here
47 | }
48 |
49 | open func generate(blocks: Blocks, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(blocks:parent:tight:)' declared here
50 | var res = ""
51 | for block in blocks {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:783:66: error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
783 | try self.internMarkdown(block: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
784 | default:
785 | throw RuntimeError.custom(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:57:13: note: 'generate(block:parent:tight:)' declared here
55 | }
56 |
57 | open func generate(block: Block, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(block:parent:tight:)' declared here
58 | switch block {
59 | case .document(_):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:980:34: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
978 | if case .pair(let char, .pair(let tight, .pair(let blocks, .null))) = args {
979 | return .listItem(.bullet(Character(unicodeScalar(try char.asUniChar()))),
980 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
981 | try self.internMarkdown(blocks: blocks))
982 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:988:32: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
986 | return .listItem(.ordered(try start.asInt(),
987 | Character(unicodeScalar(try char.asUniChar()))),
988 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
989 | try self.internMarkdown(blocks: blocks))
990 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1191:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1189 | self.bullet,
1190 | .char(ch.utf16.first!),
1191 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1192 | self.externMarkdown(blocks))
1193 | case .listItem(.ordered(let n, let ch), let tight, let blocks):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1198:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1196 | .makeNumber(n),
1197 | .char(ch.utf16.first!),
1198 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1199 | self.externMarkdown(blocks))
1200 | case .paragraph(let text):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:37: error: no exact matches in call to subscript
2943 | guard let page = self.pageRef,
2944 | let dictionary = page.dictionary,
2945 | let resources = dictionary[CGPDFDictionaryGetDictionary, "Resources"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
2946 | return []
2947 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:36: error: no exact matches in call to subscript
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3003:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3005:27: error: no exact matches in call to subscript
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
3007 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3006:28: error: no exact matches in call to subscript
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3007 | throw RawDecodingError.cannotReadSize
3008 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3009:38: error: no exact matches in call to subscript
3007 | throw RawDecodingError.cannotReadSize
3008 | }
3009 | guard let bitsPerComponent = info[CGPDFDictionaryGetInteger, "BitsPerComponent"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3010 | throw RawDecodingError.cannotReadBitsPerComponent
3011 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3013:28: error: no exact matches in call to subscript
3011 | }
3012 | let decode: [CGFloat]?
3013 | if let decodeRef = info[CGPDFDictionaryGetArray, "Decode"] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3014 | let count = CGPDFArrayGetCount(decodeRef)
3015 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3083:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3081 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3082 | var result: UnsafePointer<UInt8>!
3083 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3084 | return nil
3085 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3091:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3089 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3090 | var result: R!
3091 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3092 | return nil
3093 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3100:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3098 | _ key: K) -> R? {
3099 | var result = R()
3100 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3101 | return nil
3102 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3108:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3106 | func getNameArray(for key: String) -> [String]? {
3107 | var object: CGPDFObjectRef!
3108 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3109 | return nil
3110 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3111:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3109 | return nil
3110 | }
3111 | if let name = object.getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3112 | return [name]
3113 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3120:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3118 | var names = [String]()
3119 | for index in 0..<CGPDFArrayGetCount(array) {
3120 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3121 | continue
3122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3131:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3129 |
3130 | func getColorSpace() throws -> CGColorSpace {
3131 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3132 | switch name {
3133 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3147:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3145 | throw RawDecodingError.corruptColorSpace
3146 | }
3147 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3148 | throw RawDecodingError.corruptColorSpace
3149 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:37: error: no exact matches in call to subscript
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3157:34: error: no exact matches in call to subscript
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3157 | let hival = array[CGPDFArrayGetInteger, 2],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3158 | hival < 256 else {
3159 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3162:37: error: no exact matches in call to subscript
3160 | }
3161 | let colorSpace: CGColorSpace?
3162 | if let lookupTable = array[CGPDFArrayGetString, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3163 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3164 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3167:44: error: no exact matches in call to subscript
3165 | }
3166 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3167 | } else if let lookupTable = array[CGPDFArrayGetStream, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3168 | var format = CGPDFDataFormat.raw
3169 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3184:35: error: no exact matches in call to subscript
3182 | case "ICCBased":
3183 | var format = CGPDFDataFormat.raw
3184 | guard let stream = array[CGPDFArrayGetStream, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3185 | let info = CGPDFStreamGetDictionary(stream),
3186 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3200:33: error: no exact matches in call to subscript
3198 | return colorSpace
3199 | case "Lab":
3200 | guard let info = array[CGPDFArrayGetDictionary, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3201 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3202 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3219:12: error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
3219 | self[CGPDFArrayGetNumber, $0]!
| `- error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3220 | }
3221 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3218:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3216 |
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3219 | self[CGPDFArrayGetNumber, $0]!
3220 | }
[527/532] Compiling LispKit PasteboardLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:780:67: error: missing argument for parameter 'parent' in call
778 | case .pair(_ , _):
779 | return .makeString(HtmlGenerator.standard.generate(blocks:
780 | try self.internMarkdown(blocks: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:49:13: note: 'generate(blocks:parent:tight:)' declared here
47 | }
48 |
49 | open func generate(blocks: Blocks, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(blocks:parent:tight:)' declared here
50 | var res = ""
51 | for block in blocks {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:783:66: error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
783 | try self.internMarkdown(block: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
784 | default:
785 | throw RuntimeError.custom(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:57:13: note: 'generate(block:parent:tight:)' declared here
55 | }
56 |
57 | open func generate(block: Block, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(block:parent:tight:)' declared here
58 | switch block {
59 | case .document(_):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:980:34: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
978 | if case .pair(let char, .pair(let tight, .pair(let blocks, .null))) = args {
979 | return .listItem(.bullet(Character(unicodeScalar(try char.asUniChar()))),
980 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
981 | try self.internMarkdown(blocks: blocks))
982 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:988:32: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
986 | return .listItem(.ordered(try start.asInt(),
987 | Character(unicodeScalar(try char.asUniChar()))),
988 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
989 | try self.internMarkdown(blocks: blocks))
990 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1191:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1189 | self.bullet,
1190 | .char(ch.utf16.first!),
1191 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1192 | self.externMarkdown(blocks))
1193 | case .listItem(.ordered(let n, let ch), let tight, let blocks):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1198:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1196 | .makeNumber(n),
1197 | .char(ch.utf16.first!),
1198 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1199 | self.externMarkdown(blocks))
1200 | case .paragraph(let text):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:37: error: no exact matches in call to subscript
2943 | guard let page = self.pageRef,
2944 | let dictionary = page.dictionary,
2945 | let resources = dictionary[CGPDFDictionaryGetDictionary, "Resources"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
2946 | return []
2947 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:36: error: no exact matches in call to subscript
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3003:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3005:27: error: no exact matches in call to subscript
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
3007 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3006:28: error: no exact matches in call to subscript
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3007 | throw RawDecodingError.cannotReadSize
3008 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3009:38: error: no exact matches in call to subscript
3007 | throw RawDecodingError.cannotReadSize
3008 | }
3009 | guard let bitsPerComponent = info[CGPDFDictionaryGetInteger, "BitsPerComponent"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3010 | throw RawDecodingError.cannotReadBitsPerComponent
3011 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3013:28: error: no exact matches in call to subscript
3011 | }
3012 | let decode: [CGFloat]?
3013 | if let decodeRef = info[CGPDFDictionaryGetArray, "Decode"] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3014 | let count = CGPDFArrayGetCount(decodeRef)
3015 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3083:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3081 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3082 | var result: UnsafePointer<UInt8>!
3083 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3084 | return nil
3085 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3091:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3089 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3090 | var result: R!
3091 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3092 | return nil
3093 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3100:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3098 | _ key: K) -> R? {
3099 | var result = R()
3100 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3101 | return nil
3102 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3108:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3106 | func getNameArray(for key: String) -> [String]? {
3107 | var object: CGPDFObjectRef!
3108 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3109 | return nil
3110 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3111:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3109 | return nil
3110 | }
3111 | if let name = object.getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3112 | return [name]
3113 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3120:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3118 | var names = [String]()
3119 | for index in 0..<CGPDFArrayGetCount(array) {
3120 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3121 | continue
3122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3131:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3129 |
3130 | func getColorSpace() throws -> CGColorSpace {
3131 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3132 | switch name {
3133 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3147:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3145 | throw RawDecodingError.corruptColorSpace
3146 | }
3147 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3148 | throw RawDecodingError.corruptColorSpace
3149 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:37: error: no exact matches in call to subscript
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3157:34: error: no exact matches in call to subscript
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3157 | let hival = array[CGPDFArrayGetInteger, 2],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3158 | hival < 256 else {
3159 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3162:37: error: no exact matches in call to subscript
3160 | }
3161 | let colorSpace: CGColorSpace?
3162 | if let lookupTable = array[CGPDFArrayGetString, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3163 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3164 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3167:44: error: no exact matches in call to subscript
3165 | }
3166 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3167 | } else if let lookupTable = array[CGPDFArrayGetStream, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3168 | var format = CGPDFDataFormat.raw
3169 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3184:35: error: no exact matches in call to subscript
3182 | case "ICCBased":
3183 | var format = CGPDFDataFormat.raw
3184 | guard let stream = array[CGPDFArrayGetStream, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3185 | let info = CGPDFStreamGetDictionary(stream),
3186 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3200:33: error: no exact matches in call to subscript
3198 | return colorSpace
3199 | case "Lab":
3200 | guard let info = array[CGPDFArrayGetDictionary, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3201 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3202 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3219:12: error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
3219 | self[CGPDFArrayGetNumber, $0]!
| `- error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3220 | }
3221 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3218:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3216 |
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3219 | self[CGPDFArrayGetNumber, $0]!
3220 | }
[528/532] Compiling LispKit PortLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:780:67: error: missing argument for parameter 'parent' in call
778 | case .pair(_ , _):
779 | return .makeString(HtmlGenerator.standard.generate(blocks:
780 | try self.internMarkdown(blocks: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:49:13: note: 'generate(blocks:parent:tight:)' declared here
47 | }
48 |
49 | open func generate(blocks: Blocks, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(blocks:parent:tight:)' declared here
50 | var res = ""
51 | for block in blocks {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:783:66: error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
783 | try self.internMarkdown(block: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
784 | default:
785 | throw RuntimeError.custom(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:57:13: note: 'generate(block:parent:tight:)' declared here
55 | }
56 |
57 | open func generate(block: Block, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(block:parent:tight:)' declared here
58 | switch block {
59 | case .document(_):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:980:34: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
978 | if case .pair(let char, .pair(let tight, .pair(let blocks, .null))) = args {
979 | return .listItem(.bullet(Character(unicodeScalar(try char.asUniChar()))),
980 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
981 | try self.internMarkdown(blocks: blocks))
982 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:988:32: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
986 | return .listItem(.ordered(try start.asInt(),
987 | Character(unicodeScalar(try char.asUniChar()))),
988 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
989 | try self.internMarkdown(blocks: blocks))
990 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1191:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1189 | self.bullet,
1190 | .char(ch.utf16.first!),
1191 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1192 | self.externMarkdown(blocks))
1193 | case .listItem(.ordered(let n, let ch), let tight, let blocks):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1198:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1196 | .makeNumber(n),
1197 | .char(ch.utf16.first!),
1198 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1199 | self.externMarkdown(blocks))
1200 | case .paragraph(let text):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:37: error: no exact matches in call to subscript
2943 | guard let page = self.pageRef,
2944 | let dictionary = page.dictionary,
2945 | let resources = dictionary[CGPDFDictionaryGetDictionary, "Resources"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
2946 | return []
2947 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:36: error: no exact matches in call to subscript
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3003:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3005:27: error: no exact matches in call to subscript
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
3007 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3006:28: error: no exact matches in call to subscript
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3007 | throw RawDecodingError.cannotReadSize
3008 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3009:38: error: no exact matches in call to subscript
3007 | throw RawDecodingError.cannotReadSize
3008 | }
3009 | guard let bitsPerComponent = info[CGPDFDictionaryGetInteger, "BitsPerComponent"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3010 | throw RawDecodingError.cannotReadBitsPerComponent
3011 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3013:28: error: no exact matches in call to subscript
3011 | }
3012 | let decode: [CGFloat]?
3013 | if let decodeRef = info[CGPDFDictionaryGetArray, "Decode"] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3014 | let count = CGPDFArrayGetCount(decodeRef)
3015 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3083:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3081 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3082 | var result: UnsafePointer<UInt8>!
3083 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3084 | return nil
3085 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3091:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3089 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3090 | var result: R!
3091 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3092 | return nil
3093 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3100:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3098 | _ key: K) -> R? {
3099 | var result = R()
3100 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3101 | return nil
3102 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3108:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3106 | func getNameArray(for key: String) -> [String]? {
3107 | var object: CGPDFObjectRef!
3108 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3109 | return nil
3110 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3111:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3109 | return nil
3110 | }
3111 | if let name = object.getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3112 | return [name]
3113 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3120:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3118 | var names = [String]()
3119 | for index in 0..<CGPDFArrayGetCount(array) {
3120 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3121 | continue
3122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3131:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3129 |
3130 | func getColorSpace() throws -> CGColorSpace {
3131 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3132 | switch name {
3133 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3147:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3145 | throw RawDecodingError.corruptColorSpace
3146 | }
3147 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3148 | throw RawDecodingError.corruptColorSpace
3149 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:37: error: no exact matches in call to subscript
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3157:34: error: no exact matches in call to subscript
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3157 | let hival = array[CGPDFArrayGetInteger, 2],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3158 | hival < 256 else {
3159 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3162:37: error: no exact matches in call to subscript
3160 | }
3161 | let colorSpace: CGColorSpace?
3162 | if let lookupTable = array[CGPDFArrayGetString, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3163 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3164 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3167:44: error: no exact matches in call to subscript
3165 | }
3166 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3167 | } else if let lookupTable = array[CGPDFArrayGetStream, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3168 | var format = CGPDFDataFormat.raw
3169 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3184:35: error: no exact matches in call to subscript
3182 | case "ICCBased":
3183 | var format = CGPDFDataFormat.raw
3184 | guard let stream = array[CGPDFArrayGetStream, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3185 | let info = CGPDFStreamGetDictionary(stream),
3186 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3200:33: error: no exact matches in call to subscript
3198 | return colorSpace
3199 | case "Lab":
3200 | guard let info = array[CGPDFArrayGetDictionary, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3201 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3202 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3219:12: error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
3219 | self[CGPDFArrayGetNumber, $0]!
| `- error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3220 | }
3221 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3218:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3216 |
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3219 | self[CGPDFArrayGetNumber, $0]!
3220 | }
[529/532] Compiling LispKit RecordLibrary.swift
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:780:67: error: missing argument for parameter 'parent' in call
778 | case .pair(_ , _):
779 | return .makeString(HtmlGenerator.standard.generate(blocks:
780 | try self.internMarkdown(blocks: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:49:13: note: 'generate(blocks:parent:tight:)' declared here
47 | }
48 |
49 | open func generate(blocks: Blocks, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(blocks:parent:tight:)' declared here
50 | var res = ""
51 | for block in blocks {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:783:66: error: missing argument for parameter 'parent' in call
781 | case .tagged(self.blockType, _):
782 | return .makeString(HtmlGenerator.standard.generate(block:
783 | try self.internMarkdown(block: expr), tight: tight))
| `- error: missing argument for parameter 'parent' in call
784 | default:
785 | throw RuntimeError.custom(
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-markdownkit/Sources/MarkdownKit/HTML/HtmlGenerator.swift:57:13: note: 'generate(block:parent:tight:)' declared here
55 | }
56 |
57 | open func generate(block: Block, parent: Parent, tight: Bool = false) -> String {
| `- note: 'generate(block:parent:tight:)' declared here
58 | switch block {
59 | case .document(_):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:980:34: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
978 | if case .pair(let char, .pair(let tight, .pair(let blocks, .null))) = args {
979 | return .listItem(.bullet(Character(unicodeScalar(try char.asUniChar()))),
980 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
981 | try self.internMarkdown(blocks: blocks))
982 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:988:32: error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
986 | return .listItem(.ordered(try start.asInt(),
987 | Character(unicodeScalar(try char.asUniChar()))),
988 | tight.isTrue,
| `- error: cannot convert value of type 'Bool' to expected argument type 'ListDensity'
989 | try self.internMarkdown(blocks: blocks))
990 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1191:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1189 | self.bullet,
1190 | .char(ch.utf16.first!),
1191 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1192 | self.externMarkdown(blocks))
1193 | case .listItem(.ordered(let n, let ch), let tight, let blocks):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/MarkdownLibrary.swift:1198:43: error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1196 | .makeNumber(n),
1197 | .char(ch.utf16.first!),
1198 | .makeBoolean(tight),
| `- error: cannot convert value of type 'ListDensity' to expected argument type 'Bool'
1199 | self.externMarkdown(blocks))
1200 | case .paragraph(let text):
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:37: error: no exact matches in call to subscript
2943 | guard let page = self.pageRef,
2944 | let dictionary = page.dictionary,
2945 | let resources = dictionary[CGPDFDictionaryGetDictionary, "Resources"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
2946 | return []
2947 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:36: error: no exact matches in call to subscript
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3002:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3000 |
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3003:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3001 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
3002 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3005:27: error: no exact matches in call to subscript
3003 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
3007 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3006:28: error: no exact matches in call to subscript
3004 | }
3005 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
3006 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3007 | throw RawDecodingError.cannotReadSize
3008 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3009:38: error: no exact matches in call to subscript
3007 | throw RawDecodingError.cannotReadSize
3008 | }
3009 | guard let bitsPerComponent = info[CGPDFDictionaryGetInteger, "BitsPerComponent"] else {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3010 | throw RawDecodingError.cannotReadBitsPerComponent
3011 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3013:28: error: no exact matches in call to subscript
3011 | }
3012 | let decode: [CGFloat]?
3013 | if let decodeRef = info[CGPDFDictionaryGetArray, "Decode"] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (String, Bool.Type)
| |- note: candidate has partially matching parameter list (String, Int.Type)
| |- note: candidate has partially matching parameter list (String, Double.Type)
| |- note: candidate has partially matching parameter list (String, String.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (String, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (String, CGPDFStreamRef.Type)
3014 | let count = CGPDFArrayGetCount(decodeRef)
3015 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3083:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3081 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3082 | var result: UnsafePointer<UInt8>!
3083 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3084 | return nil
3085 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3091:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3089 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3090 | var result: R!
3091 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3092 | return nil
3093 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3100:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3098 | _ key: K) -> R? {
3099 | var result = R()
3100 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3101 | return nil
3102 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3108:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3106 | func getNameArray(for key: String) -> [String]? {
3107 | var object: CGPDFObjectRef!
3108 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3109 | return nil
3110 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3111:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3109 | return nil
3110 | }
3111 | if let name = object.getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3112 | return [name]
3113 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3120:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3118 | var names = [String]()
3119 | for index in 0..<CGPDFArrayGetCount(array) {
3120 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3121 | continue
3122 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3131:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3129 |
3130 | func getColorSpace() throws -> CGColorSpace {
3131 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3132 | switch name {
3133 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3147:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3145 | throw RawDecodingError.corruptColorSpace
3146 | }
3147 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3148 | throw RawDecodingError.corruptColorSpace
3149 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:37: error: no exact matches in call to subscript
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3156:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3154 | return CGColorSpaceCreateDeviceGray()
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3157 | let hival = array[CGPDFArrayGetInteger, 2],
3158 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3157:34: error: no exact matches in call to subscript
3155 | case "Indexed":
3156 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3157 | let hival = array[CGPDFArrayGetInteger, 2],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3158 | hival < 256 else {
3159 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3162:37: error: no exact matches in call to subscript
3160 | }
3161 | let colorSpace: CGColorSpace?
3162 | if let lookupTable = array[CGPDFArrayGetString, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3163 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3164 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3167:44: error: no exact matches in call to subscript
3165 | }
3166 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3167 | } else if let lookupTable = array[CGPDFArrayGetStream, 3] {
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3168 | var format = CGPDFDataFormat.raw
3169 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3184:35: error: no exact matches in call to subscript
3182 | case "ICCBased":
3183 | var format = CGPDFDataFormat.raw
3184 | guard let stream = array[CGPDFArrayGetStream, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3185 | let info = CGPDFStreamGetDictionary(stream),
3186 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3200:33: error: no exact matches in call to subscript
3198 | return colorSpace
3199 | case "Lab":
3200 | guard let info = array[CGPDFArrayGetDictionary, 1],
| |- error: no exact matches in call to subscript
| |- note: candidate has partially matching parameter list (Int, Bool.Type)
| |- note: candidate has partially matching parameter list (Int, Int.Type)
| |- note: candidate has partially matching parameter list (Int, Double.Type)
| |- note: candidate has partially matching parameter list (Int, String.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFStringRef.Type)
| |- note: candidate has partially matching parameter list (Int, CGPDFDictionaryRef.Type)
| `- note: candidate has partially matching parameter list (Int, CGPDFStreamRef.Type)
3201 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3202 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3219:12: error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
3219 | self[CGPDFArrayGetNumber, $0]!
| `- error: cannot convert value of type '(CGPDFArrayRef, Int, UnsafeMutablePointer<CGPDFReal>?) -> Bool' (aka '(CGPDFArrayRef, Int, Optional<UnsafeMutablePointer<CGFloat>>) -> Bool') to expected argument type '(OpaquePointer, Int, UnsafeMutablePointer<CGPDFReal>) -> Bool' (aka '(OpaquePointer, Int, UnsafeMutablePointer<CGFloat>) -> Bool')
3220 | }
3221 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3218:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3216 |
3217 | func asFloatArray() -> [CGFloat] {
3218 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3219 | self[CGPDFArrayGetNumber, $0]!
3220 | }
Fetching https://github.com/objecthub/swift-dynamicjson.git
[1/921] Fetching swift-dynamicjson
Fetched https://github.com/objecthub/swift-dynamicjson.git from cache (0.83s)
Fetching https://github.com/kishikawakatsumi/KeychainAccess.git
[1/4386] Fetching keychainaccess
Fetched https://github.com/kishikawakatsumi/KeychainAccess.git from cache (1.22s)
Fetching https://github.com/objecthub/swift-clformat.git
Fetching https://github.com/weichsel/ZIPFoundation.git
Fetching https://github.com/objecthub/swift-nanohttp.git
Fetching https://github.com/p2/OAuth2.git
Fetching https://github.com/SomeRandomiOSDev/CBORCoding.git
Fetching https://github.com/tsolomko/SWCompression.git
Fetching https://github.com/apple/swift-atomics.git
[1/1808] Fetching swift-atomics
[74/3260] Fetching swift-atomics, cborcoding
[89/8859] Fetching swift-atomics, cborcoding, zipfoundation
[145/25868] Fetching swift-atomics, cborcoding, zipfoundation, swcompression
[146/26377] Fetching swift-atomics, cborcoding, zipfoundation, swcompression, swift-clformat
[187/26630] Fetching swift-atomics, cborcoding, zipfoundation, swcompression, swift-clformat, swift-nanohttp
[948/32862] Fetching swift-atomics, cborcoding, zipfoundation, swcompression, swift-clformat, swift-nanohttp, oauth2
Fetched https://github.com/objecthub/swift-clformat.git from cache (0.99s)
[7642/32353] Fetching swift-atomics, cborcoding, zipfoundation, swcompression, swift-nanohttp, oauth2
Fetching https://github.com/objecthub/swift-sqliteexpress.git
Fetched https://github.com/SomeRandomiOSDev/CBORCoding.git from cache (1.27s)
Fetched https://github.com/objecthub/swift-nanohttp.git from cache (1.27s)
Fetched https://github.com/weichsel/ZIPFoundation.git from cache (1.27s)
[17395/25049] Fetching swift-atomics, swcompression, oauth2
Fetching https://github.com/objecthub/swift-markdownkit.git
Fetching https://github.com/objecthub/swift-commandlinekit.git
Fetching https://github.com/objecthub/swift-numberkit.git
[25050/25148] Fetching swift-atomics, swcompression, oauth2, swift-sqliteexpress
Fetched https://github.com/objecthub/swift-sqliteexpress.git from cache (0.60s)
Fetched https://github.com/p2/OAuth2.git from cache (1.72s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.72s)
Fetched https://github.com/tsolomko/SWCompression.git from cache (1.72s)
[1/362] Fetching swift-commandlinekit
[67/1387] Fetching swift-commandlinekit, swift-numberkit
[180/2042] Fetching swift-commandlinekit, swift-numberkit, swift-markdownkit
Fetched https://github.com/objecthub/swift-markdownkit.git from cache (0.84s)
[1121/1387] Fetching swift-commandlinekit, swift-numberkit
Fetched https://github.com/objecthub/swift-numberkit.git from cache (0.93s)
Fetched https://github.com/objecthub/swift-commandlinekit.git from cache (0.93s)
Computing version for https://github.com/SomeRandomiOSDev/CBORCoding.git
Computed https://github.com/SomeRandomiOSDev/CBORCoding.git at 1.4.0 (2.79s)
Fetching https://github.com/SomeRandomiOSDev/Half
[1/630] Fetching half
Fetched https://github.com/SomeRandomiOSDev/Half from cache (0.81s)
Computing version for https://github.com/p2/OAuth2.git
Computed https://github.com/p2/OAuth2.git at 5.3.5 (1.34s)
Computing version for https://github.com/tsolomko/SWCompression.git
Computed https://github.com/tsolomko/SWCompression.git at 4.8.6 (0.52s)
Fetching https://github.com/tsolomko/BitByteData
[1/3067] Fetching bitbytedata
Fetched https://github.com/tsolomko/BitByteData from cache (1.01s)
Computing version for https://github.com/weichsel/ZIPFoundation.git
Computed https://github.com/weichsel/ZIPFoundation.git at 0.9.19 (1.47s)
Computing version for https://github.com/objecthub/swift-nanohttp.git
Computed https://github.com/objecthub/swift-nanohttp.git at 1.0.1 (0.53s)
Computing version for https://github.com/objecthub/swift-sqliteexpress.git
Computed https://github.com/objecthub/swift-sqliteexpress.git at 1.0.3 (0.51s)
Computing version for https://github.com/objecthub/swift-commandlinekit.git
Computed https://github.com/objecthub/swift-commandlinekit.git at 0.3.5 (0.50s)
Computing version for https://github.com/objecthub/swift-numberkit.git
Computed https://github.com/objecthub/swift-numberkit.git at 2.6.0 (0.50s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.43s)
Computing version for https://github.com/objecthub/swift-clformat.git
Computed https://github.com/objecthub/swift-clformat.git at 1.1.1 (0.50s)
Computing version for https://github.com/objecthub/swift-markdownkit.git
Computed https://github.com/objecthub/swift-markdownkit.git at 1.3.0 (0.51s)
Computing version for https://github.com/SomeRandomiOSDev/Half
Computed https://github.com/SomeRandomiOSDev/Half at 1.4.2 (0.41s)
Computing version for https://github.com/tsolomko/BitByteData
Computed https://github.com/tsolomko/BitByteData at 2.0.4 (0.52s)
Creating working copy for https://github.com/objecthub/swift-clformat.git
Working copy of https://github.com/objecthub/swift-clformat.git resolved at 1.1.1
Creating working copy for https://github.com/weichsel/ZIPFoundation.git
Working copy of https://github.com/weichsel/ZIPFoundation.git resolved at 0.9.19
Creating working copy for https://github.com/objecthub/swift-markdownkit.git
Working copy of https://github.com/objecthub/swift-markdownkit.git resolved at 1.3.0
Creating working copy for https://github.com/objecthub/swift-commandlinekit.git
Working copy of https://github.com/objecthub/swift-commandlinekit.git resolved at 0.3.5
Creating working copy for https://github.com/tsolomko/SWCompression.git
Working copy of https://github.com/tsolomko/SWCompression.git resolved at 4.8.6
Creating working copy for https://github.com/SomeRandomiOSDev/Half
Working copy of https://github.com/SomeRandomiOSDev/Half resolved at 1.4.2
Creating working copy for https://github.com/objecthub/swift-numberkit.git
Working copy of https://github.com/objecthub/swift-numberkit.git resolved at 2.6.0
Creating working copy for https://github.com/objecthub/swift-nanohttp.git
Working copy of https://github.com/objecthub/swift-nanohttp.git resolved at 1.0.1
Creating working copy for https://github.com/p2/OAuth2.git
Working copy of https://github.com/p2/OAuth2.git resolved at 5.3.5
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.0
Creating working copy for https://github.com/SomeRandomiOSDev/CBORCoding.git
Working copy of https://github.com/SomeRandomiOSDev/CBORCoding.git resolved at 1.4.0
Creating working copy for https://github.com/tsolomko/BitByteData
Working copy of https://github.com/tsolomko/BitByteData resolved at 2.0.4
Creating working copy for https://github.com/objecthub/swift-dynamicjson.git
Working copy of https://github.com/objecthub/swift-dynamicjson.git resolved at main (9648f32)
Creating working copy for https://github.com/kishikawakatsumi/KeychainAccess.git
Working copy of https://github.com/kishikawakatsumi/KeychainAccess.git resolved at master (e0c7eeb)
Creating working copy for https://github.com/objecthub/swift-sqliteexpress.git
Working copy of https://github.com/objecthub/swift-sqliteexpress.git resolved at 1.0.3
BUILD FAILURE 6.2 macosSpm