Skip to content
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

report sbt's build progress #5788

Merged
merged 1 commit into from
Oct 26, 2023

Conversation

bishabosha
Copy link
Contributor

build progress from sbt is not being reported. Its notification has a "compile-progress" datakind field, but is formatted the same as "bloop-progress" except for one thing, the "current" field is actually the percentage, so we use 100 for the total.

build progress from sbt BSP is now reported. Its notification has a
"compile-progress" datakind field, which is formatted the same as
"bloop-progress" except for one thing, the "current" field is actually
the percentage, so we use 100 for the total.
@bishabosha
Copy link
Contributor Author

cc @adpi2

I couldn't find a test suite to replicate, but publishing locally had good results. (try compiling scaladex)

@bishabosha
Copy link
Contributor Author

bishabosha commented Oct 26, 2023

also discussed with @adpi2 that perhaps instead of accepting this, we change sbt's output to match "bloop-progress", and rename the dataKind field to "scala-compile-progress", then the change in this PR would only need to be case "bloop-progress" | "scala-compile-progress" => ...

we could also standardise this format in the bsp spec

Copy link
Contributor

@tgodzik tgodzik left a comment

Choose a reason for hiding this comment

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

Thanks @bishabosha !

@tgodzik tgodzik merged commit b7ebc29 into scalameta:main Oct 26, 2023
@bishabosha bishabosha deleted the report-sbt-bsp-compile-progress branch October 26, 2023 14:30
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.

3 participants