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

Sourcery crashes with swiftLanguageVersions: [.v6] or swiftLanguageMode: [.v6] in a Swift Package #1399

Open
iDylanK opened this issue Jan 16, 2025 · 0 comments

Comments

@iDylanK
Copy link

iDylanK commented Jan 16, 2025

Description:

Sourcery crashes (fatalError) when the following configuration is used in a Swift Package's Package.swift file:

swiftLanguageVersions: [.v6],
swiftLanguageMode: [.v6]

Steps to Reproduce

Create a Swift Package and set swiftLanguageVersions and swiftLanguageMode to .v6 in Package.swift.
Run Sourcery against the package.
Observe the crash.

Expected Behavior

Sourcery should handle Swift 6 language versions and modes without crashing.

Actual Behavior

Sourcery crashes immediately when analyzing the Swift package.

Environment

Sourcery version: [Specify version]
Swift version: 6.0 (or development snapshot)
Operating System: [macOS version]
Additional Context
[Include any relevant logs, crash reports, or configurations.]

@iDylanK iDylanK changed the title Sourcery crashes with swiftLanguageVersions: [.v6] and swiftLanguageMode: [.v6] in a Swift Package Sourcery crashes with swiftLanguageVersions: [.v6] or swiftLanguageMode: [.v6] in a Swift Package Jan 16, 2025
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