Skip to content

Conversation

@cloud-fan
Copy link
Contributor

@cloud-fan cloud-fan commented Dec 26, 2025

What changes were proposed in this pull request?

Some IDEs such as cursor/VSCode works better with bloop as the build server. This PR supports generating the bloop config files via sbt.

Why are the changes needed?

better IDE support

Does this PR introduce any user-facing change?

no, dev only

How was this patch tested?

manual test

Was this patch authored or co-authored using generative AI tooling?

cursor 2.2.43

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds support for generating Bloop configuration files via sbt to improve IDE integration for tools like Cursor and VSCode. The changes enable developers to use Bloop as a build server for better IDE support.

Key Changes:

  • Added sbt-bloop plugin dependency (version 2.0.17)
  • Extended ExcludeShims object to filter Bloop's internal classpath, ensuring connect-shims modules are excluded consistently with the existing classpath filtering

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
project/plugins.sbt Adds the sbt-bloop plugin dependency for generating Bloop configuration files
project/SparkBuild.scala Implements Bloop classpath filtering logic in the ExcludeShims object to maintain consistency with existing classpath exclusions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@yaooqinn
Copy link
Member

May I know this change is for sbt running in shell or in IDE extensions

@cloud-fan
Copy link
Contributor Author

It's for cursor/vscode to import Spark using bloop.

@cloud-fan
Copy link
Contributor Author

thanks for review, merging to master/4.1! (sbt build is dev only, not affect production code)

@cloud-fan cloud-fan closed this in eec092c Dec 27, 2025
cloud-fan added a commit that referenced this pull request Dec 27, 2025
### What changes were proposed in this pull request?

Some IDEs such as cursor/VSCode works better with bloop as the build server. This PR supports generating the bloop config files via sbt.

### Why are the changes needed?

better IDE support

### Does this PR introduce _any_ user-facing change?

no, dev only

### How was this patch tested?

manual test

### Was this patch authored or co-authored using generative AI tooling?

cursor 2.2.43

Closes #53621 from cloud-fan/bloop.

Lead-authored-by: Wenchen Fan <wenchen@databricks.com>
Co-authored-by: Wenchen Fan <cloud0fan@gmail.com>
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
(cherry picked from commit eec092c)
Signed-off-by: Wenchen Fan <wenchen@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants