mill
mill copied to clipboard
BSP: Import build related deps for IDE support in build.sc files
It seems with BSP that build.sc
and other .sc
files are all red because we don't import the mill library and other $ivy
dependencies.
Would be cool to support that too.
Thanks
This is partially fixed in 0.7.2
We are only missing the $file
imports
I found out that the $file
imports are supported in the current GenIdea through enabling the sc files support with <option name="scFileMode" value="Ammonite" />
.
I don't know how to enable this with BSP. But the change will happen on the Intellij codebase. It should automatically enable the Ammonite support as soon as it sees a build.sc
.
This can be enabled manually through Preferences
-> Language & Frameworks
-> Scala
-> Worksheet
tab -> Treat .sc files as:
to Ammonite
.
Until this is fixed I don't think the docs should call GenIdea legacy
Until this is fixed I don't think the docs should call GenIdea legacy
I agree. Right now GenIdea
is better maintained than BSP. Although I have some ideas and also prototypes for BSP improvements, nothing is ready to use. So yes, please go ahead and update the docs.