zinc icon indicating copy to clipboard operation
zinc copied to clipboard

Zinc foreground CLI?

Open terpstra opened this issue 5 years ago • 2 comments

I've seen in #544 that Zinc does not have its own CLI.

My question: is there another project which provides a scalac-like command-line interface to zinc?

Bloop is not an option. I need a solution that runs synchronously, as a foreground process, without spawning any independently running services in the background. Scalac works great for this, but I'd like to benefit from incremental compilation.

If there is more than one project with a CLI, can any of them be compiled as a graalVM native-image to reduce the start up times?

Thanks!

terpstra avatar Nov 23 '20 08:11 terpstra

My question: is there another project which provides a scalac-like command-line interface to zinc?

Not that I'm aware of.

eed3si9n avatar Nov 23 '20 16:11 eed3si9n

For anyone else who wants this in the future: https://github.com/gatling/gatling/blob/master/gatling-compiler/src/main/scala/io/gatling/compiler/ZincCompiler.scala

That is fairly easy to translate into a command-line version, which is what I did.

terpstra avatar Nov 29 '20 08:11 terpstra