mill icon indicating copy to clipboard operation
mill copied to clipboard

BSP: Import build related deps for IDE support in build.sc files

Open joan38 opened this issue 4 years ago • 4 comments

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

joan38 avatar May 07 '20 19:05 joan38

This is partially fixed in 0.7.2 We are only missing the $file imports

joan38 avatar May 20 '20 07:05 joan38

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.

joan38 avatar Jun 25 '20 06:06 joan38

Until this is fixed I don't think the docs should call GenIdea legacy

nafg avatar Oct 18 '21 21:10 nafg

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.

lefou avatar Oct 18 '21 22:10 lefou