Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

"File name too long" errors when saving Alamofire docs as HTML #35

@jshier

Description

@jshier

Just tried running this on Alamofire.

swift doc generate Source --output swiftdoc --format html --module-name Alamofire

(The --module-name requirement isn't documented, so perhaps the docs need to be updated?)

The command generates some HTML but also prints many lines of "Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied" and then prints a final error:

Error: Error Domain=NSCocoaErrorDomain Code=514 "The item couldn’t be saved because the file name “DataResponseSerializerProtocol_DownloadResponseSerializerProtocol_ResponseSerializer_DataPreprocessor_PassthroughPreprocessor_GoogleXSSIPreprocessor_ResponseSerializer_DownloadResponseSerializerProtocol_DataRequest_DownloadRequest_DataRequest_DataResponseSerializer_DownloadRequest_StringResponseSerializer” is invalid." UserInfo={NSFilePath=/Users/user/Desktop/Code/Alamofire/swiftdoc/DataResponseSerializerProtocol_DownloadResponseSerializerProtocol_ResponseSerializer_DataPreprocessor_PassthroughPreprocessor_GoogleXSSIPreprocessor_ResponseSerializer_DownloadResponseSerializerProtocol_DataRequest_DownloadRequest_DataRequest_DataResponseSerializer_DownloadRequest_StringResponseSerializer, NSUnderlyingError=0x7ff552cf9f70 {Error Domain=NSPOSIXErrorDomain Code=63 "File name too long"}}

I know there are a lot of types in the file, but that's a heck of a file name. 😆

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocumentationImprovements or additions to documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions