can't compile with DEVELOPMENT-SNAPSHOT-2016-06-06(the current recommended version)
Closed this issue · 2 comments
IsanHu commented
Hi ~
The recommended version for now is DEVELOPMENT-SNAPSHOT-2016-06-06, and i'm on the develop branch but i still got some error while compiling 'Kitura':
Compile Swift Module 'Kitura' (34 sources)
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/MimeTypeAcceptor.swift:112:17: error: closure cannot implicitly capture an inout parameter unless @noescape
criteriaMatches[type] = (priority: priority, qValue: parsedHeaderValue.qValue)
^
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/Router.swift:112:14: warning: result of call to 'all(_:middleware:)' is unused
self.all(route, middleware: subrouter)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/Router.swift:279:26: warning: result of call to 'send(fileName:)' is unused
try response.send(fileName: resourceFileName)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/staticFileServer/FileServer.swift:105:17: warning: result of call to 'serveIfNonDirectoryFile(atPath:response:)' is unused
serveIfNonDirectoryFile(atPath: filePathWithExtension, response: response)
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/staticFileServer/FileServer.swift:114:38: warning: result of call to 'redirect' is unused
try response.redirect(requestPath + "/")
^ ~~~~~~~~~~~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/staticFileServer/FileServer.swift:146:30: warning: result of call to 'send(fileName:)' is unused
try response.send(fileName: filePath)
^ ~~~~~~~~~~~~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/RouterResponse.swift:176:9: warning: result of call to 'send' is unused
send(str)
^ ~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/RouterResponse.swift:191:9: warning: result of call to 'send(data:)' is unused
send(data: data)
^ ~~~~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/RouterResponse.swift:206:13: warning: result of call to 'send(data:)' is unused
send(data: data)
^ ~~~~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/RouterResponse.swift:245:9: warning: result of call to 'send(data:)' is unused
send(data: data)
^ ~~~~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/RouterResponse.swift:261:9: warning: result of call to 'send' is unused
send(jsonStr)
^ ~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/RouterResponse.swift:287:14: warning: result of call to 'status' is unused
self.status(status)
^ ~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/RouterResponse.swift:289:13: warning: result of call to 'send' is unused
send(statusCode)
^ ~~~~~~~~~~~~
/Users/isan/Kitura-Sample/Packages/Kitura-0.17.8/Sources/Kitura/RouterResponse.swift:401:13: warning: result of call to 'send(fileName:)' is unused
try send(fileName: download)
^ ~~~~~~~~~~~~~~~~~~~~
<unknown>:0: error: build had 1 command failures
error: exit(1): /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-06-06-a.xctoolchain/usr/bin/swift-build-tool -f /Users/isan/Kitura-Sample/.build/debug.yaml
make: *** [build] Error 1
ianpartridge commented
Confirmed this was broken. I've just pushed to develop
fixing this - can you try again? Thank you.
IsanHu commented
@ianpartridge you did it~ great!