Skip to content

SourceKit Language Server emits errors, autocomplete doesn't work #561

Closed
@p-lenart

Description

@p-lenart

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:

  1. mkdir SwiftDemo
  2. cd SwiftDemo
  3. swift package init --name SwiftDemo
  4. Open project in VSCode
  5. Add some code to test autocompletion
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindowsIssue specific to Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions