We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sbt 1.8.2
val foo = project.in(file("foo")) val fooAux = project.in(file("foo-aux")).settings(foo / Compile / sourceGenerators += Def.task(Seq.empty)) val bar = project val baz = project
Project foo has no source generators.
foo
sbt:sandbox> reload; show Compile/sourceGenerators [info] welcome to sbt 1.8.2 (Azul Systems, Inc. Java 11.0.17) [info] loading project definition from /workspace/sandbox/project [info] loading settings for project sandbox from build.sbt ... [info] set current project to sandbox (in build file:/workspace/sandbox/) [info] foo / Compile / sourceGenerators [info] List() [info] fooAux / Compile / sourceGenerators [info] List() [info] bar / Compile / sourceGenerators [info] List() [info] baz / Compile / sourceGenerators [info] List() [info] Compile / sourceGenerators [info] List()
If we remove the baz project from the build, then foo does have a source generator. This is what I expect.
baz
sbt:sandbox> reload; show Compile/sourceGenerators [info] welcome to sbt 1.8.2 (Azul Systems, Inc. Java 11.0.17) [info] loading project definition from /workspace/sandbox/project [info] loading settings for project sandbox from build.sbt ... [info] set current project to sandbox (in build file:/workspace/sandbox/) [info] foo / Compile / sourceGenerators [info] List(Task(_)) [info] fooAux / Compile / sourceGenerators [info] List() [info] bar / Compile / sourceGenerators [info] List() [info] Compile / sourceGenerators [info] List()
The text was updated successfully, but these errors were encountered:
That's strange.
Sorry, something went wrong.
Try to workaround sbt/sbt#7173
71545af
Merge pull request #490 from gemini-hlsw/pr/workaround-sbt-i7173
bcfd836
No branches or pull requests
steps
sbt 1.8.2
problem
Project
foo
has no source generators.expectation
If we remove the
baz
project from the build, thenfoo
does have a source generator. This is what I expect.notes
The text was updated successfully, but these errors were encountered: