Closed
Description
Description
using Swift Docc plugin 1.0.0, I receive fatal compilation error from Swift on 5.7 and 5.8
19:03:38 [2/2] Compiling plugin Swift-DocC
19:03:38 error: fatalError
or
19:01:05 Compiling plugin Swift-DocC...
19:01:05 error: emit-module command failed with exit code 1 (use -v to see invocation)
19:01:05 /code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SwiftDocCPluginUtilities/CommandLineArguments/CommandLineArguments.swift:31:50: error: consecutive declarations on a line must be separated by ';'
19:01:05 private var remainingOptionsOrFlags: [String].SubSequence
19:01:05 ^
19:01:05 ;
19:01:05 /code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SwiftDocCPluginUtilities/CommandLineArguments/CommandLineArguments.swift:31:50: error: expected declaration
19:01:05 private var remainingOptionsOrFlags: [String].SubSequence
19:01:05 ^
19:01:05 /code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SwiftDocCPluginUtilities/CommandLineArguments/CommandLineArguments.swift:12:15: note: in declaration of 'CommandLineArguments'
19:01:05 public struct CommandLineArguments {
19:01:05 ^
19:01:05 /code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SwiftDocCPluginUtilities/CommandLineArguments/CommandLineArguments.swift:34:40: error: consecutive declarations on a line must be separated by ';'
19:01:05 private var literalValues: [String].SubSequence
19:01:05 ^
19:01:05 ;
19:01:05 /code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SwiftDocCPluginUtilities/CommandLineArguments/CommandLineArguments.swift:34:40: error: expected declaration
19:01:05 private var literalValues: [String].SubSequence
19:01:05 ^
19:01:05 /code/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SwiftDocCPluginUtilities/CommandLineArguments/CommandLineArguments.swift:12:15: note: in declaration of 'CommandLineArguments'
19:01:05 public struct CommandLineArguments {
19:01:05 ^
19:01:05 error: fatalError
This breaks our pipeline for The Swift Lambda runtime, see the automated tests for this PR : swift-server/swift-aws-lambda-runtime#342
Checklist
- If possible, I've reproduced the issue using the
main
branch of this package. - This issue hasn't been addressed in an existing GitHub issue.
Expected Behavior
Should compile on last 3 Swift versions
Actual behavior
error: fatalError
Steps To Reproduce
Checkout this PR and compile with a 5.7 or 5.8 toolchain
Swift-DocC Version Information
1.0.0
Swift Compiler Version Information
5.7 and 5.8