You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Kanela runner it behaves a bit differently to other runners as the settings are not scoped correctly. The settings it uses such as baseDirectory should be scoped to Compile/run.
For example, if I set:
run / baseDirectory := "foo"
Then the Kanela runner will not use this and instead it will use baseDirectory which by default is the project base directory.
The settings used in kanelaRunnerTask are mostly raw which is good it's just where they are used in projectSettings is where the scoping problem is.
When using the Kanela runner it behaves a bit differently to other runners as the settings are not scoped correctly. The settings it uses such as
baseDirectory
should be scoped toCompile/run
.For example, if I set:
Then the Kanela runner will not use this and instead it will use
baseDirectory
which by default is the project base directory.The settings used in
kanelaRunnerTask
are mostlyraw
which is good it's just where they are used inprojectSettings
is where the scoping problem is.See how sbt does it:
https://github.com/sbt/sbt/blob/ce59ea754a12709a978ac1f54306a81c6c6d68d7/main/src/main/scala/sbt/Defaults.scala#L2582
https://github.com/sbt/sbt/blob/ce59ea754a12709a978ac1f54306a81c6c6d68d7/main/src/main/scala/sbt/Defaults.scala#L994
The workaround is fairly straight forward:
The text was updated successfully, but these errors were encountered: