Build swift-format

Any ideas why I'm getting the following error when trying to build swift-format? I tried building SwiftSyntax on its own, next to the compiler repo, with the build-script.py script and I got the same error:

swift-format-master/.build/checkouts/swift-syntax/Sources/SwiftSyntax/SyntaxParser.swift:17:8: error: no such module '_InternalSwiftSyntaxParser'

How were you trying to build it before? If you have Xcode 11 beta 4, you should be able to do a regular git clone and swift build of the project.

I haven't tried building it with a custom toolchain yet, but the error you're seeing looks like the parser's modulemap isn't on your search path—in a standard toolchain there would be a C header and module map located in $TOOLCHAIN/usr/lib/swift/_InternalSwiftSyntaxParser/. Is that getting built?

Works fine now, I don't know what I did wrong. Thanks!