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

Pass Mill source JARs to Bloop #4608

Draft
wants to merge 8 commits into
base: 0.12.x
Choose a base branch
from

Conversation

alexarchambault
Copy link
Collaborator

The goal of this PR is to pass source JARs corresponding to the Mill class path to Bloop. These are added in the root modules, where they're needed to get go-to-source to work for Mill build files.

@alexarchambault alexarchambault changed the title Bloop import mill source jars Pass Mill source JARs to Bloop Feb 21, 2025
@alexarchambault
Copy link
Collaborator Author

The Mill BSP server already adds those to the root modules. But using Bloop is handy sometimes. And if I'm not mistaken, I think using Bloop rather than BSP is still the default in Metals.

@alexarchambault
Copy link
Collaborator Author

alexarchambault commented Feb 21, 2025

Note that this fixes things for me… when I use my own local fork of Metals, not with Metals mainline. With mainline Metals, on a simple project, Bloop import is slightly better (hover works, not go-to-source). With BSP import, neither hover nor go-to-source work.

That's with Mill 0.12.x at least (got to try with main, maybe the switch to Scala 3 helps).

That's all on .sc files, not on newer .mill ones.

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.

1 participant