Skip to content

Fix to close the compiler object in scalacinvoker #1545

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

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

crt-31
Copy link
Contributor

@crt-31 crt-31 commented Feb 12, 2024

Description

This fixes functionality that was accidently broken in PR #1529 (my bad).

The fix is to call close on the compiler within the scalaCWorker (originally added in PR #1504)

This fixes functionality that was accidently broken in PR#1529
Copy link
Collaborator

@simuons simuons left a comment

Choose a reason for hiding this comment

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

Please fix code formatting. Also wondering maybe same changes needs to be done in ScalacInvoker3?

@crt-31
Copy link
Contributor Author

crt-31 commented Feb 17, 2024

@simuons

Please fix code formatting.

Done

Also wondering maybe same changes needs to be done in ScalacInvoker3?

I looked at dotty's sourcecode, and they don't have a close() mechanism like Scala2 does yet. There is a PR written up for it scala/scala3#5412.

Suggest we push this PR through, and deal with Scala3 when dotty implements that PR.

@simuons simuons merged commit aab9017 into bazel-contrib:master Feb 19, 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.

3 participants