-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[SourceKit] Support building sourcekitd without building swift-syntax #70174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SourceKit] Support building sourcekitd without building swift-syntax #70174
Conversation
They would all need a What we probably need to do here is to have |
@finagolfin Do you use sourcekitd and Swift tools on Android? If not, you could try setting |
Yes, it appears they are normally run on the community Android CI, which I don't control but help monitor.
Yes, I do. In fact, I even distribute sourcekit-lsp natively on Android, and have used it with an LSP-capable editor in the Termux terminal app for Android. In any case, this issue has nothing to do with Android, but is about making the build and tests work with Would it be too much work to still support building without a host Swift compiler after this issue? @drodriguez, maybe installing a host Swift compiler on the community Android CI would be best? I don't know the best way forward here, just pointing out the problem of #70008 breaking the build on all platforms without a host Swift compiler. |
I do not have time to work on those machines that much. I cannot also give anyone access to the machines because my company policies. Anyone is free to donate other machines that they control and can be added to the Community CI. Those machines are there as a favor, but I cannot invest that much time in them |
OK, I’ll update the build so that swift-refactor and sourcekitd can build without |
cf390a9
to
675cc86
Compare
swift-refactor
if swift-syntax is not being built
Updated the PR so that sourcekitd and swift-refactor should build fine with |
@swift-ci Please smoke test |
675cc86
to
74141ca
Compare
@swift-ci Please smoke test |
74141ca
to
607fbf5
Compare
This allows building sourcekitd and swift-refactor with `SWIFT_BUILD_SWIFT_SYNTAX=NO`. In these builds, the `relatedidents` and `find-syntactic-rename-ranges` requests will always return an error.
607fbf5
to
a710111
Compare
@swift-ci Please smoke test |
Thanks, this fixed that issue, but now it is complaining about |
…TAX` is set swiftlang#70174 change swift-refactor and sourcekitd to not use `NameMatcher` from swift-syntax but it did not remove the link dependency from swiftRefactoring on `swiftIDEUtilsBridging` if `SWIFT_BUILD_SWIFT_SYNTAX` is false. Do so now.
Let’s see if this fixes it: #70269 |
…TAX` is set swiftlang#70174 change swift-refactor and sourcekitd to not use `NameMatcher` from swift-syntax but it did not remove the link dependency from swiftRefactoring on `swiftIDEUtilsBridging` if `SWIFT_BUILD_SWIFT_SYNTAX` is false. Do so now.
This allows building sourcekitd and swift-refactor with
SWIFT_BUILD_SWIFT_SYNTAX=NO
. In these builds, therelatedidents
andfind-syntactic-rename-ranges
requests will always return an error.