-
Notifications
You must be signed in to change notification settings - Fork 80
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
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:
- Clone the vscode-swift repository
- Open it in VSCode and reopen it in the provided DevContainer
- Checkout the last working commit:
git checkout 4d3313e
(just before 94ff8f0) - Start debugging the extension (
Cmd+R
in my case, might beF5
for others) - Create a new Swift package project, e.g.,
swift-library
, in the same directory and open it in the same window - Observe that the status bar shows
Indexing 0/2
, and autocomplete works as expected inPackage.swift
- Close the project window
- Switch to the problematic commit:
git checkout 94ff8f0
- Launch the extension again via the debugger
- The previously created project opens, but neither indexing starts nor does autocomplete work in
Package.swift
- Switch back to the previous commit using
git checkout 4d3313e
and confirm that everything works as expected again. - 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.
- 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
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Done