Closed
Description
Describe the bug
After fetching all dependencies, autocompletion doesn't work. Here are logs from the Output:
SourceKit Lanaguage Server:
D:\SwiftDemo\Package.swift:4:8: error: no such module 'PackageDescription'
import PackageDescription
^
D:\SwiftDemo\Package.swift:4:8: error: no such module 'PackageDescription'
import PackageDescription
^
Swift
12:31:47: SourceKit-LSP setup
12:31:47: compnerd.org Swift version 5.9-dev (LLVM 4a3b38183d7bb09, Swift 44a40979e52be8e)
12:31:48: SwiftDemo: add: d:\SwiftDemo
12:31:48: SwiftDemo: Resolving Dependencies ... done.
12:31:50: SwiftDemo: focus: d:\SwiftDemo
12:31:51: SwiftDemo: Test Discovery Failed: error: The operation could not be completed. The file doesn’t exist.
To Reproduce
Steps to reproduce the behavior:
- mkdir SwiftDemo
- cd SwiftDemo
- swift package init --name SwiftDemo
- Open project in VSCode
- Add some code to test autocompletion
- Autocomplete functionality doesn't work
Expected behavior
Autocomplete support works as expected
Environment
- OS: Windows 11
- Swift version Swift version 5.9-dev (LLVM 4a3b38183d7bb09, Swift 44a40979e52be8e) (downloaded from here )
- Visual Studio Code version: 1.79.2 695af097c7bd098fbf017ce3ac85e09bbc5dda06 x64
- vscode-swift version: v1.3.0
Additional context
n/a