-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-54851][BUILD] Support generating bloop files via sbt #53621
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
Conversation
There was a problem hiding this 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>
|
May I know this change is for sbt running in shell or in IDE extensions |
|
It's for cursor/vscode to import Spark using bloop. |
|
thanks for review, merging to master/4.1! (sbt build is dev only, not affect production code) |
### 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>
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