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

Mill support: enable importing projects which contain build.mill(.scala) but not wrapper script #674

Open
wants to merge 2 commits into
base: idea243.x
Choose a base branch
from

Conversation

sideeffffect
Copy link

Not all Mill projects necessarily have a wrapper script in the root. The wrapper script may be on the PATH.

But all Mill projects contain build.mill or build.mill.scala, so that's the robust way to recognize them.

/cc @lihaoyi

…la) but not wrapper script

Not all Mill projects necessarily have a wrapper script in the root. The wrapper script may be on the PATH.

But _all_ Mill projects contain `build.mill` or `build.mill.scala`, so that's _the_ robust way to recognize them.
@nafg
Copy link

nafg commented Nov 18, 2024

What about pre-0.12 projects, they would have build.sc

@sideeffffect
Copy link
Author

They would need to update to >= 0.12? My attitude towards this is "who cares about old Mill"?

But if there's an actual demand, I'm not opposed. And the change is trivial, so I actually did it :)

lefou added a commit to lefou/mill that referenced this pull request Nov 19, 2024
This info may be still valuable to debug IDE issues as well as running with more rare setups like `vim` or `emacs`.

Inspired by JetBrains/intellij-scala#674 from https://github.com/sideeffffect
@nafg
Copy link

nafg commented Nov 20, 2024

"old mill"

Right now I'm blocked on com-lihaoyi/mill#3955, which was fixed but needs to be released as 0.12.3

@sideeffffect
Copy link
Author

@nafg fair enough.

Btw I thought I did it, but I didn't, so I've made the change now: build.sc is now also used to detect if it's a Mill project 👍

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.

2 participants