[swift-build-dev] [SwiftPM] [swift-build] Question about invalid module name error

Daniel Dunbar daniel_dunbar at apple.com
Thu Apr 14 10:54:22 CDT 2016


Hi JPMartha,

I am not 100% sure what your question is. Is it whether this name should be valid, or just whether we should diagnose it earlier?

It is an invalid "C99 Extended Identifier", which is the technical specification these names need to follow (a digit is not a valid initial character).

 - Daniel

> On Apr 13, 2016, at 10:56 PM, Martha JP via swift-build-dev <swift-build-dev at swift.org> wrote:
> 
> Hi, I'm JPMartha.
> 
> Can I ask about module name?
> 
> The following error has occured when package's name or module's name consists of figures only. Is it invalid as the error message says?
> 
> Error:
> ```
> fatal error: Invalid module name: file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swiftpm/Sources/PackageType/c99name().swift, line 202
> ```
> 
> I saw `Sources/PackageType/c99name().swift`, then I found the following document.
> 
> /**
>  Removes characters from name that are invalid in C99 module-names.
> */
> 
> So, I checked C99. Also, I saw the API Design Guideline and the swift-build-dev Archives.
> But I'm not sure that it is invalid.
> 
> Even though I miss a naming rule, I think this error should been prevented beforehand.
> So, I reported https://bugs.swift.org/browse/SR-1224 <https://bugs.swift.org/browse/SR-1224>.
> 
> Best regards,
> JPMartha
> _______________________________________________
> swift-build-dev mailing list
> swift-build-dev at swift.org
> https://lists.swift.org/mailman/listinfo/swift-build-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-build-dev/attachments/20160414/7f656046/attachment.html>


More information about the swift-build-dev mailing list