Hey guys.
I started getting a compiler error from a project and I'm not sure how to track it down to report it. It happens on windows and does not happen on macOS, or Ubuntu.
The package is here GitHub - STREGAsGate/Gravity: Gravity for Swift.
This is the error:
error: compile command failed due to exception 3 (use -v to see invocation)error: failed parsing the Swift compiler output: unexpected JSON message: : dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "kind", intValue: nil)], debugDescription: "invalid kind", underlyingError: nil))
The --verbose output just shows the last compiled file but it's not that same each time.
Verbose Output Snippet
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swift-frontend.exe -frontend -c C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Errors.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Foundation.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Testing.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity.swift -primary-file C:\GitHub\Gravity-1\Sources\Gravity\GravityClass.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityClosure.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityInstance.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityValue.swift C:\GitHub\Gravity-1\Sources\Gravity\Protocols.swift -emit-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityClass.d -emit-reference-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityClass.swiftdeps -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -color-diagnostics -enable-testing -g -module-cache-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -empty-abi-descriptor -resource-dir C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\GravityC.build\module.modulemap -Xcc -I -Xcc C:\GitHub\Gravity-1\Sources\GravityC\include -module-name Gravity -parse-as-library -o C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityClass.swift.o -index-store-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\index\store -index-system-modules
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swift-frontend.exe -frontend -c C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Errors.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Foundation.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Testing.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityClass.swift -primary-file C:\GitHub\Gravity-1\Sources\Gravity\GravityClosure.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityInstance.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityValue.swift C:\GitHub\Gravity-1\Sources\Gravity\Protocols.swift -emit-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityClosure.d -emit-reference-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityClosure.swiftdeps -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk
-I C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -color-diagnostics -enable-testing -g -module-cache-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -empty-abi-descriptor -resource-dir C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\GravityC.build\module.modulemap -Xcc -I -Xcc C:\GitHub\Gravity-1\Sources\GravityC\include -module-name Gravity -parse-as-library -o C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityClosure.swift.o -index-store-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\index\store -index-system-modules
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swift-frontend.exe -frontend -c C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Errors.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Foundation.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Testing.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityClass.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityClosure.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityInstance.swift -primary-file C:\GitHub\Gravity-1\Sources\Gravity\GravityValue.swift C:\GitHub\Gravity-1\Sources\Gravity\Protocols.swift -emit-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityValue.d -emit-reference-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityValue.swiftdeps -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -color-diagnostics -enable-testing -g -module-cache-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -empty-abi-descriptor -resource-dir C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\GravityC.build\module.modulemap -Xcc -I -Xcc C:\GitHub\Gravity-1\Sources\GravityC\include -module-name Gravity -parse-as-library -o C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityValue.swift.o -index-store-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\index\store -index-system-modules
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swift-frontend.exe -frontend -c C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Errors.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Foundation.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Testing.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityClass.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityClosure.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityInstance.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityValue.swift -primary-file C:\GitHub\Gravity-1\Sources\Gravity\Protocols.swift -emit-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\Protocols.d -emit-reference-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\Protocols.swiftdeps -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -color-diagnostics -enable-testing -g -module-cache-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -empty-abi-descriptor -resource-dir C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\GravityC.build\module.modulemap -Xcc -I -Xcc C:\GitHub\Gravity-1\Sources\GravityC\include -module-name Gravity -parse-as-library -o C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\Protocols.swift.o -index-store-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\index\store -index-system-modules
C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swift-frontend.exe -frontend -c C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Errors.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Foundation.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity+Testing.swift C:\GitHub\Gravity-1\Sources\Gravity\Gravity.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityClass.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityClosure.swift -primary-file C:\GitHub\Gravity-1\Sources\Gravity\GravityInstance.swift C:\GitHub\Gravity-1\Sources\Gravity\GravityValue.swift C:\GitHub\Gravity-1\Sources\Gravity\Protocols.swift -emit-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityInstance.d -emit-reference-dependencies-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityInstance.swiftdeps -target x86_64-unknown-windows-msvc -disable-objc-interop -sdk C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk -I C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug -I C:\Library\Developer\Platforms\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -color-diagnostics -enable-testing -g -module-cache-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\ModuleCache -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -empty-abi-descriptor -resource-dir C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\lib\swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\GravityC.build\module.modulemap -Xcc -I -Xcc C:\GitHub\Gravity-1\Sources\GravityC\include -module-name Gravity -parse-as-library -o C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\Gravity.build\GravityInstance.swift.o -index-store-path C:\GitHub\Gravity-1.build\x86_64-unknown-windows-msvc\debug\index\store -index-system-modules
error: emit-module command failed due to exception 3 (use -v to see invocation)error: failed parsing the Swift compiler output: unexpected JSON message: : dataCorrupted(Swift.DecodingError.Context(codingPath: [CodingKeys(stringValue: "kind", intValue: nil)], debugDescription: "invalid kind", underlyingError: nil))
PS C:\GitHub\Gravity-1>
Anyone have some suggestions on how I could track this down?