Skip to content

Rename build system to build server in most cases #2201

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jul 14, 2025

The term build system predated our wide-spread adoption of BSP for communicating between SourceKit-LSP to the build system and was never really the correct term anyway – ie. a JSONCompilationDatabaseBuildSystem never really sounded right. We now have a correct term for the communication layer between SourceKit-LSP: A build server. Rename most occurrences of build system to build server to reflect this. There are unfortunately a couple lingering instances of build system that we can’t change, most notably: fallbackBuildSystem in the config file, the workspace/waitForBuildSystemUpdates BSP extension request and the synchronize-for-build-system-updates experimental feature.

@ahoppen
Copy link
Member Author

ahoppen commented Jul 14, 2025

@swift-ci Please test

The term *build system* predated our wide-spread adoption of BSP for communicating between SourceKit-LSP to the build system and was never really the correct term anyway – ie. a `JSONCompilationDatabaseBuildSystem` never really sounded right. We now have a correct term for the communication layer between SourceKit-LSP: A build server. Rename most occurrences of *build system* to *build server* to reflect this. There are unfortunately a couple lingering instances of *build system* that we can’t change, most notably: `fallbackBuildSystem` in the config file, the `workspace/waitForBuildSystemUpdates` BSP extension request and the `synchronize-for-build-system-updates` experimental feature.
@ahoppen ahoppen force-pushed the build-server-rename branch from 2320a9b to 38bbd8d Compare July 14, 2025 08:27
@ahoppen
Copy link
Member Author

ahoppen commented Jul 14, 2025

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Jul 14, 2025

@swift-ci Please test Windows

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would you feel about waiting until ~August for this change to reduce churn between main and 6.2?

Comment on lines +22 to +23
/// The details necessary to create a `BuildServerAdapter`.
package struct BuildServerSpec {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is a little weird given buildServer is one of the options 😅

self.kind = kind
self.projectRoot = projectRoot
self.configPath = configPath
}
}

/// A type that outwardly acts as a BSP build server and internally uses a `BuiltInBuildSystem` to satisfy the requests.
actor BuiltInBuildSystemAdapter: QueueBasedMessageHandler {
/// A type that outwardly acts as a BSP build server and internally uses a `BuiltInBuildServer` to satisfy the requests.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like BuiltInBuildServer really is still BuiltInBuildSystem right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants