You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Autocompletion via Sourcekit-lsp only works after you have built the project
Does it matter if I run it from a "Run Build Task" or manually from the console?
I still have problems with autocomplete not working for a larger, private project, but I'm not sure how I can provide more information to track down an issue.
You can run build either inside VSCode or via the command line. The index is built when you compile using either of these methods.
I've found sometimes sourcekit-lsp still fails (never been able to narrow down the reasons for this). Running the restart LSP server command after this normally fixes the issue.
Describe the bug
After fetching all dependencies, autocompletion doesn't work. Here are logs from the Output:
SourceKit Lanaguage Server:
Swift
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Autocomplete support works as expected
Environment
Additional context
n/a
The text was updated successfully, but these errors were encountered: