Build Information
Failed to build LispKit, reference master (33f1ce
), with Swift 6.2 (beta) for macOS (SPM) on 22 Jun 2025 13:07:34 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Build Log
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2947:27: error: no exact matches in call to subscript
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
2947 | 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)
2948 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
2949 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2948:28: error: no exact matches in call to subscript
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
2948 | 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)
2949 | throw RawDecodingError.cannotReadSize
2950 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2951:38: error: no exact matches in call to subscript
2949 | throw RawDecodingError.cannotReadSize
2950 | }
2951 | 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)
2952 | throw RawDecodingError.cannotReadBitsPerComponent
2953 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2955:28: error: no exact matches in call to subscript
2953 | }
2954 | let decode: [CGFloat]?
2955 | 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)
2956 | let count = CGPDFArrayGetCount(decodeRef)
2957 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3025:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3023 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3024 | var result: UnsafePointer<UInt8>!
3025 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3026 | return nil
3027 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3033:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3031 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3032 | var result: R!
3033 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3034 | return nil
3035 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3042:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3040 | _ key: K) -> R? {
3041 | var result = R()
3042 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3043 | return nil
3044 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3050:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3048 | func getNameArray(for key: String) -> [String]? {
3049 | var object: CGPDFObjectRef!
3050 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3051 | return nil
3052 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3053:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3051 | return nil
3052 | }
3053 | 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'
3054 | return [name]
3055 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3062:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3060 | var names = [String]()
3061 | for index in 0..<CGPDFArrayGetCount(array) {
3062 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3063 | continue
3064 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3073:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3071 |
3072 | func getColorSpace() throws -> CGColorSpace {
3073 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3074 | switch name {
3075 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3089:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3087 | throw RawDecodingError.corruptColorSpace
3088 | }
3089 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3090 | throw RawDecodingError.corruptColorSpace
3091 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:37: error: no exact matches in call to subscript
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | 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)
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3099:34: error: no exact matches in call to subscript
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3099 | 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)
3100 | hival < 256 else {
3101 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3104:37: error: no exact matches in call to subscript
3102 | }
3103 | let colorSpace: CGColorSpace?
3104 | 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)
3105 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3106 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3109:44: error: no exact matches in call to subscript
3107 | }
3108 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3109 | } 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)
3110 | var format = CGPDFDataFormat.raw
3111 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3126:35: error: no exact matches in call to subscript
3124 | case "ICCBased":
3125 | var format = CGPDFDataFormat.raw
3126 | 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)
3127 | let info = CGPDFStreamGetDictionary(stream),
3128 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3142:33: error: no exact matches in call to subscript
3140 | return colorSpace
3141 | case "Lab":
3142 | 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)
3143 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3144 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3161: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')
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
3161 | 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')
3162 | }
3163 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3160:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3158 |
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3161 | self[CGPDFArrayGetNumber, $0]!
3162 | }
[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:2887:37: error: no exact matches in call to subscript
2885 | guard let page = self.pageRef,
2886 | let dictionary = page.dictionary,
2887 | 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)
2888 | return []
2889 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:36: error: no exact matches in call to subscript
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | 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)
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2947:27: error: no exact matches in call to subscript
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
2947 | 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)
2948 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
2949 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2948:28: error: no exact matches in call to subscript
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
2948 | 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)
2949 | throw RawDecodingError.cannotReadSize
2950 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2951:38: error: no exact matches in call to subscript
2949 | throw RawDecodingError.cannotReadSize
2950 | }
2951 | 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)
2952 | throw RawDecodingError.cannotReadBitsPerComponent
2953 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2955:28: error: no exact matches in call to subscript
2953 | }
2954 | let decode: [CGFloat]?
2955 | 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)
2956 | let count = CGPDFArrayGetCount(decodeRef)
2957 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3025:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3023 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3024 | var result: UnsafePointer<UInt8>!
3025 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3026 | return nil
3027 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3033:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3031 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3032 | var result: R!
3033 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3034 | return nil
3035 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3042:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3040 | _ key: K) -> R? {
3041 | var result = R()
3042 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3043 | return nil
3044 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3050:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3048 | func getNameArray(for key: String) -> [String]? {
3049 | var object: CGPDFObjectRef!
3050 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3051 | return nil
3052 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3053:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3051 | return nil
3052 | }
3053 | 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'
3054 | return [name]
3055 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3062:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3060 | var names = [String]()
3061 | for index in 0..<CGPDFArrayGetCount(array) {
3062 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3063 | continue
3064 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3073:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3071 |
3072 | func getColorSpace() throws -> CGColorSpace {
3073 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3074 | switch name {
3075 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3089:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3087 | throw RawDecodingError.corruptColorSpace
3088 | }
3089 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3090 | throw RawDecodingError.corruptColorSpace
3091 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:37: error: no exact matches in call to subscript
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | 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)
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3099:34: error: no exact matches in call to subscript
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3099 | 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)
3100 | hival < 256 else {
3101 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3104:37: error: no exact matches in call to subscript
3102 | }
3103 | let colorSpace: CGColorSpace?
3104 | 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)
3105 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3106 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3109:44: error: no exact matches in call to subscript
3107 | }
3108 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3109 | } 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)
3110 | var format = CGPDFDataFormat.raw
3111 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3126:35: error: no exact matches in call to subscript
3124 | case "ICCBased":
3125 | var format = CGPDFDataFormat.raw
3126 | 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)
3127 | let info = CGPDFStreamGetDictionary(stream),
3128 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3142:33: error: no exact matches in call to subscript
3140 | return colorSpace
3141 | case "Lab":
3142 | 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)
3143 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3144 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3161: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')
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
3161 | 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')
3162 | }
3163 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3160:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3158 |
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3161 | self[CGPDFArrayGetNumber, $0]!
3162 | }
[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:2887:37: error: no exact matches in call to subscript
2885 | guard let page = self.pageRef,
2886 | let dictionary = page.dictionary,
2887 | 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)
2888 | return []
2889 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:36: error: no exact matches in call to subscript
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | 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)
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2947:27: error: no exact matches in call to subscript
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
2947 | 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)
2948 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
2949 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2948:28: error: no exact matches in call to subscript
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
2948 | 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)
2949 | throw RawDecodingError.cannotReadSize
2950 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2951:38: error: no exact matches in call to subscript
2949 | throw RawDecodingError.cannotReadSize
2950 | }
2951 | 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)
2952 | throw RawDecodingError.cannotReadBitsPerComponent
2953 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2955:28: error: no exact matches in call to subscript
2953 | }
2954 | let decode: [CGFloat]?
2955 | 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)
2956 | let count = CGPDFArrayGetCount(decodeRef)
2957 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3025:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3023 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3024 | var result: UnsafePointer<UInt8>!
3025 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3026 | return nil
3027 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3033:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3031 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3032 | var result: R!
3033 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3034 | return nil
3035 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3042:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3040 | _ key: K) -> R? {
3041 | var result = R()
3042 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3043 | return nil
3044 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3050:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3048 | func getNameArray(for key: String) -> [String]? {
3049 | var object: CGPDFObjectRef!
3050 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3051 | return nil
3052 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3053:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3051 | return nil
3052 | }
3053 | 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'
3054 | return [name]
3055 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3062:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3060 | var names = [String]()
3061 | for index in 0..<CGPDFArrayGetCount(array) {
3062 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3063 | continue
3064 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3073:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3071 |
3072 | func getColorSpace() throws -> CGColorSpace {
3073 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3074 | switch name {
3075 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3089:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3087 | throw RawDecodingError.corruptColorSpace
3088 | }
3089 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3090 | throw RawDecodingError.corruptColorSpace
3091 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:37: error: no exact matches in call to subscript
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | 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)
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3099:34: error: no exact matches in call to subscript
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3099 | 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)
3100 | hival < 256 else {
3101 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3104:37: error: no exact matches in call to subscript
3102 | }
3103 | let colorSpace: CGColorSpace?
3104 | 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)
3105 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3106 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3109:44: error: no exact matches in call to subscript
3107 | }
3108 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3109 | } 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)
3110 | var format = CGPDFDataFormat.raw
3111 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3126:35: error: no exact matches in call to subscript
3124 | case "ICCBased":
3125 | var format = CGPDFDataFormat.raw
3126 | 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)
3127 | let info = CGPDFStreamGetDictionary(stream),
3128 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3142:33: error: no exact matches in call to subscript
3140 | return colorSpace
3141 | case "Lab":
3142 | 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)
3143 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3144 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3161: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')
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
3161 | 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')
3162 | }
3163 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3160:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3158 |
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3161 | self[CGPDFArrayGetNumber, $0]!
3162 | }
[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:2887:37: error: no exact matches in call to subscript
2885 | guard let page = self.pageRef,
2886 | let dictionary = page.dictionary,
2887 | 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)
2888 | return []
2889 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:36: error: no exact matches in call to subscript
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | 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)
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2947:27: error: no exact matches in call to subscript
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
2947 | 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)
2948 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
2949 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2948:28: error: no exact matches in call to subscript
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
2948 | 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)
2949 | throw RawDecodingError.cannotReadSize
2950 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2951:38: error: no exact matches in call to subscript
2949 | throw RawDecodingError.cannotReadSize
2950 | }
2951 | 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)
2952 | throw RawDecodingError.cannotReadBitsPerComponent
2953 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2955:28: error: no exact matches in call to subscript
2953 | }
2954 | let decode: [CGFloat]?
2955 | 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)
2956 | let count = CGPDFArrayGetCount(decodeRef)
2957 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3025:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3023 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3024 | var result: UnsafePointer<UInt8>!
3025 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3026 | return nil
3027 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3033:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3031 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3032 | var result: R!
3033 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3034 | return nil
3035 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3042:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3040 | _ key: K) -> R? {
3041 | var result = R()
3042 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3043 | return nil
3044 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3050:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3048 | func getNameArray(for key: String) -> [String]? {
3049 | var object: CGPDFObjectRef!
3050 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3051 | return nil
3052 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3053:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3051 | return nil
3052 | }
3053 | 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'
3054 | return [name]
3055 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3062:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3060 | var names = [String]()
3061 | for index in 0..<CGPDFArrayGetCount(array) {
3062 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3063 | continue
3064 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3073:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3071 |
3072 | func getColorSpace() throws -> CGColorSpace {
3073 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3074 | switch name {
3075 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3089:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3087 | throw RawDecodingError.corruptColorSpace
3088 | }
3089 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3090 | throw RawDecodingError.corruptColorSpace
3091 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:37: error: no exact matches in call to subscript
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | 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)
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3099:34: error: no exact matches in call to subscript
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3099 | 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)
3100 | hival < 256 else {
3101 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3104:37: error: no exact matches in call to subscript
3102 | }
3103 | let colorSpace: CGColorSpace?
3104 | 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)
3105 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3106 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3109:44: error: no exact matches in call to subscript
3107 | }
3108 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3109 | } 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)
3110 | var format = CGPDFDataFormat.raw
3111 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3126:35: error: no exact matches in call to subscript
3124 | case "ICCBased":
3125 | var format = CGPDFDataFormat.raw
3126 | 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)
3127 | let info = CGPDFStreamGetDictionary(stream),
3128 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3142:33: error: no exact matches in call to subscript
3140 | return colorSpace
3141 | case "Lab":
3142 | 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)
3143 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3144 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3161: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')
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
3161 | 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')
3162 | }
3163 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3160:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3158 |
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3161 | self[CGPDFArrayGetNumber, $0]!
3162 | }
[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:2887:37: error: no exact matches in call to subscript
2885 | guard let page = self.pageRef,
2886 | let dictionary = page.dictionary,
2887 | 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)
2888 | return []
2889 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:36: error: no exact matches in call to subscript
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | 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)
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2947:27: error: no exact matches in call to subscript
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
2947 | 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)
2948 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
2949 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2948:28: error: no exact matches in call to subscript
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
2948 | 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)
2949 | throw RawDecodingError.cannotReadSize
2950 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2951:38: error: no exact matches in call to subscript
2949 | throw RawDecodingError.cannotReadSize
2950 | }
2951 | 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)
2952 | throw RawDecodingError.cannotReadBitsPerComponent
2953 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2955:28: error: no exact matches in call to subscript
2953 | }
2954 | let decode: [CGFloat]?
2955 | 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)
2956 | let count = CGPDFArrayGetCount(decodeRef)
2957 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3025:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3023 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3024 | var result: UnsafePointer<UInt8>!
3025 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3026 | return nil
3027 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3033:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3031 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3032 | var result: R!
3033 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3034 | return nil
3035 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3042:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3040 | _ key: K) -> R? {
3041 | var result = R()
3042 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3043 | return nil
3044 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3050:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3048 | func getNameArray(for key: String) -> [String]? {
3049 | var object: CGPDFObjectRef!
3050 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3051 | return nil
3052 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3053:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3051 | return nil
3052 | }
3053 | 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'
3054 | return [name]
3055 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3062:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3060 | var names = [String]()
3061 | for index in 0..<CGPDFArrayGetCount(array) {
3062 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3063 | continue
3064 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3073:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3071 |
3072 | func getColorSpace() throws -> CGColorSpace {
3073 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3074 | switch name {
3075 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3089:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3087 | throw RawDecodingError.corruptColorSpace
3088 | }
3089 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3090 | throw RawDecodingError.corruptColorSpace
3091 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:37: error: no exact matches in call to subscript
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | 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)
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3099:34: error: no exact matches in call to subscript
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3099 | 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)
3100 | hival < 256 else {
3101 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3104:37: error: no exact matches in call to subscript
3102 | }
3103 | let colorSpace: CGColorSpace?
3104 | 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)
3105 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3106 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3109:44: error: no exact matches in call to subscript
3107 | }
3108 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3109 | } 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)
3110 | var format = CGPDFDataFormat.raw
3111 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3126:35: error: no exact matches in call to subscript
3124 | case "ICCBased":
3125 | var format = CGPDFDataFormat.raw
3126 | 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)
3127 | let info = CGPDFStreamGetDictionary(stream),
3128 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3142:33: error: no exact matches in call to subscript
3140 | return colorSpace
3141 | case "Lab":
3142 | 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)
3143 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3144 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3161: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')
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
3161 | 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')
3162 | }
3163 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3160:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3158 |
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3161 | self[CGPDFArrayGetNumber, $0]!
3162 | }
[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:2887:37: error: no exact matches in call to subscript
2885 | guard let page = self.pageRef,
2886 | let dictionary = page.dictionary,
2887 | 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)
2888 | return []
2889 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:36: error: no exact matches in call to subscript
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | 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)
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2947:27: error: no exact matches in call to subscript
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
2947 | 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)
2948 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
2949 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2948:28: error: no exact matches in call to subscript
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
2948 | 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)
2949 | throw RawDecodingError.cannotReadSize
2950 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2951:38: error: no exact matches in call to subscript
2949 | throw RawDecodingError.cannotReadSize
2950 | }
2951 | 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)
2952 | throw RawDecodingError.cannotReadBitsPerComponent
2953 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2955:28: error: no exact matches in call to subscript
2953 | }
2954 | let decode: [CGFloat]?
2955 | 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)
2956 | let count = CGPDFArrayGetCount(decodeRef)
2957 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3025:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3023 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3024 | var result: UnsafePointer<UInt8>!
3025 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3026 | return nil
3027 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3033:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3031 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3032 | var result: R!
3033 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3034 | return nil
3035 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3042:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3040 | _ key: K) -> R? {
3041 | var result = R()
3042 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3043 | return nil
3044 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3050:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3048 | func getNameArray(for key: String) -> [String]? {
3049 | var object: CGPDFObjectRef!
3050 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3051 | return nil
3052 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3053:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3051 | return nil
3052 | }
3053 | 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'
3054 | return [name]
3055 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3062:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3060 | var names = [String]()
3061 | for index in 0..<CGPDFArrayGetCount(array) {
3062 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3063 | continue
3064 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3073:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3071 |
3072 | func getColorSpace() throws -> CGColorSpace {
3073 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3074 | switch name {
3075 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3089:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3087 | throw RawDecodingError.corruptColorSpace
3088 | }
3089 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3090 | throw RawDecodingError.corruptColorSpace
3091 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:37: error: no exact matches in call to subscript
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | 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)
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3099:34: error: no exact matches in call to subscript
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3099 | 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)
3100 | hival < 256 else {
3101 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3104:37: error: no exact matches in call to subscript
3102 | }
3103 | let colorSpace: CGColorSpace?
3104 | 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)
3105 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3106 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3109:44: error: no exact matches in call to subscript
3107 | }
3108 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3109 | } 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)
3110 | var format = CGPDFDataFormat.raw
3111 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3126:35: error: no exact matches in call to subscript
3124 | case "ICCBased":
3125 | var format = CGPDFDataFormat.raw
3126 | 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)
3127 | let info = CGPDFStreamGetDictionary(stream),
3128 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3142:33: error: no exact matches in call to subscript
3140 | return colorSpace
3141 | case "Lab":
3142 | 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)
3143 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3144 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3161: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')
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
3161 | 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')
3162 | }
3163 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3160:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3158 |
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3161 | self[CGPDFArrayGetNumber, $0]!
3162 | }
[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:2887:37: error: no exact matches in call to subscript
2885 | guard let page = self.pageRef,
2886 | let dictionary = page.dictionary,
2887 | 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)
2888 | return []
2889 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:36: error: no exact matches in call to subscript
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | 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)
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2944:78: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2942 |
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2945:48: error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2943 | private func getNSImage(data: CFData, info: CGPDFDictionaryRef) throws -> NSImage {
2944 | guard let colorSpace = try info[CGPDFDictionaryGetObject, "ColorSpace"]?.getColorSpace() else {
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
| `- error: value of type 'CGPDFDictionaryRef' has no member 'getNameArray'
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2947:27: error: no exact matches in call to subscript
2945 | throw RawDecodingError.noColorSpace(info.getNameArray(for: "Filter"))
2946 | }
2947 | 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)
2948 | let height = info[CGPDFDictionaryGetInteger, "Height"] else {
2949 | throw RawDecodingError.cannotReadSize
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2948:28: error: no exact matches in call to subscript
2946 | }
2947 | guard let width = info[CGPDFDictionaryGetInteger, "Width"],
2948 | 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)
2949 | throw RawDecodingError.cannotReadSize
2950 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2951:38: error: no exact matches in call to subscript
2949 | throw RawDecodingError.cannotReadSize
2950 | }
2951 | 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)
2952 | throw RawDecodingError.cannotReadBitsPerComponent
2953 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:2955:28: error: no exact matches in call to subscript
2953 | }
2954 | let decode: [CGFloat]?
2955 | 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)
2956 | let count = CGPDFArrayGetCount(decodeRef)
2957 | decode = (0..<count).map {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3025:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3023 | _ getter: (OpaquePointer, K, UnsafeMutableRawPointer?)->Bool) -> String? {
3024 | var result: UnsafePointer<UInt8>!
3025 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3026 | return nil
3027 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3033:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3031 | subscript<R, K>(_ getter: (OpaquePointer, K, UnsafeMutablePointer<R?>)->Bool, _ key: K) -> R? {
3032 | var result: R!
3033 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3034 | return nil
3035 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3042:18: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3040 | _ key: K) -> R? {
3041 | var result = R()
3042 | guard getter(self, key, &result) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'OpaquePointer'
3043 | return nil
3044 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3050:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3048 | func getNameArray(for key: String) -> [String]? {
3049 | var object: CGPDFObjectRef!
3050 | guard CGPDFDictionaryGetObject(self, key, &object) else {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFDictionaryRef'
3051 | return nil
3052 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3053:41: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3051 | return nil
3052 | }
3053 | 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'
3054 | return [name]
3055 | } else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3062:32: error: value of type 'CGPDFArrayRef' has no member 'getName'
3060 | var names = [String]()
3061 | for index in 0..<CGPDFArrayGetCount(array) {
3062 | guard let name = array.getName(index, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3063 | continue
3064 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3073:34: error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3071 |
3072 | func getColorSpace() throws -> CGColorSpace {
3073 | if let name = getName(.name, CGPDFObjectGetValue) {
| `- error: cannot convert value of type '(CGPDFObjectRef, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool' to expected argument type '(OpaquePointer, CGPDFObjectType, UnsafeMutableRawPointer?) -> Bool'
3074 | switch name {
3075 | case "DeviceGray":
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3089:30: error: value of type 'CGPDFArrayRef' has no member 'getName'
3087 | throw RawDecodingError.corruptColorSpace
3088 | }
3089 | guard let name = array.getName(0, CGPDFArrayGetName) else {
| `- error: value of type 'CGPDFArrayRef' has no member 'getName'
3090 | throw RawDecodingError.corruptColorSpace
3091 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:37: error: no exact matches in call to subscript
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | 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)
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3098:63: error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3096 | return CGColorSpaceCreateDeviceGray()
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
| `- error: reference to member 'getColorSpace' cannot be resolved without a contextual type
3099 | let hival = array[CGPDFArrayGetInteger, 2],
3100 | hival < 256 else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3099:34: error: no exact matches in call to subscript
3097 | case "Indexed":
3098 | guard let base = try array[CGPDFArrayGetObject, 1]?.getColorSpace(),
3099 | 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)
3100 | hival < 256 else {
3101 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3104:37: error: no exact matches in call to subscript
3102 | }
3103 | let colorSpace: CGColorSpace?
3104 | 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)
3105 | guard let pointer = CGPDFStringGetBytePtr(lookupTable) else {
3106 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3109:44: error: no exact matches in call to subscript
3107 | }
3108 | colorSpace = CGColorSpace(indexedBaseSpace: base, last: hival, colorTable: pointer)
3109 | } 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)
3110 | var format = CGPDFDataFormat.raw
3111 | guard let data = CGPDFStreamCopyData(lookupTable, &format) else {
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3126:35: error: no exact matches in call to subscript
3124 | case "ICCBased":
3125 | var format = CGPDFDataFormat.raw
3126 | 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)
3127 | let info = CGPDFStreamGetDictionary(stream),
3128 | let componentCount = info[CGPDFDictionaryGetInteger, "N"],
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3142:33: error: no exact matches in call to subscript
3140 | return colorSpace
3141 | case "Lab":
3142 | 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)
3143 | let whitePointRef = info[CGPDFDictionaryGetArray, "WhitePoint"]?.asFloatArray() else {
3144 | throw RawDecodingError.corruptColorSpace
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3161: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')
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
3161 | 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')
3162 | }
3163 | }
/Users/admin/builder/spi-builder-workspace/Sources/LispKit/Primitives/PDFLibrary.swift:3160:36: error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3158 |
3159 | func asFloatArray() -> [CGFloat] {
3160 | return (0..<CGPDFArrayGetCount(self)).map {
| `- error: cannot convert value of type 'CGPDFObjectRef' to expected argument type 'CGPDFArrayRef'
3161 | self[CGPDFArrayGetNumber, $0]!
3162 | }
Fetching https://github.com/objecthub/swift-dynamicjson.git
[1/921] Fetching swift-dynamicjson
Fetched https://github.com/objecthub/swift-dynamicjson.git from cache (0.88s)
Fetching https://github.com/kishikawakatsumi/KeychainAccess.git
[1/4386] Fetching keychainaccess
Fetched https://github.com/kishikawakatsumi/KeychainAccess.git from cache (1.28s)
Fetching https://github.com/objecthub/swift-clformat.git
Fetching https://github.com/p2/OAuth2.git
Fetching https://github.com/SomeRandomiOSDev/CBORCoding.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/weichsel/ZIPFoundation.git
Fetching https://github.com/tsolomko/SWCompression.git
Fetching https://github.com/objecthub/swift-nanohttp.git
[1/509] Fetching swift-clformat
[42/2306] Fetching swift-clformat, swift-atomics
[78/8538] Fetching swift-clformat, swift-atomics, oauth2
[426/25547] Fetching swift-clformat, swift-atomics, oauth2, swcompression
[427/25800] Fetching swift-clformat, swift-atomics, oauth2, swcompression, swift-nanohttp
[577/27252] Fetching swift-clformat, swift-atomics, oauth2, swcompression, swift-nanohttp, cborcoding
[654/32828] Fetching swift-clformat, swift-atomics, oauth2, swcompression, swift-nanohttp, cborcoding, zipfoundation
Fetched https://github.com/apple/swift-atomics.git from cache (1.32s)
Fetched https://github.com/objecthub/swift-nanohttp.git from cache (1.32s)
Fetched https://github.com/weichsel/ZIPFoundation.git from cache (1.32s)
Fetched https://github.com/SomeRandomiOSDev/CBORCoding.git from cache (1.32s)
[17622/23750] Fetching swift-clformat, oauth2, swcompression
Fetching https://github.com/objecthub/swift-sqliteexpress.git
Fetching https://github.com/objecthub/swift-markdownkit.git
Fetching https://github.com/objecthub/swift-numberkit.git
Fetching https://github.com/objecthub/swift-commandlinekit.git
Fetched https://github.com/objecthub/swift-clformat.git from cache (1.73s)
Fetched https://github.com/tsolomko/SWCompression.git from cache (1.73s)
Fetched https://github.com/p2/OAuth2.git from cache (1.73s)
[1/655] Fetching swift-markdownkit
[28/1017] Fetching swift-markdownkit, swift-commandlinekit
[125/1116] Fetching swift-markdownkit, swift-commandlinekit, swift-sqliteexpress
[250/2141] Fetching swift-markdownkit, swift-commandlinekit, swift-sqliteexpress, swift-numberkit
Fetched https://github.com/objecthub/swift-sqliteexpress.git from cache (0.82s)
Fetched https://github.com/objecthub/swift-markdownkit.git from cache (0.82s)
[793/1387] Fetching swift-commandlinekit, swift-numberkit
Fetched https://github.com/objecthub/swift-commandlinekit.git from cache (1.06s)
Fetched https://github.com/objecthub/swift-numberkit.git from cache (1.06s)
Computing version for https://github.com/SomeRandomiOSDev/CBORCoding.git
Computed https://github.com/SomeRandomiOSDev/CBORCoding.git at 1.4.0 (2.95s)
Fetching https://github.com/SomeRandomiOSDev/Half
[1/630] Fetching half
Fetched https://github.com/SomeRandomiOSDev/Half from cache (0.91s)
Computing version for https://github.com/p2/OAuth2.git
Computed https://github.com/p2/OAuth2.git at 5.3.5 (1.46s)
Computing version for https://github.com/tsolomko/SWCompression.git
Computed https://github.com/tsolomko/SWCompression.git at 4.8.6 (0.50s)
Fetching https://github.com/tsolomko/BitByteData
[1/3067] Fetching bitbytedata
Fetched https://github.com/tsolomko/BitByteData from cache (1.00s)
Computing version for https://github.com/weichsel/ZIPFoundation.git
Computed https://github.com/weichsel/ZIPFoundation.git at 0.9.19 (1.44s)
Computing version for https://github.com/objecthub/swift-nanohttp.git
Computed https://github.com/objecthub/swift-nanohttp.git at 1.0.1 (0.49s)
Computing version for https://github.com/objecthub/swift-sqliteexpress.git
Computed https://github.com/objecthub/swift-sqliteexpress.git at 1.0.3 (0.50s)
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.48s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (0.42s)
Computing version for https://github.com/objecthub/swift-clformat.git
Computed https://github.com/objecthub/swift-clformat.git at 1.1.1 (0.52s)
Computing version for https://github.com/objecthub/swift-markdownkit.git
Computed https://github.com/objecthub/swift-markdownkit.git at 1.3.0 (0.50s)
Computing version for https://github.com/SomeRandomiOSDev/Half
Computed https://github.com/SomeRandomiOSDev/Half at 1.4.2 (0.42s)
Computing version for https://github.com/tsolomko/BitByteData
Computed https://github.com/tsolomko/BitByteData at 2.0.4 (0.51s)
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/objecthub/swift-sqliteexpress.git
Working copy of https://github.com/objecthub/swift-sqliteexpress.git resolved at 1.0.3
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/kishikawakatsumi/KeychainAccess.git
Working copy of https://github.com/kishikawakatsumi/KeychainAccess.git resolved at master (e0c7eeb)
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/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/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/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/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-clformat.git
Working copy of https://github.com/objecthub/swift-clformat.git resolved at 1.1.1
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/tsolomko/SWCompression.git
Working copy of https://github.com/tsolomko/SWCompression.git resolved at 4.8.6
Creating working copy for https://github.com/tsolomko/BitByteData
Working copy of https://github.com/tsolomko/BitByteData resolved at 2.0.4
BUILD FAILURE 6.2 macosSpm