mill icon indicating copy to clipboard operation
mill copied to clipboard

Optimize BSP compilation for Scala 3

Open lefou opened this issue 7 months ago • 0 comments

Currently the BSP compilation for Scala Modules combines the results of the compile and the semanticDbData tasks. This assumes, that semanticDbData is produced in addition to the compilation. Effectively, in Scala 3 we can't produce semanticDb data without completely compiling the code (using -Ystop-after: doesn't work as it did in Scala 2). Hence, the result of compile is redundant to the result of semanticDbData. In BSP, we should avoid the compile evaluation all together, to reduce work.

lefou avatar May 18 '25 20:05 lefou