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

Use coursier thread pool to run coursier-related task #3614

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

alexarchambault
Copy link
Contributor

@alexarchambault alexarchambault commented Sep 27, 2024

Using the default global ExecutionContext, also used by the BSP server, can lead to deadlocks, as coursier doesn't mark blocking things with blocking. (It deadlocks locally for me, during Mill import via BSP in IntelliJ, with 4 threads being spawned and awaiting in the default ExecutionContext.)

@alexarchambault
Copy link
Contributor Author

(Never use the global ExecutionContext… 😬)

Using the default global ExecutionContext, also used by the BSP server,
can lead to deadlocks, as coursier doesn't mark blocking things with
`blocking`.
@lihaoyi lihaoyi merged commit 0e50ff7 into com-lihaoyi:main Sep 27, 2024
24 checks passed
@alexarchambault alexarchambault deleted the fix-bsp-deadlock branch September 27, 2024 10:43
@lefou lefou added this to the 0.12.0-RC3 milestone Sep 27, 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