Skip to content

Useless autocomplete suggestions with unresolved symbols #80348

Open
@NachoSoto

Description

@NachoSoto

Description

Image Image

Developers have been dealing with this for nearly 10 years, wasting countless hours.

Here are a couple of very simple examples showcasing how Xcode provides completely useless autocomplete suggestions when it's unable to resolve a symbol.

Reproduction

func f(_ b: Bool) {}
func g() {
  f(missing.x.)
}

or

func f(_ b: Bool) {}
func g() {
  f(missing.x == .)
}

Expected behavior

Autocomplete does not show anything

Environment

swift-driver version: 1.115.1 Apple Swift version 6.0.3 (swiftlang-6.0.3.1.10 clang-1600.0.30.1)
Target: arm64-apple-macosx15.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