Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swift 6 #366

Open
bukira opened this issue Sep 19, 2024 · 3 comments
Open

swift 6 #366

bukira opened this issue Sep 19, 2024 · 3 comments

Comments

@bukira
Copy link

bukira commented Sep 19, 2024

is swfithmocky compatible with swift 6?

❌ Error: ShellOut encountered an error
Status code: 1
Message: "🌱 Encountered error during "swift build -c release --product sourcery -Xswiftc -target -Xswiftc arm64-apple-macosx14.6". Use --verbose to see full output
🌱 Failed to build Sourcery 1.8.0 with SPM"
Output: "🌱 Cloning Sourcery 1.8.0
🌱 Resolving package
🌱 Building product sourcery
Building for production...
[0/31] Write sources
[4/31] Copying lib_InternalSwiftSyntaxParser.dylib
[4/31] Write sources
[8/31] Copying ejs.js
[8/31] Write sources
[8/31] Copying lib_InternalSwiftSyntaxParser.framework
[8/31] Write sources
[20/31] Write swift-version--58304C5D6DBC2206.txt
[21/33] Compiling atomic-counter.c
[22/34] Compiling writer.c
[23/34] Compiling reader.c
[24/34] Compiling api.c
[25/34] Compiling parser.c
[26/36] Compiling emitter.c
[27/36] Compiling scanner.c
[28/37] Compiling TryCatch TryCatch.m
[30/37] Compiling AEXML Document.swift
[31/37] Compiling PathKit PathKit.swift
[32/41] Compiling SourceryJS EJSTemplate.swift
[33/41] Compiling SourceryUtils Path+Extensions.swift
[34/41] Compiling Stencil Context.swift
[35/41] Compiling Yams Constructor.swift
[36/42] Compiling Commander ArgumentConvertible.swift
[37/42] Compiling StencilSwiftKit CallMacroNodes.swift
[38/42] Compiling SourceryRuntime AccessLevel.swift
/private/var/folders/ww/hwd5bq0s6cddnvr08x3jdspr0000gn/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Array+Parallel.swift:21:17: warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a @Sendable closure; this is an error in the Swift 6 language mode
19 | return result.withUnsafeMutableBufferPointer { buffer in
20 | DispatchQueue.concurrentPerform(iterations: buffer.count) { idx in
21 | buffer[idx] = transform(self[idx])
| - warning: capture of 'buffer' with non-sendable type 'UnsafeMutableBufferPointer<T?>' in a @Sendable` closure; this is an error in the Swift 6 language mode
22 | }
23 | return buffer.map { $0! }

Swift.UnsafeMutableBufferPointer:1:23: note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
1 | @Frozen public struct UnsafeMutableBufferPointer : Copyable where Element : ~Copyable {
| `- note: generic struct 'UnsafeMutableBufferPointer' does not conform to the 'Sendable' protocol
2 | public let count: Int
3 | @inlinable public init(start: UnsafeMutablePointer?, count: Int)

/private/var/folders/ww/hwd5bq0s6cddnvr08x3jdspr0000gn/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Composer.swift:340:13: warning: initialization of immutable value 'modules' was never used; consider replacing with assignment to '' or removing it
338 |
339 | let unique = state.typeMap
340 | let modules = state.modules
| `- warning: initialization of immutable value 'modules' was never used; consider replacing with assignment to '
' or removing it
341 | let typealiases = state.resolvedTypealiases
342 |

/private/var/folders/ww/hwd5bq0s6cddnvr08x3jdspr0000gn/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Composer.swift:341:13: warning: initialization of immutable value 'typealiases' was never used; consider replacing with assignment to '' or removing it
339 | let unique = state.typeMap
340 | let modules = state.modules
341 | let typealiases = state.resolvedTypealiases
| `- warning: initialization of immutable value 'typealiases' was never used; consider replacing with assignment to '
' or removing it
342 |
343 | if let name = typeName.actualTypeName {

/private/var/folders/ww/hwd5bq0s6cddnvr08x3jdspr0000gn/T/mint/github.com_krzysztofzablocki_Sourcery/SourceryRuntime/Sources/Log.swift:60:1: warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
58 | }
59 |
60 | extension String: Error {}
| |- warning: extension declares a conformance of imported type 'String' to imported protocol 'Error'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
61 |

@bukira
Copy link
Author

bukira commented Sep 19, 2024

use the master branch and also sourcery in a new release please

@bukira
Copy link
Author

bukira commented Sep 24, 2024

swiftymocky doesnt appear to work with swift 6, either swiftmocky or sourcery, this repo hasn't had a new release since 2022? is this repo still supported?

@bukira
Copy link
Author

bukira commented Sep 25, 2024

is this library dead? does anybody bother with it anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant