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

[SR-14889] Code completion not returning results because nested result builder is too complex #57236

Closed
ahoppen opened this issue Jul 7, 2021 · 1 comment
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion found by stress tester Flag: An issue found by the SourceKit stress tester source tooling Area: IDE support, SourceKit, and other source tooling

Comments

@ahoppen
Copy link
Contributor

ahoppen commented Jul 7, 2021

Previous ID SR-14889
Radar rdar://80271497
Original Reporter @ahoppen
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s CodeCompletion
Labels Bug, FoundByStressTester
Assignee @ahoppen
Priority Medium

md5: a6a2da3decd8563c8b275ee0cffefcac

Issue Description:

In the following test case, no results are returned because the Text concatenation is to complex to be solved (can be seen by adding additional logging if ConstraintSystem::getExpressionTooComplex(SmallVectorImpl<Solution> const &solutions) returns true).

// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE

import SwiftUI

struct TodayTurnipSection: View {
    var body: some View {
        HStack {
            Text("Today's average price should be around ")
                + Text("abc")
                + Text(" in the morning, and ")
                + Text("abc")
                + Text(" this afternoon.")
        }
        .padding(.#^COMPLETE^#)
    }
}
@ahoppen
Copy link
Contributor Author

ahoppen commented Mar 17, 2022

Fixed by #41846

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AnthonyLatsis AnthonyLatsis added the source tooling Area: IDE support, SourceKit, and other source tooling label Feb 6, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion found by stress tester Flag: An issue found by the SourceKit stress tester source tooling Area: IDE support, SourceKit, and other source tooling
Projects
None yet
Development

No branches or pull requests

2 participants