Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot initialize RoleHeading #21

Closed
IndigoCurnick opened this issue Oct 13, 2023 · 1 comment
Closed

Cannot initialize RoleHeading #21

IndigoCurnick opened this issue Oct 13, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@IndigoCurnick
Copy link

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

@helje5 helje5 added the bug Something isn't working label Oct 13, 2023
@helje5
Copy link
Contributor

helje5 commented Oct 14, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

2 participants