8000 Rework millEmbeddedDeps stuff by alexarchambault · Pull Request #4546 · com-lihaoyi/mill · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rework millEmbeddedDeps stuff #4546

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 5 commits into from
Feb 18, 2025
Merged

Conversation

alexarchambault
Copy link
Collaborator
@alexarchambault alexarchambault commented Feb 12, 2025

This fixes an issue with GenIdea stuff that's been around since #4499 (that uncommented suggested code from #4145 to address some deprecations).

IIUC, in RootModule#bindDependency, Mill excludes all of its dependencies, so that these are not pulled by plugins. The PR here excludes not only Mill dependencies, but also the Mill modules themselves (anything that the dist.dist0 module depends on, itself included).

Also, GenIdea tries to pull the class path of Mill itself, to pass it to IntelliJ. This class path is now pulled via com.lihaoyi:mill-dist-dist0, that should pull the whole class path of Mill.

Fixes #4532

@alexarchambault alexarchambault marked this pull request as ready for review February 17, 2025 21:21
@lihaoyi lihaoyi merged commit e35ad41 into com-lihaoyi:main Feb 18, 2025
40 checks passed
@lihaoyi
Copy link
Member
lihaoyi commented Feb 18, 2025

Thanks Alex!

@alexarchambault alexarchambault deleted the fix-idea-issue branch February 18, 2025 10:44
alexarchambault added a commit to alexarchambault/mill that referenced this pull request Feb 18, 2025
This fixes an issue with GenIdea stuff that's been around since
com-lihaoyi#4499 (that uncommented
suggested code from com-lihaoyi#4145 to address some deprecations).

IIUC, in `RootModule#bindDependency`, Mill excludes all of its
dependencies, so that these are not pulled by plugins. The PR here
excludes not only Mill dependencies, but also the Mill modules
themselves (anything that the `dist.dist0` module depends on, itself
included).

Also, GenIdea tries to pull the class path of Mill itself, to pass it to
IntelliJ. This class path is now pulled via
`com.lihaoyi:mill-dist-dist0`, that should pull the whole class path of
Mill.

Fixes com-lihaoyi#4532

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

 Conflicts:
	ci/mill-bootstrap.patch
	main/package.mill
	runner/src/mill/runner/MillBuildRootModule.scala
	scalalib/src/mill/scalalib/Lib.scala
lihaoyi pushed a commit that referenced this pull request Feb 19, 2025
This reports #4546 on the `0.12.x` branch
@lefou lefou added this to the 0.13.0 milestone Mar 2, 2025
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.

Breakage in GenIdea tests due to coursier local module resolution error
3 participants
0