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

[BSP] Report compilation's completion percentage #4064

Merged

Conversation

lolgab
Copy link
Member

@lolgab lolgab commented Dec 2, 2024

Fixes #2816

after.mov

Pull Request: #4064

@lolgab lolgab marked this pull request as ready for review December 2, 2024 20:53
@lolgab lolgab requested review from lihaoyi, lefou and ckipp01 December 2, 2024 20:58
Copy link
Member

@lefou lefou left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@@ -14,6 +14,7 @@ trait CompileProblemReporter {
def fileVisited(file: os.Path): Unit
def printSummary(): Unit
def finish(): Unit
def notifyProgress(percentage: Long, total: Long): Unit
Copy link
Member

Choose a reason for hiding this comment

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

I'm surprised this is binary compatible. I would have expected that we need to provide a default impl.

Copy link
Member Author

Choose a reason for hiding this comment

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

It wasn't. I added it a default impl in the last commit. Please review again.

@lolgab lolgab requested a review from lefou December 2, 2024 23:10
@lolgab lolgab merged commit 029317d into com-lihaoyi:main Dec 3, 2024
27 checks passed
@lolgab lolgab deleted the bsp-report-compilation-completion-percentage branch December 3, 2024 08:33
@lolgab lolgab added this to the 0.12.4 milestone Dec 3, 2024
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.

[BSP] Report completion percentage during compilation
3 participants