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

Missing argument label 'value:' in call #1277

Open
OstrichRunning opened this issue Aug 27, 2024 · 7 comments
Open

Missing argument label 'value:' in call #1277

OstrichRunning opened this issue Aug 27, 2024 · 7 comments

Comments

@OstrichRunning
Copy link

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

*error:
image

@afarnham
Copy link

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.

@Sevyls
Copy link

Sevyls commented Sep 17, 2024

also happens in Xcode Release Version 16.0 (16A242d)

@robwilkens
Copy link

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.

@daviddelgadol
Copy link

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?

@ghostcrying
Copy link

ghostcrying commented Sep 27, 2024

@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;

fwcd added a commit to fwcd/swift-music-library that referenced this issue Oct 4, 2024
@zeeshanahmad1276
Copy link

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

@X-Reynold
Copy link

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

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

8 participants