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
sbt stage should successfully compile a project (involving macros), whenever sbt compile successfully compiles a project.
Actual behaviour
sbt stage fails on compilation, whereas sbt compile succeeds. The problem seems to lie with macros, in particular the zio.macros.accessible annotation (https://zio.dev/docs/howto/howto_macros#description).
I have annotated an object like so:
@accessible
object Foo {
Which is generating the function in the object Foo: Foo.functionA.
When running sbt stage, compilation fails however with error:
[error] /***/Main.scala:54:30: value functionA is not a member of object foo.Foo
[error] val program = Foo.functionA
Note that sbt compile, or sbt assembly (using the sbt-assembly plugin) work fine.
Information
What sbt-native-packager are you using: 1.7.4, 1.7.5
What sbt version: 1.3.10, 1.3.13
scala version: 2.13.3
What is your build system: Ubuntu 18.04.5 LTS
What package are you building: JavaServerAppPackaging
The text was updated successfully, but these errors were encountered:
Expected behaviour
sbt stage
should successfully compile a project (involving macros), wheneversbt compile
successfully compiles a project.Actual behaviour
sbt stage
fails on compilation, whereassbt compile
succeeds. The problem seems to lie with macros, in particular thezio.macros.accessible
annotation (https://zio.dev/docs/howto/howto_macros#description).I have annotated an object like so:
Which is generating the function in the object
Foo
:Foo.functionA
.When running
sbt stage
, compilation fails however with error:Note that
sbt compile
, orsbt assembly
(using thesbt-assembly
plugin) work fine.Information
JavaServerAppPackaging
The text was updated successfully, but these errors were encountered: