Created
February 5, 2018 06:37
-
-
Save norio-nomura/bea8ba9b2a1f02a76f4baeb08177d932 to your computer and use it in GitHub Desktop.
SourceKit crashes with Assertion `(!value || Kind == tok::identifier) && "only identifiers can be escaped identifiers"' failed. on Swift 4.1 for Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ docker run --privileged -it --rm norionomura/swift:4120180201a | |
root@ed1c03d3a776:/# git clone https://github.com/realm/SwiftLint.git -b nn-swift-4.1 | |
Cloning into 'SwiftLint'... | |
remote: Counting objects: 23681, done. | |
remote: Compressing objects: 100% (165/165), done. | |
remote: Total 23681 (delta 95), reused 145 (delta 74), pack-reused 23440 | |
Receiving objects: 100% (23681/23681), 6.16 MiB | 1.70 MiB/s, done. | |
Resolving deltas: 100% (16180/16180), done. | |
Checking connectivity... done. | |
root@ed1c03d3a776:/# cd SwiftLint | |
root@ed1c03d3a776:/SwiftLint# SOURCEKIT_LOGGING=1 swift test --filter testFunctionParameterCount | |
Fetching https://github.com/antitypical/Result.git | |
Fetching https://github.com/drmohundro/SWXMLHash.git | |
Fetching https://github.com/norio-nomura/SourceKit.git | |
Fetching https://github.com/jpsim/SourceKitten.git | |
Fetching https://github.com/scottrhoyt/SwiftyTextTable.git | |
Fetching https://github.com/jpsim/Yams.git | |
Fetching https://github.com/Quick/Nimble.git | |
Fetching https://github.com/Quick/Quick.git | |
Fetching https://github.com/norio-nomura/Clang_C.git | |
Fetching https://github.com/Carthage/Commandant.git | |
Cloning https://github.com/antitypical/Result.git | |
Resolving https://github.com/antitypical/Result.git at 3.2.4 | |
Cloning https://github.com/drmohundro/SWXMLHash.git | |
Resolving https://github.com/drmohundro/SWXMLHash.git at 4.3.6 | |
Cloning https://github.com/jpsim/SourceKitten.git | |
Resolving https://github.com/jpsim/SourceKitten.git at nn-swift-4.1 | |
Cloning https://github.com/norio-nomura/SourceKit.git | |
Resolving https://github.com/norio-nomura/SourceKit.git at 1.0.1 | |
Cloning https://github.com/scottrhoyt/SwiftyTextTable.git | |
Resolving https://github.com/scottrhoyt/SwiftyTextTable.git at 0.8.0 | |
Cloning https://github.com/jpsim/Yams.git | |
Resolving https://github.com/jpsim/Yams.git at master | |
Cloning https://github.com/Quick/Nimble.git | |
Resolving https://github.com/Quick/Nimble.git at 7.0.3 | |
Cloning https://github.com/Quick/Quick.git | |
Resolving https://github.com/Quick/Quick.git at 1.2.0 | |
Cloning https://github.com/norio-nomura/Clang_C.git | |
Resolving https://github.com/norio-nomura/Clang_C.git at 1.0.2 | |
Cloning https://github.com/Carthage/Commandant.git | |
Resolving https://github.com/Carthage/Commandant.git at 0.13.0 | |
Compile CYaml src/writer.c | |
Compile CYaml src/scanner.c | |
Compile CYaml src/reader.c | |
Compile CYaml src/parser.c | |
Compile CYaml src/emitter.c | |
Compile CYaml src/api.c | |
Compile Swift Module 'SWXMLHash' (2 sources) | |
Compile Swift Module 'SwiftyTextTable' (1 sources) | |
Compile Swift Module 'Result' (2 sources) | |
Compile Swift Module 'Yams' (16 sources) | |
/SwiftLint/.build/checkouts/SWXMLHash.git-5710503645145960333/Source/SWXMLHash.swift:573:25: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value | |
for elem in all.flatMap({ $0.element }) { | |
^ | |
/SwiftLint/.build/checkouts/SWXMLHash.git-5710503645145960333/Source/SWXMLHash.swift:573:25: note: use 'compactMap(_:)' instead | |
for elem in all.flatMap({ $0.element }) { | |
^~~~~~~ | |
compactMap | |
/SwiftLint/.build/checkouts/SWXMLHash.git-5710503645145960333/Source/SWXMLHash.swift:861:25: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value | |
return children.flatMap { $0 as? XMLElement } | |
^ | |
/SwiftLint/.build/checkouts/SWXMLHash.git-5710503645145960333/Source/SWXMLHash.swift:861:25: note: use 'compactMap(_:)' instead | |
return children.flatMap { $0 as? XMLElement } | |
^~~~~~~ | |
compactMap | |
Compile Swift Module 'Commandant' (9 sources) | |
Compile Swift Module 'SourceKittenFramework' (35 sources) | |
Compile Swift Module 'SwiftLintFramework' (221 sources) | |
/SwiftLint/Source/SwiftLintFramework/Reporters/CSVReporter.swift:40:40: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value | |
let rows = [keys] + violations.flatMap(csvRow(for:)) | |
^ | |
/SwiftLint/Source/SwiftLintFramework/Reporters/CSVReporter.swift:40:40: note: use 'compactMap(_:)' instead | |
let rows = [keys] + violations.flatMap(csvRow(for:)) | |
^~~~~~~ | |
compactMap | |
/SwiftLint/Source/SwiftLintFramework/Rules/ValidIBInspectableRule.swift:121:23: warning: 'flatMap' is deprecated: Please use compactMap(_:) for the case where closure returns an optional value | |
["U", ""].flatMap { (sign: String) -> String in | |
^ | |
/SwiftLint/Source/SwiftLintFramework/Rules/ValidIBInspectableRule.swift:121:23: note: use 'compactMap(_:)' instead | |
["U", ""].flatMap { (sign: String) -> String in | |
^~~~~~~ | |
compactMap | |
Compile Swift Module 'SwiftLintFrameworkTests' (44 sources) | |
Compile Swift Module 'swiftlint' (11 sources) | |
Linking ./.build/x86_64-unknown-linux/debug/swiftlint | |
Compile Swift Module 'SwiftLintPackageTests' (1 sources) | |
Linking ./.build/x86_64-unknown-linux/debug/SwiftLintPackageTests.xctest | |
Test Suite 'Selected tests' started at 2018-02-05 06:30:25.444 | |
Test Suite 'RulesTests' started at 2018-02-05 06:30:25.447 | |
Test Case 'RulesTests.testFunctionParameterCount' started at 2018-02-05 06:30:25.447 | |
sourcekit: [2:sourcekitd_initialize: 0.0000] initializing | |
sourcekit: [2:handleRequest-before: 0.0012] { | |
key.request: source.request.editor.open, | |
key.name: "1567909586537434179", | |
key.sourcetext: "init(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0038] | |
sourcekit: [2:handleRequest-before: 0.0126] { | |
key.request: source.request.editor.open, | |
key.name: "3824035258619645796", | |
key.sourcetext: "init (a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0134] | |
sourcekit: [2:handleRequest-before: 0.0180] { | |
key.request: source.request.editor.open, | |
key.name: "-45345142592896763", | |
key.sourcetext: "`init`(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0205] | |
sourcekit: [2:handleRequest-before: 0.0249] { | |
key.request: source.request.editor.open, | |
key.name: "-7132139721039086461", | |
key.sourcetext: "init?(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0256] | |
sourcekit: [2:handleRequest-before: 0.0299] { | |
key.request: source.request.editor.open, | |
key.name: "2102582940785893499", | |
key.sourcetext: "init?<T>(a: T, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0304] | |
sourcekit: [2:handleRequest-before: 0.0365] { | |
key.request: source.request.editor.open, | |
key.name: "1562527887131011324", | |
key.sourcetext: "init?<T: String>(a: T, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0373] | |
sourcekit: [2:handleRequest-before: 0.0408] { | |
key.request: source.request.editor.open, | |
key.name: "-1637778363907976797", | |
key.sourcetext: "func f2(p1: Int, p2: Int) { }" | |
} | |
sourcekit: [2:handleRequest-after: 0.0413] | |
sourcekit: [2:handleRequest-before: 0.0432] { | |
key.request: source.request.editor.open, | |
key.name: "2724755114044256127", | |
key.sourcetext: "func f(a: Int, b: Int, c: Int, d: Int, x: Int = 42) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0438] | |
sourcekit: [2:handleRequest-before: 0.0468] { | |
key.request: source.request.editor.open, | |
key.name: "8118205366961237465", | |
key.sourcetext: "func f(a: [Int], b: Int, c: Int, d: Int, f: Int) -> [Int] {\nlet s = a.flatMap { $0 as? [String: Int] } ?? []}}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0510] | |
sourcekit: [2:handleRequest-before: 0.0565] { | |
key.request: source.request.editor.open, | |
key.name: "3604141846165094012", | |
key.sourcetext: "override func f(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0578] | |
sourcekit: [2:handleRequest-before: 0.0605] { | |
key.request: source.request.editor.open, | |
key.name: "1315055301897668803", | |
key.sourcetext: "func f(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0610] | |
sourcekit: [2:handleRequest-before: 0.0647] { | |
key.request: source.request.editor.open, | |
key.name: "5713425828936257855", | |
key.sourcetext: "func initialValue(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0652] | |
sourcekit: [2:handleRequest-before: 0.0680] { | |
key.request: source.request.editor.open, | |
key.name: "-5875550996723661962", | |
key.sourcetext: "func f(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int = 2, g: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0687] | |
sourcekit: [2:handleRequest-before: 0.0740] { | |
key.request: source.request.editor.open, | |
key.name: "1863598359766101281", | |
key.sourcetext: "struct Foo {\ninit(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}\nfunc bar(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0750] | |
sourcekit: [2:handleRequest-before: 0.0824] { | |
key.request: source.request.editor.open, | |
key.name: "-3018122755246776430", | |
key.sourcetext: "/* π¨βπ©βπ§βπ¦π¨βπ©βπ§βπ¦π¨βπ©βπ§βπ¦ */\ninit(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0861] | |
sourcekit: [2:handleRequest-before: 0.0895] { | |
key.request: source.request.editor.open, | |
key.name: "-1198767821246549146", | |
key.sourcetext: "/* π¨βπ©βπ§βπ¦π¨βπ©βπ§βπ¦π¨βπ©βπ§βπ¦ */\ninit (a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
sourcekit: [2:handleRequest-after: 0.0900] | |
sourcekit: [2:handleRequest-before: 0.0931] { | |
key.request: source.request.editor.open, | |
key.name: "-2178448306979356082", | |
key.sourcetext: "/* π¨βπ©βπ§βπ¦π¨βπ©βπ§βπ¦π¨βπ©βπ§βπ¦ */\n`init`(a: Int, b: Int, c: Int, d: Int, e: Int, f: Int) {}" | |
} | |
SwiftLintPackageTests.xctest: /home/buildnode/jenkins/workspace/oss-swift-4.1-package-linux-ubuntu-16_04/swift/include/swift/Parse/Token.h:127: void swift::Token::setEscapedIdentifier(bool): Assertion `(!value || Kind == tok::identifier) && "only identifiers can be escaped identifiers"' failed. | |
Exited with signal code 6 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment