Closed sideeffffect closed 3 days ago
I havent needed to do this for a clean checkout for maybe a year now
do you have a repro i can look at where running this command is necessary?
When you open the project as just a mere directory, IntelliJ doesn't prompt you to import -- regardless of whether with BSP or Maven or anything. You just see this and nothing happens. scala-mill-experiment.zip
The issue seems to be that IntelliJ uses the presence a ./mill
bootstrap script in order to detect it as a Mill build. After adding such a bootstrap script the intellij auto import seems to work
We can probably send a patch upstream to intellij-scala to make it a bit more flexible. In the meantime, this command may be useful to fix some of the misbehaviors I've seen when intellij gets into a bad state. Let me try to reproduce them to see
presence [of] a
./mill
bootstrap script in order to detect it as a Mill build
Would you say it is more robust to rather detect Mill via detecting
build.mill
orbuild.mill.scala
ormill.scala
@sideeffffect should be these cases
./mill
./build.mill
./build.mill.scala
Maybe ./millw
or ./millw.bat
from https://github.com/lefou/millw?
We may not need this PR if this gets merged
Superseded by #3989
Instructions to run
mill.bsp.BSP/install
. Without it, IntelliJ won't pick up the BSP model -- it won't show it as one of the possible ways how to import the project.