SQLite.swift icon indicating copy to clipboard operation
SQLite.swift copied to clipboard

Missing argument label 'value:' in call

Open OstrichRunning opened this issue 1 year ago • 7 comments

  • macos: Version 15.0 Beta (24A5298h)
  • Xcode: Version 16.0 beta 6 (16A5230g)
  • SQLite.swift: 8d054987f02728cc912b0eb5a9659650573a65a2

*error: image

OstrichRunning avatar Aug 27 '24 17:08 OstrichRunning

There are some work arounds here: https://github.com/stephencelis/SQLite.swift/issues/1269

Of the ones listed, this is the one that works for me: typealias Expression = SQLite.Expression

I could not get import SQLite.Expression to work.

afarnham avatar Aug 27 '24 22:08 afarnham

also happens in Xcode Release Version 16.0 (16A242d)

Sevyls avatar Sep 17 '24 18:09 Sevyls

Changing "Expression("Field")" to "SQLite.Expression("Field")" seemed to work for me. It was a lot of effort and I have a relatively small project. I didn't do this, but i recommend maybe trying search and replace.

robwilkens avatar Sep 18 '24 17:09 robwilkens

There are some work arounds here: #1269

Of the ones listed, this is the one that works for me: typealias Expression = SQLite.Expression

I could not get import SQLite.Expression to work.

Thank you! but, do you know if after adding the typealias, the change won't affect someone working in the same project with Xcode 15 for example?

daviddelgadol avatar Sep 18 '24 22:09 daviddelgadol

@available(macOS 15, iOS 18, tvOS 18, watchOS 11, *)
public struct Expression<each Input, Output> : Sendable {

    public let expression: any StandardPredicateExpression<Output>

    public let variable: (repeat PredicateExpressions.Variable<each Input>)

    public init(_ builder: (repeat PredicateExpressions.Variable<each Input>) -> any StandardPredicateExpression<Output>)

    public func evaluate(_ input: repeat each Input) throws -> Output
}

this code is ios 18 new define, maybe conflict;

ghostcrying avatar Sep 27 '24 01:09 ghostcrying

Its just because compiler assume that its Swift.Expression not SQLite.Expression Solution: 1- Just change Expression to SQLite.Expression in code 2- Rename public struct expression in SQLite framework

zeeshanahmad1276 avatar Oct 09 '24 06:10 zeeshanahmad1276

There are some work arounds here: #1269

Of the ones listed, this is the one that works for me: typealias Expression = SQLite.Expression

I could not get import SQLite.Expression to work.

What looks like a namespace problem is completely solved by changing typealias SQLiteExpression = SQLite.Expression

X-Reynold avatar Oct 16 '24 06:10 X-Reynold