Support for Swift 5.9

Hello Sonar Community.
I want to use the new language features in swift 5.9 like macros & if switch expressions (https://github.com/apple/swift-evolution/blob/main/proposals/0380-if-switch-expressions.md) and still continue using sonar.
Currently only swift 5.7 is supported by sonar and therefore i got issues as new keywords could not be parsed.

##[error]ERROR: String is not parsed (file Sources/TestMacros/TestMacros.swift, line 4)
1: import Foundation
2: 
3: @freestanding(expression)
4: public macro generateFoo(fooString value: String) -> (foo) = #externalMacro(module: "FooMacros", type: "FooMacro")
         ^

Is there a timeline when swift 5.9 will be supported?
Thank you in advance.

2 Likes

Hello,

Thanks for the heads-up. Unfortunately, I have no precise timeline to share, but we will definitely update you when it is available.

Regards
Alex

2 Likes

i saw here Languages overview | SonarCloud Documentation
that swift 5.9 is now listed as supported (not as fully supported). I will try it in the next days :slight_smile:

1 Like