-
-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
swift package pdc
error: plugin compilation failed: <PluginCompilationResult(
succeeded: false,
commandLine: C:\Users\tylerjaacks\AppData\Local\Programs\Swift\Toolchains\5.10.1+Asserts\usr\bin\swiftc.exe -L C:\Users\tylerjaacks\AppData\Local\Programs\Swift\Toolchains\5.10.1+Asserts\usr\lib\swift\pm\PluginAPI -lPackagePlugin -sdk C:\Users\tylerjaacks\AppData\Local\Programs\Swift\Platforms\5.10.1\Windows.platform\Developer\SDKs\Windows.sdk -libc MD -I C:\Users\tylerjaacks\AppData\Local\Programs\Swift\Platforms\5.10.1\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows -I C:\Users\tylerjaacks\AppData\Local\Programs\Swift\Platforms\5.10.1\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -L C:\Users\tylerjaacks\AppData\Local\Programs\Swift\Platforms\5.10.1\Windows.platform\Developer\Library\XCTest-development\usr\lib\swift\windows\x86_64 -use-ld=lld -g -swift-version 5 -package-description-version 5.10.0 -I C:\Users\tylerjaacks\AppData\Local\Programs\Swift\Toolchains\5.10.1+Asserts\usr\lib\swift\pm\PluginAPI -parse-as-library -Xfrontend -serialize-diagnostics-path -Xfrontend D:\Desktop\PlaydateKitTemplate\.build\plugins\PDCPlugin\cache\PDCPlugin.dia D:\Desktop\PlaydateKitTemplate\.build\checkouts\PlaydateKit\Plugins\PDCPlugin\PDCPlugin.swift -o D:\Desktop\PlaydateKitTemplate\.build\plugins\PDCPlugin\cache\PDCPlugin.exe,
executable: D:\Desktop\PlaydateKitTemplate\.build\plugins\PDCPlugin\cache\PDCPlugin.exe
diagnostics: D:\Desktop\PlaydateKitTemplate\.build\plugins\PDCPlugin\cache\PDCPlugin.dia
compilerOutput: "error: fatalError
error: emit-module command failed with exit code 1 (use -v to see invocation)
D:\Desktop\PlaydateKitTemplate\.build\checkouts\PlaydateKit\Plugins\PDCPlugin\PDCPlugin.swift:41:64: error: cannot call value of non-function type 'String'
let home = FileManager.default.homeDirectoryForCurrentUser.path()
^ ~~
D:\Desktop\PlaydateKitTemplate\.build\checkouts\PlaydateKit\Plugins\PDCPlugin\PDCPlugin.swift:317:52: error: no exact matches in call to initializer
let data = try? Data(contentsOf: URL(filePath: ""\(home)\(toolchainPath)/Info.plist"")),
^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
public init(fileURLWithPath path: String)
^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
public init(fileReferenceLiteralResourceName name: String)
^
D:\Desktop\PlaydateKitTemplate\.build\checkouts\PlaydateKit\Plugins\PDCPlugin\PDCPlugin.swift:321:52: error: no exact matches in call to initializer
let data = try? Data(contentsOf: URL(filePath: ""/\(toolchainPath)/Info.plist"")),
^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
public init(fileURLWithPath path: String)
^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
public init(fileReferenceLiteralResourceName name: String)
^
"
)>
Metadata
Metadata
Assignees
Labels
No labels