No such module 'PackageDescription' sourcekitd

I'am testing SourceKit-LSP in vscode & linux and I am failing to make it work properly.
It doesn't seem to recognize some of modules, for example: it recognizes Foundation but not PackageDescriotion.

I have tried with multiple builds of Swift with no positive results.

Would you mind filing a bug on bugs.swift.org, component "SourceKit-LSP" with some details about what version of sourcekit-lsp you're using and what exactly you're trying? For example, does this reproduce the error?

cd /tmp
mkdir pkg
swift package init
code .
# Open Package.swift in VSCode; are there errors?

Thank you Ben!
That was the issue, workspace was my home folder

Terms of Service

Privacy Policy

Cookie Policy