When I'm on swiftpm (tag: swift-DEVELOPMENT-SNAPSHOT-2018-11-01-a), the sourcekit-lsp doesn't build with error:
error: manifest parse error(s): swift-source/sourcekit-lsp/Package.swift:3:8: error: no such module 'PackageDescription'
turn out that Package.swift uses swift-tools-version:4.2
that apparently doesn't work with my custom build of swiftpm. It builds when I change it to swift-tools-version:4.0
I wonder what is going on with this. This is a swiftpm build with swift/utils/build-script --swiftpm --llbuild
so it uses custom swiftc too.
I also tried manually bootstrap swiftpm using Utilities/bootstrap --swiftc swift-source/build/Ninja-RelWithDebInfoAssert/swift-macosx-x86_64/bin/swiftc
and it still didn't accept swift-tools-version:4.0
While it may be a SwiftPM issue, I'd like to figure out how to make building the master sourcekit-lsp
using custom swift builds as smooth as possible.
Does anyone else experience that kind of issue as well?