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-9953] Code completion breaks completely in this scenario #52356

Closed
jeremyabannister opened this issue Feb 19, 2019 · 4 comments
Closed

[SR-9953] Code completion breaks completely in this scenario #52356

jeremyabannister opened this issue Feb 19, 2019 · 4 comments
Assignees
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. code completion Area → source tooling: code completion source tooling Area: IDE support, SourceKit, and other source tooling

Comments

@jeremyabannister
Copy link

Previous ID SR-9953
Radar None
Original Reporter @jeremyabannister
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s CodeCompletion
Labels Bug
Assignee @DougGregor
Priority Medium

md5: df237f4d45c912038bd5e7343d941b3c

Issue Description:

struct GenericThing <Param1, Param2> {
    init (closure: (String)->()) {
        
    }
}

struct ThingHolder <Param1> {
    func acceptThing <Param2> (thingGenerator: ()->GenericThing<Param1, Param2>) {

    }
}

struct A { }

func demo <Param1> (thingHolder: ThingHolder<Param1>) {
    thingHolder.acceptThing {
        GenericThing<Param1, A> { string in
            // Delete this line and type `string.` and observe that the only option you get is "self" - all other code completion options are gone.
        }
    }
}

This is in Xcode Version 10.2 beta (10P82s)

@belkadan
Copy link
Contributor

cc @benlangmuir. Possibly related to SR-9954.

@benlangmuir
Copy link
Member

@rintaro I think you were looking at cases like this.

@jeremyabannister
Copy link
Author

Perhaps this is already known/assumed, but just commenting to say this is not fixed in Xcode Version 10.2.1 (10E1001), although some other autocomplete fixes seem to have been included.

@DougGregor
Copy link
Member

Fix is in #25410

@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 source tooling Area: IDE support, SourceKit, and other source tooling
Projects
None yet
Development

No branches or pull requests

5 participants