sbt-multi-jvm icon indicating copy to clipboard operation
sbt-multi-jvm copied to clipboard

Could you prefix 'extra-options'?

Open sebastiaansamyn-tc opened this issue 10 years ago • 2 comments

When adding SbtMultiJvm.multiJvmSettings to the settings of my project I get the following error:

[error] Some keys were defined with the same name but different types: 'extra-options' (sbt.Task[scala.collection.Seq[java.lang.String]], scala.Function1[java.lang.String, scala.collection.Seq[java.lang.String]])
[error] Use 'last' for the full log.

The issue is that the extra-options key is not only defined by sbt-multi-jvm, but also by another project. The other project is also not under my own control, so I have no way of using your plugin.

Wouldn't it be a good idea to prefix your keys and not use something as generic as "extra-options"?

sebastiaansamyn-tc avatar Feb 27 '15 15:02 sebastiaansamyn-tc

Thanks for reporting, I'll have a look at this! You're most likely right - we should be using (key in ...) I think. I'll investigate more once the sun rises :-)

ktoso avatar Mar 02 '15 01:03 ktoso

We should increase the scope of this ticket to go through all of the keys and make sure they have multiJvm prefix or remove keys altogether if they duplicate the meaning of the keys that are already in sbt. More info https://github.com/sbt/sbt-multi-jvm/pull/39#discussion_r147939405

2m avatar Oct 31 '17 09:10 2m