<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi Daniel and JPMartha</div><div class=""><br class=""></div>From what I understand we we should provide better error handling. We should check is the package name is correct when run swift build --init<div class="">If it’s not then descriptive show error message and don’t create a Package.</div><div class=""><br class=""><div class="">Did I understood it correctly JPMartha?</div><div class=""><br class=""></div><div class="">- Kostiantyn</div><div class=""><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 14 Apr 2016, at 17:54, Daniel Dunbar via swift-build-dev <<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi JPMartha,<div class=""><br class=""></div><div class="">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?</div><div class=""><br class=""></div><div class="">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).</div><div class=""><br class=""></div><div class=""> - Daniel</div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Apr 13, 2016, at 10:56 PM, Martha JP via swift-build-dev <<a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi, I'm JPMartha.</div><div class=""><br class=""></div><div class="">Can I ask about module name?</div><div class=""><br class=""></div><div class="">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?</div><div class=""><br class=""></div><div class="">Error:</div><div class="">```</div><div class="">fatal error: Invalid module name: file /Users/buildnode/jenkins/workspace/oss-swift-package-osx/swiftpm/Sources/PackageType/c99name().swift, line 202</div><div class="">```</div><div class=""><br class=""></div><div class="">I saw `Sources/PackageType/c99name().swift`, then I found the following document.</div><div class=""><br class=""></div><div class="">/**</div><div class=""> Removes characters from name that are invalid in C99 module-names.</div><div class="">*/</div><div class=""><br class=""></div><div class="">So, I checked C99. Also, I saw the API Design Guideline and the swift-build-dev Archives.</div><div class="">But I'm not sure that it is invalid.</div><div class=""><br class=""></div><div class="">Even though I miss a naming rule, I think this error should been prevented beforehand.<br class=""></div><div class="">So, I reported <a href="https://bugs.swift.org/browse/SR-1224" class="">https://bugs.swift.org/browse/SR-1224</a>.</div><div class=""><br class=""></div><div class="">Best regards,</div><div class="">JPMartha</div></div>
_______________________________________________<br class="">swift-build-dev mailing list<br class=""><a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a><br class=""><a href="https://lists.swift.org/mailman/listinfo/swift-build-dev" class="">https://lists.swift.org/mailman/listinfo/swift-build-dev</a><br class=""></div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">swift-build-dev mailing list<br class=""><a href="mailto:swift-build-dev@swift.org" class="">swift-build-dev@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-build-dev<br class=""></div></blockquote></div><br class=""></div></div></div></body></html>