DoccZz/docc2html

Cannot initialize RoleHeading

Closed this issue · 1 comments

Hi all,

Getting the following error when running

swift run docc2html --force ~/Documents/NaurtSDK.doccarchive/ ~/Documents/

I'm using 7a64add (current latest on develop).

I exported the doccarchive from the latest version of XCode, 15.0

ERROR: dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "metadata", intValue: nil), MetaDataCodingKeys(stringValue: "roleHeading", intValue: nil)], debugDescription: "Cannot initialize RoleHeading from invalid String value Function", underlyingError: nil))
2023-10-13T11:31:06+0100 error docc2html : [DocCStaticExporter] Could not process document at: /Users/nathanielcurnick/Documents/NaurtSDK.doccarchive/data/documentation/naurtsdk/distancebetween(_:_:).json dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "metadata", intValue: nil), MetaDataCodingKeys(stringValue: "roleHeading", intValue: nil)], debugDescription: "Cannot initialize RoleHeading from invalid String value Function", underlyingError: nil))

It's having trouble with this distanceBetween function. Here's the signature

public func distanceBetween(_ a: Location2D, _ b: Location2D) -> Double

And the definition for Location2D (not sure if this is relevant)

@objc public class Location2D: NSObject

Looks like it might be related to #7 and #20