Skip to content

Autocomplete does not work for values that depend on result builder inference #72399

Closed
@stephencelis

Description

@stephencelis

Description

Autocomplete is completely broken for values that depend on a result builder and type inference.

Reproduction

  1. Clone https://github.com/pointfreeco/swift-composable-architecture
  2. Check out tag 1.9.2 (we may be working around the issue in more recent versions due to this bug)
  3. Open ComposableArchitecture.xcworkspace (Xcode 15.3)
  4. Select the Todos target
  5. Open TodosTests.swift
  6. From any test, try to autocomplete from store. (e.g. store.send), which is a value that depends on a TestStore.init that uses a result builder

This can be reproduced outside of tests, too. After the first 3 steps above:

  1. Select the SyncUps target
  2. Open the App.swift file in the SyncUps project (or search for "struct SyncUpsApp")
  3. Try to autocomplete from store. (e.g. store.send), which is a value that depends on a Store.init that uses a result builder.

Expected behavior

Autocomplete should work.

Environment

swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
Target: arm64-apple-macosx14.0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.code completionArea → source tooling: code completion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions