-
Notifications
You must be signed in to change notification settings - Fork 322
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Swift version
swift-DEVELOPMENT-SNAPSHOT-2025-11-25-a, swift-DEVELOPMENT-SNAPSHOT-2025-11-26-a
Platform
macOS 26.1
Editor
Visual Studio Code 1.106.2 with Swift extension, Vim 9.1 with vim-lsp
Description
Sourcekit-LSP has enabled backgroundIndexing by default on the main branch lately. However, since then, code completion has been broken.
Steps to Reproduce
Steps:
- Clone https://github.com/kkebo/embedded-lsp-mre
- Run
cd embedded-lsp-mre - Run
swiftly install - Open the current directory with VS Code or Vim
- Open
Sources/Foo/Foo.swift
Expected behavior:
No errors are displayed on a editor.
Actual behavior:
The "No such module 'Bar'" error is displayed at import Bar.
However, it can be built with swift build -c release --triple aarch64-none-none-elf --toolset toolset.json successfully.
In addition, if you add "backgroundIndexing": false to .sourcekit-lsp/config.json, the error disappears and it works fine just like it did before.
Logging
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working