Skip to content

Autocomplete not working since commit 94ff8f0 #1669

@MihaelIsaev

Description

@MihaelIsaev

Describe the bug
Autocomplete has stopped working since commit 94ff8f0. SourceKit-LSP doesn't seem to start, and indexing doesn't occur.

To Reproduce
Steps to reproduce the issue:

  1. Clone the vscode-swift repository
  2. Open it in VSCode and reopen it in the provided DevContainer
  3. Checkout the last working commit: git checkout 4d3313e (just before 94ff8f0)
  4. Start debugging the extension (Cmd+R in my case, might be F5 for others)
  5. Create a new Swift package project, e.g., swift-library, in the same directory and open it in the same window
  6. Observe that the status bar shows Indexing 0/2, and autocomplete works as expected in Package.swift
  7. Close the project window
  8. Switch to the problematic commit: git checkout 94ff8f0
  9. Launch the extension again via the debugger
  10. The previously created project opens, but neither indexing starts nor does autocomplete work in Package.swift
  11. Switch back to the previous commit using git checkout 4d3313e and confirm that everything works as expected again.
  12. Check the following tags to confirm the issue persists across multiple versions:
  • 2.4.0: git checkout 9a65f7a
  • 2.6.0: git checkout 269d6f2
  • 2.6.1: git checkout 942cf09
  • latest commit: git checkout da07bbd
    Unfortunately, the issue appears to remain unresolved in all of these.
  1. Switch back to the previous working commit using git checkout 4d3313e and confirm that everything functions as expected again.

Expected behavior
Autocomplete and indexing should continue to work without requiring additional setup when updating between minor versions.

Environment

  • Docker DevContainer provided by the extension
  • Swift versions tested: 6.0, 6.1, and 6.2-dev (from the DevContainer)
  • Visual Studio Code version: 1.101.0
  • vscode-swift version: not applicable (built from sources)

Additional context
Everything works fine on version 2.2.0. The issue starts with any newer 2.x version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions