{"action":"created","issue":{"url":"https://api.github.com/repos/httpswift/swifter/issues/132","repository_url":"https://api.github.com/repos/httpswift/swifter","labels_url":"https://api.github.com/repos/httpswift/swifter/issues/132/labels{/name}","comments_url":"https://api.github.com/repos/httpswift/swifter/issues/132/comments","events_url":"https://api.github.com/repos/httpswift/swifter/issues/132/events","html_url":"https://github.com/httpswift/swifter/issues/132","id":158962933,"number":132,"title":"Error compiling in stable branch","user":{"login":"wildfiremedia","id":6618755,"avatar_url":"https://avatars.githubusercontent.com/u/6618755?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiremedia","html_url":"https://github.com/wildfiremedia","followers_url":"https://api.github.com/users/wildfiremedia/followers","following_url":"https://api.github.com/users/wildfiremedia/following{/other_user}","gists_url":"https://api.github.com/users/wildfiremedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiremedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiremedia/subscriptions","organizations_url":"https://api.github.com/users/wildfiremedia/orgs","repos_url":"https://api.github.com/users/wildfiremedia/repos","events_url":"https://api.github.com/users/wildfiremedia/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiremedia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-07T16:07:37Z","updated_at":"2016-06-14T16:15:45Z","closed_at":null,"body":"Which swift version do Swifter supported? swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a produce countless errors.\r\n\r\n```\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:65:34: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    public func read(inout data: [UInt8]) throws -> Int {\r\n                     ~~~~~       ^\r\n                                 inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:49: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                               ~~~~~            ^\r\n                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:38: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                         ~~~~~       ^\r\n                                     inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:61: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                                           ~~~~~~           ^\r\n                                                            inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:42: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                             ~~~~~       ^\r\n                                         inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:62: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                               ~~~~~~        ^\r\n                                                             inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:97: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                                                               ~~~~~~           ^\r\n                                                                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:16:68: error: missing argument label 'directoryPath:' in call\r\n    server[\"/public/:path\"] = HttpHandlers.shareFilesFromDirectory(publicDir)\r\n                                                                   ^\r\n                                                                   directoryPath: \r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:17:63: error: missing argument label 'directoryPath:' in call\r\n    server[\"/public/\"] = HttpHandlers.shareFilesFromDirectory(publicDir)    // needed to serve index file at root level\r\n                                                              ^\r\n                                                              directoryPath: \r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:19:60: error: missing argument label 'dir:' in call\r\n    server[\"/files/:path\"] = HttpHandlers.directoryBrowser(\"/\")\r\n                                                           ^\r\n                                                           dir: \r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:54:53: error: argument 'repeatedValue' must precede argument 'count'\r\n            var array = [UInt8](count: html.length, repeatedValue: 0)\r\n                                ~~~~~~~~~~~~~~~~~~  ^              ~\r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:71:53: error: argument 'repeatedValue' must precede argument 'count'\r\n            var array = [UInt8](count: html.length, repeatedValue: 0)\r\n                                ~~~~~~~~~~~~~~~~~~  ^              ~\r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:80:78: error: 'joinWithSeparator' has been renamed to 'joined'\r\n        return HttpResponse.OK(.Html(formFields.map({ \"\\($0.0) = \\($0.1)\" }).joinWithSeparator(\"<br>\")))\r\n                                                                             ^~~~~~~~~~~~~~~~~\r\n                                                                             joined\r\nSwift.Sequence:3:17: note: 'joinWithSeparator' has been explicitly marked unavailable here\r\n    public func joinWithSeparator(_ separator: String) -> String\r\n                ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:80:78: error: 'joinWithSeparator' has been renamed to 'joined'\r\n        return HttpResponse.OK(.Html(formFields.map({ \"\\($0.0) = \\($0.1)\" }).joinWithSeparator(\"<br>\")))\r\n                                                                             ^~~~~~~~~~~~~~~~~\r\n                                                                             joined\r\nSwift.Sequence:3:17: note: 'joinWithSeparator' has been explicitly marked unavailable here\r\n    public func joinWithSeparator(_ separator: String) -> String\r\n                ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:88:76: error: cannot convert value of type '(_) -> _' to expected argument type '(HttpResponseBodyWriter -> Void)?'\r\n        return HttpResponse.RAW(200, \"OK\", [\"XXX-Custom-Header\": \"value\"], { $0.write([UInt8](\"test\".utf8)) })\r\n                                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:92:66: error: 'init(int:)' is unavailable in Swift\r\n        let jsonObject: NSDictionary = [NSString(string: \"foo\"): NSNumber(int: 3), NSString(string: \"bar\"): NSString(string: \"baz\")] \r\n                                                                 ^~~~~~~~\r\nFoundation.NSNumber:23:30: note: 'init(int:)' has been explicitly marked unavailable here\r\n    public /*not inherited*/ init(int value: Int32)\r\n                             ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:92:66: error: 'init(int:)' is unavailable in Swift\r\n        let jsonObject: NSDictionary = [NSString(string: \"foo\"): NSNumber(int: 3), NSString(string: \"bar\"): NSString(string: \"baz\")] \r\n                                                                 ^~~~~~~~\r\nFoundation.NSNumber:23:30: note: 'init(int:)' has been explicitly marked unavailable here\r\n    public /*not inherited*/ init(int value: Int32)\r\n                             ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:113:19: error: argument labels '(_:)' do not match any available overloads\r\n                w.write([UInt8](\"[chunk \\(i)]\".utf8))\r\n                  ^    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:113:19: note: overloads for 'write' exist with these partially matching parameter lists: (data: [UInt8]), (data: ArraySlice<UInt8>)\r\n                w.write([UInt8](\"[chunk \\(i)]\".utf8))\r\n                  ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/DemoServer.swift:118:55: error: missing argument label 'text:' in call\r\n    server[\"/websocket-echo\"] = HttpHandlers.websocket({ (session, text) in\r\n                                                      ^\r\n                                                       text: \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:65:34: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    public func read(inout data: [UInt8]) throws -> Int {\r\n                     ~~~~~       ^\r\n                                 inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:49: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                               ~~~~~            ^\r\n                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:38: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                         ~~~~~       ^\r\n                                     inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:61: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                                           ~~~~~~           ^\r\n                                                            inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:42: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                             ~~~~~       ^\r\n                                         inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:62: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                               ~~~~~~        ^\r\n                                                             inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:97: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                                                               ~~~~~~           ^\r\n                                                                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:14:24: error: 'ErrorType' has been renamed to 'ErrorProtocol'\r\npublic enum FileError: ErrorType {\r\n                       ^~~~~~~~~\r\n                       ErrorProtocol\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:14:13: error: type 'FileError' does not conform to protocol 'RawRepresentable'\r\npublic enum FileError: ErrorType {\r\n            ^\r\nSwift.RawRepresentable:9:20: note: protocol requires nested type 'RawValue'\r\n    associatedtype RawValue\r\n                   ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:25:35: error: missing argument label 'path:' in call\r\n        return try openFileForMode(path, \"wb\")\r\n                                  ^\r\n                                   path: \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:29:35: error: missing argument label 'path:' in call\r\n        return try openFileForMode(path, \"rb\")\r\n                                  ^\r\n                                   path: \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:33:35: error: missing argument label 'path:' in call\r\n        return try openFileForMode(path, \"r+b\")\r\n                                  ^\r\n                                   path: \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:39:29: error: thrown expression type 'FileError' does not conform to 'ErrorProtocol'\r\n            throw FileError.OpenFailed(descriptionOfLastError())\r\n                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:47:29: error: thrown expression type 'FileError' does not conform to 'ErrorProtocol'\r\n            throw FileError.GetCurrentWorkingDirectoryFailed(descriptionOfLastError())\r\n                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:49:35: error: 'fromCString' is unavailable: Please use String.init?(validatingUTF8:) instead. Note that it no longer accepts NULL as a valid input. Also consider using String(cString:), that will attempt to repair ill-formed code units.\r\n        guard let result = String.fromCString(path) else {\r\n                                  ^~~~~~~~~~~\r\nSwift.String:4:24: note: 'fromCString' has been explicitly marked unavailable here\r\n    public static func fromCString(_ cs: UnsafePointer<CChar>) -> String?\r\n                       ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:50:29: error: thrown expression type 'FileError' does not conform to 'ErrorProtocol'\r\n            throw FileError.GetCurrentWorkingDirectoryFailed(\"Could not convert getcwd(...)'s result to String.\")\r\n                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:77:29: error: thrown expression type 'FileError' does not conform to 'ErrorProtocol'\r\n            throw FileError.ReadFailed(File.descriptionOfLastError())\r\n                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:79:25: error: thrown expression type 'FileError' does not conform to 'ErrorProtocol'\r\n        throw FileError.ReadFailed(\"Unknown file read error occured.\")\r\n              ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:88:33: error: thrown expression type 'FileError' does not conform to 'ErrorProtocol'\r\n                throw FileError.WriteFailed(File.descriptionOfLastError())\r\n                      ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:95:29: error: thrown expression type 'FileError' does not conform to 'ErrorProtocol'\r\n            throw FileError.SeekFailed(File.descriptionOfLastError())\r\n                  ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:100:23: error: 'fromCString' is unavailable: Please use String.init?(validatingUTF8:) instead. Note that it no longer accepts NULL as a valid input. Also consider using String(cString:), that will attempt to repair ill-formed code units.\r\n        return String.fromCString(UnsafePointer(strerror(errno))) ?? \"Error: \\(errno)\"\r\n                      ^~~~~~~~~~~\r\nSwift.String:4:24: note: 'fromCString' has been explicitly marked unavailable here\r\n    public static func fromCString(_ cs: UnsafePointer<CChar>) -> String?\r\n                       ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:107:41: error: missing argument label 'path:' in call\r\n        return try withFileOpenedForMode(path, mode: \"wb\", f)\r\n                                        ^\r\n                                         path: \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:111:41: error: missing argument label 'path:' in call\r\n        return try withFileOpenedForMode(path, mode: \"rb\", f)\r\n                                        ^\r\n                                         path: \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:115:41: error: missing argument label 'path:' in call\r\n        return try withFileOpenedForMode(path, mode: \"r+b\", f)\r\n                                        ^\r\n                                         path: \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:119:44: error: missing argument label 'path:' in call\r\n        let file = try File.openFileForMode(path, mode)\r\n                                           ^\r\n                                            path: \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:65:34: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    public func read(inout data: [UInt8]) throws -> Int {\r\n                     ~~~~~       ^\r\n                                 inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:49: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                               ~~~~~            ^\r\n                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:38: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                         ~~~~~       ^\r\n                                     inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:61: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                                           ~~~~~~           ^\r\n                                                            inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:42: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                             ~~~~~       ^\r\n                                         inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:62: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                               ~~~~~~        ^\r\n                                                             inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:97: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                                                               ~~~~~~           ^\r\n                                                                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+Files.swift:14:58: error: missing argument label 'directoryPath:' in call\r\n            guard let absolutePath = self.fileNameToShare(directoryPath, request: r) else {\r\n                                                         ^\r\n                                                          directoryPath: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+Files.swift:22:49: error: argument 'repeatedValue' must precede argument 'count'\r\n                var buffer = [UInt8](count: 64, repeatedValue: 0)\r\n                                     ~~~~~~~~~  ^              ~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+Files.swift:49:16: error: value of type 'NSFileManager' has no member 'fileExistsAtPath'\r\n            if fm.fileExistsAtPath(indexPath) {\r\n               ^~ ~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+Files.swift:81:39: error: value of type 'String' has no member 'substringFromIndex'\r\n                    let rangeString = rangeHeader.substringFromIndex(rangeHeader.startIndex.advancedBy(HttpHandlers.rangePrefix.characters.count))\r\n                                      ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+Files.swift:94:65: error: argument 'repeatedValue' must precede argument 'count'\r\n                    var array = [UInt8](count: fileBody.length, repeatedValue: 0)\r\n                                        ~~~~~~~~~~~~~~~~~~~~~~  ^              ~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+Files.swift:114:63: error: argument 'repeatedValue' must precede argument 'count'\r\n                var content = [UInt8](count: fileBody.length, repeatedValue: 0)\r\n                                      ~~~~~~~~~~~~~~~~~~~~~~  ^              ~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+Files.swift:129:19: error: value of type 'NSFileManager' has no member 'fileExistsAtPath'\r\n            guard fileManager.fileExistsAtPath(filePath, isDirectory: &isDir) else {\r\n                  ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+Files.swift:134:37: error: value of type 'NSFileManager' has no member 'contentsOfDirectoryAtPath'\r\n                    let files = try fileManager.contentsOfDirectoryAtPath(filePath)\r\n                                    ^~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+Files.swift:144:64: error: argument 'repeatedValue' must precede argument 'count'\r\n                    var array = [UInt8](count: content.length, repeatedValue: 0)\r\n                                        ~~~~~~~~~~~~~~~~~~~~~  ^              ~\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:65:34: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    public func read(inout data: [UInt8]) throws -> Int {\r\n                     ~~~~~       ^\r\n                                 inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:49: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                               ~~~~~            ^\r\n                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:38: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                         ~~~~~       ^\r\n                                     inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:61: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                                           ~~~~~~           ^\r\n                                                            inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:42: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                             ~~~~~       ^\r\n                                         inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:62: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                               ~~~~~~        ^\r\n                                                             inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:97: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                                                               ~~~~~~           ^\r\n                                                                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:49:28: error: 'ErrorType' has been renamed to 'ErrorProtocol'\r\n        public enum Error: ErrorType { case UnknownOpCode(String), UnMaskedFrame }\r\n                           ^~~~~~~~~\r\n                           ErrorProtocol\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:49:21: error: type 'HttpHandlers.WebSocketSession.Error' does not conform to protocol 'RawRepresentable'\r\n        public enum Error: ErrorType { case UnknownOpCode(String), UnMaskedFrame }\r\n                    ^\r\nSwift.RawRepresentable:9:20: note: protocol requires nested type 'RawValue'\r\n    associatedtype RawValue\r\n                   ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:31:66: error: missing argument label 'array:' in call\r\n                            handleText(session, String.fromUInt8(frame.payload))\r\n                                                                 ^\r\n                                                                 array: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:41:54: error: missing argument label 'data:' in call\r\n            let secWebSocketAccept = String.toBase64((secWebSocketKey + \"258EAFA5-E914-47DA-95CA-C5AB0DC85B11\").SHA1())\r\n                                                     ^\r\n                                                     data: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:65:28: error: missing argument label 'data:' in call\r\n            self.writeFrame(ArraySlice(text.utf8), OpCode.Text)\r\n                           ^\r\n                            data: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:69:18: error: argument labels '(_:)' do not match any available overloads\r\n            self.writeBinary(ArraySlice(binary))\r\n                 ^          ~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:69:18: note: overloads for 'writeBinary' exist with these partially matching parameter lists: (binary: [UInt8]), (binary: ArraySlice<UInt8>)\r\n            self.writeBinary(ArraySlice(binary))\r\n                 ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:73:28: error: missing argument label 'data:' in call\r\n            self.writeFrame(binary, OpCode.Binary)\r\n                           ^\r\n                            data: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:77:50: error: missing argument label 'fin:' in call\r\n            let finAndOpCode = encodeFinAndOpCode(fin, op: op)\r\n                                                 ^\r\n                                                  fin: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:78:55: error: missing argument label 'len:' in call\r\n            let maskAndLngth = encodeLengthAndMaskFlag(UInt64(data.count), false)\r\n                                                      ^\r\n                                                       len: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:82:33: error: argument labels '(_:)' do not match any available overloads\r\n                try self.socket.writeUInt8(data)\r\n                                ^         ~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:82:33: note: overloads for 'writeUInt8' exist with these partially matching parameter lists: (data: [UInt8]), (data: ArraySlice<UInt8>)\r\n                try self.socket.writeUInt8(data)\r\n                                ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:139:40: error: thrown expression type 'HttpHandlers.WebSocketSession.Error' does not conform to 'ErrorProtocol'\r\n                default  : throw Error.UnknownOpCode(\"\\(opc)\")\r\n                                 ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpHandlers+WebSockets.swift:146:29: error: thrown expression type 'HttpHandlers.WebSocketSession.Error' does not conform to 'ErrorProtocol'\r\n                throw Error.UnMaskedFrame\r\n                      ~~~~~~^~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:65:34: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    public func read(inout data: [UInt8]) throws -> Int {\r\n                     ~~~~~       ^\r\n                                 inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:49: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                               ~~~~~            ^\r\n                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:38: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                         ~~~~~       ^\r\n                                     inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:61: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                                           ~~~~~~           ^\r\n                                                            inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:42: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                             ~~~~~       ^\r\n                                         inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:62: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                               ~~~~~~        ^\r\n                                                             inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:97: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                                                               ~~~~~~           ^\r\n                                                                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:65:34: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    public func read(inout data: [UInt8]) throws -> Int {\r\n                     ~~~~~       ^\r\n                                 inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:49: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                               ~~~~~            ^\r\n                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:38: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                         ~~~~~       ^\r\n                                     inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:61: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                                           ~~~~~~           ^\r\n                                                            inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:42: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                             ~~~~~       ^\r\n                                         inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:62: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                               ~~~~~~        ^\r\n                                                             inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:97: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                                                               ~~~~~~           ^\r\n                                                                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpParser.swift:14:23: error: 'ErrorType' has been renamed to 'ErrorProtocol'\r\nenum HttpParserError: ErrorType {\r\n                      ^~~~~~~~~\r\n                      ErrorProtocol\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpParser.swift:14:6: error: type 'HttpParserError' does not conform to protocol 'RawRepresentable'\r\nenum HttpParserError: ErrorType {\r\n     ^\r\nSwift.RawRepresentable:9:20: note: protocol requires nested type 'RawValue'\r\n    associatedtype RawValue\r\n                   ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpParser.swift:24:49: error: missing argument label 'separator:' in call\r\n        let statusLineTokens = statusLine.split(\" \")\r\n                                                ^\r\n                                                separator: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpParser.swift:26:35: error: thrown expression type 'HttpParserError' does not conform to 'ErrorProtocol'\r\n            throw HttpParserError.InvalidStatusLine(statusLine)\r\n                  ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpParser.swift:31:50: error: missing argument label 'url:' in call\r\n        request.queryParams = extractQueryParams(request.path)\r\n                                                 ^\r\n                                                 url: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpParser.swift:32:43: error: missing argument label 'socket:' in call\r\n        request.headers = try readHeaders(socket)\r\n                                          ^\r\n                                          socket: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpParser.swift:34:40: error: missing argument label 'socket:' in call\r\n            request.body = try readBody(socket, size: contentLengthValue)\r\n                                       ^\r\n                                        socket: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpParser.swift:40:37: error: missing argument label 'separator:' in call\r\n        guard let query = url.split(\"?\").last else {\r\n                                    ^\r\n                                    separator: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpParser.swift:65:48: error: missing argument label 'maxSplit:' in call\r\n            let headerTokens = headerLine.split(1, separator: \":\")\r\n                                               ^\r\n                                                maxSplit: \r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:65:34: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    public func read(inout data: [UInt8]) throws -> Int {\r\n                     ~~~~~       ^\r\n                                 inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:49: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                               ~~~~~            ^\r\n                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:38: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                         ~~~~~       ^\r\n                                     inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:61: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                                           ~~~~~~           ^\r\n                                                            inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:42: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                             ~~~~~       ^\r\n                                         inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:62: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                               ~~~~~~        ^\r\n                                                             inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:97: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                                                               ~~~~~~           ^\r\n                                                                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:49: error: 'IndexingGenerator' has been renamed to 'IndexingIterator'\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                                                ^~~~~~~~~~~~~~~~~\r\n                                                IndexingIterator\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:32: error: parameters may not have the 'var' specifier\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                               ^~~~~\r\n                               \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:53: error: 'IndexingGenerator' has been renamed to 'IndexingIterator'\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                                    ^~~~~~~~~~~~~~~~~\r\n                                                    IndexingIterator\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:36: error: parameters may not have the 'var' specifier\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                   ^~~~~\r\n                                   \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:53: error: 'IndexingGenerator' has been renamed to 'IndexingIterator'\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                                    ^~~~~~~~~~~~~~~~~\r\n                                                    IndexingIterator\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:36: error: parameters may not have the 'var' specifier\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                   ^~~~~\r\n                                   \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:24:63: error: missing argument label 'separator:' in call\r\n        let contentTypeHeaderTokens = contentTypeHeader.split(\";\").map { $0.trim() }\r\n                                                              ^\r\n                                                              separator: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:28:33: error: missing argument label 'array:' in call\r\n        return String.fromUInt8(body).split(\"&\").map { param -> (String, String) in\r\n                                ^\r\n                                array: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:44:28: error: missing argument label 'headerName:' in call\r\n            return valueFor(\"content-disposition\", parameter: \"name\")?.unquote()\r\n                           ^\r\n                            headerName: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:48:28: error: missing argument label 'headerName:' in call\r\n            return valueFor(\"content-disposition\", parameter: \"filename\")?.unquote()\r\n                           ^\r\n                            headerName: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:56:60: error: missing argument label 'separator:' in call\r\n                let headerValueParams = header.value.split(\";\").map { $0.trim() }\r\n                                                           ^\r\n                                                           separator: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:72:63: error: missing argument label 'separator:' in call\r\n        let contentTypeHeaderTokens = contentTypeHeader.split(\";\").map { $0.trim() }\r\n                                                              ^\r\n                                                              separator: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:84:42: error: missing argument label 'data:' in call\r\n            return parseMultiPartFormData(body, boundary: \"--\\(boundary)\")\r\n                                         ^\r\n                                          data: \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:90:30: error: 'generate()' has been renamed to 'makeIterator'\r\n        var generator = data.generate()\r\n                             ^~~~~~~~\r\n                             makeIterator\r\nSwift.Collection:5:17: note: 'generate()' has been explicitly marked unavailable here\r\n    public func generate() -> Self.Iterator\r\n                ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:143:22: error: 'removeRange' has been renamed to 'removeSubrange'\r\n                body.removeRange(Range<Int>(body.count-matchOffset ..< body.count))\r\n                     ^~~~~~~~~~~\r\n                     removeSubrange\r\nSwift.RangeReplaceableCollection:7:26: note: 'removeRange' has been explicitly marked unavailable here\r\n    public mutating func removeRange(_ subRange: Range<Self.Index>)\r\n                         ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/File.swift:65:34: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    public func read(inout data: [UInt8]) throws -> Int {\r\n                     ~~~~~       ^\r\n                                 inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:98:49: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPart(inout generator: IndexingGenerator<[UInt8]>, boundary: String, isFirst: Bool) -> MultiPart? {\r\n                               ~~~~~            ^\r\n                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:119:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartLine(inout generator: IndexingGenerator<[UInt8]>) -> String? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRequest.swift:135:53: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func nextMultiPartBody(inout generator: IndexingGenerator<[UInt8]>, boundary: String) -> [UInt8]? {\r\n                                   ~~~~~            ^\r\n                                                    inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:38: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                         ~~~~~       ^\r\n                                     inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:67:61: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func inflate(inout node: Node, inout generator: IndexingGenerator<[String]>) -> Node {\r\n                                           ~~~~~~           ^\r\n                                                            inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:42: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                             ~~~~~       ^\r\n                                         inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:62: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                               ~~~~~~        ^\r\n                                                             inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpRouter.swift:79:97: error: 'inout' before a parameter name is not allowed, place it before the parameter type instead\r\n    private func findHandler(inout node: Node, inout params: [String: String], inout generator: IndexingGenerator<[String]>) -> (HttpRequest -> HttpResponse)? {\r\n                                                                               ~~~~~~           ^\r\n                                                                                                inout \r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpResponse.swift:10:33: error: 'ErrorType' has been renamed to 'ErrorProtocol'\r\npublic enum SerializationError: ErrorType {\r\n                                ^~~~~~~~~\r\n                                ErrorProtocol\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpResponse.swift:10:13: error: type 'SerializationError' does not conform to protocol 'RawRepresentable'\r\npublic enum SerializationError: ErrorType {\r\n            ^\r\nSwift.RawRepresentable:9:20: note: protocol requires nested type 'RawValue'\r\n    associatedtype RawValue\r\n                   ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpResponse.swift:32:46: error: thrown expression type 'SerializationError' does not conform to 'ErrorProtocol'\r\n                    throw SerializationError.InvalidObject\r\n                          ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpResponse.swift:34:32: error: type 'NSJSONSerialization' has no member 'dataWithJSONObject'\r\n                let json = try NSJSONSerialization.dataWithJSONObject(object, options: NSJSONWritingOptions.PrettyPrinted)\r\n                               ^~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpResponse.swift:41:37: error: cannot convert return expression of type '(_) -> _' to return type '(HttpResponseBodyWriter throws -> Void)?'\r\n                return (data.count, {\r\n                                    ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpResponse.swift:47:37: error: cannot convert return expression of type '(_) -> _' to return type '(HttpResponseBodyWriter throws -> Void)?'\r\n                return (data.count, {\r\n                                    ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpResponse.swift:53:37: error: cannot convert return expression of type '(_) -> _' to return type '(HttpResponseBodyWriter throws -> Void)?'\r\n                return (data.count, {\r\n                                    ^\r\n/Users/yanli/Downloads/swifter-stable/Sources/HttpResponse.swift:59:33: error: cannot convert return expression of type '(_) -> _' to return type '(HttpResponseBodyWriter throws -> Void)?'\r\n            return (data.count, {\r\n                                ^\r\n<unknown>:0: error: build had 1 command failures\r\nerror: exit(1): /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a.xctoolchain/usr/bin/swift-build-tool -f /Users/yanli/Downloads/swifter-stable/.build/debug.yaml default\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/httpswift/swifter/issues/comments/225933978","html_url":"https://github.com/httpswift/swifter/issues/132#issuecomment-225933978","issue_url":"https://api.github.com/repos/httpswift/swifter/issues/132","id":225933978,"user":{"login":"glock45","id":492449,"avatar_url":"https://avatars.githubusercontent.com/u/492449?v=3","gravatar_id":"","url":"https://api.github.com/users/glock45","html_url":"https://github.com/glock45","followers_url":"https://api.github.com/users/glock45/followers","following_url":"https://api.github.com/users/glock45/following{/other_user}","gists_url":"https://api.github.com/users/glock45/gists{/gist_id}","starred_url":"https://api.github.com/users/glock45/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glock45/subscriptions","organizations_url":"https://api.github.com/users/glock45/orgs","repos_url":"https://api.github.com/users/glock45/repos","events_url":"https://api.github.com/users/glock45/events{/privacy}","received_events_url":"https://api.github.com/users/glock45/received_events","type":"User","site_admin":false},"created_at":"2016-06-14T16:15:45Z","updated_at":"2016-06-14T16:15:45Z","body":"@wildfiremedia hey man :) It looks like Swift's version is the problem.\r\n\r\n**swift-DEVELOPMENT-SNAPSHOT-2016-04-12-a** uses Swift 3 and \"stable\" source tree is written in Swift 2.\r\n\r\nWe have two branches in the project:\r\n\r\nStable branch is for Swift 2.x. (osx: Swift 2.2.1 is available as part of Xcode 7.3.1, linux: swift-2.2.1-RELEASE-ubuntu15.10)\r\nMaster branch is for Swift 3.x. (osx: Swift 3.0 Preview 1 is available as part of Xcode 8.0 beta, linux: swift-3.0-preview-1-ubuntu15.10.tar.gz)"}}
{"actor":{"display_login":"glock45"}}