Skip to content

Declare vars nonisolated to solve compiler warning #7954

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

valeriyvan
Copy link
Contributor

No description provided.

@valeriyvan valeriyvan changed the title Declare vars nonisolated to solve compiler waning Declare vars nonisolated to solve compiler warning Sep 11, 2024
@xedin
Copy link
Contributor

xedin commented Sep 11, 2024

@swift-ci please test

@plemarquand
Copy link
Contributor

@swift-ci please test macOS

@MaxDesiatov
Copy link
Contributor

Xcode/Swift installed on macOS CI nodes is too old to support this, so either it has to be conditional on the compiler version or wait (uncertain amount of time) until those nodes are updated.

@xedin
Copy link
Contributor

xedin commented Sep 12, 2024

😢

@dschaefer2
Copy link
Member

I've been wondering if we need to take a step back with all these concurrency warnings and just make everything Swift 6. It certainly would be a ton of work but would be a good showcase for it.

@xedin
Copy link
Contributor

xedin commented Sep 12, 2024

This is how we recommend to approach migration to Swift 6 - deal with warnings provided in Swift 5 mode after that strict concurrency (-strict-concurrency=complete) could be enabled and finally once that works as expected - enable Swift 6.

@dschaefer2
Copy link
Member

I'm just looking for when we should start adopting actors and Sendable and make more things value types and all that. We had that in a previous project I worked on. Stepping into SwiftPM feels like going back in time :).

@MaxDesiatov
Copy link
Contributor

The main blocker is macOS CI, which is still on 5.9. Given that we need to make sure the toolchain can be bootstrapped from previous versions of Swift, we'll have to support 5.10 for quite some time.

@valeriyvan
Copy link
Contributor Author

valeriyvan commented Sep 15, 2024

Xcode/Swift installed on macOS CI nodes is too old to support this, so either it has to be conditional on the compiler version or wait (uncertain amount of time) until those nodes are updated.

I would leave this PR waiting until CI gets upgraded or Cancellator.swift is refactored using new concurrency.

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

Successfully merging this pull request may close these issues.

5 participants