Cyclic dependencies error on extraLoggers when used with lihaoyi/workbench
See original GitHub issueI’m getting an error as soon as I declare the sbt-heroku
plugin (version 1.0.1)
info] Loading project definition from /Users/tel/Dropbox/proj/qubit/project
Cyclic reference involving
{file:/Users/tel/Dropbox/proj/qubit/}ui/*:extraLoggers
{file:/Users/tel/Dropbox/proj/qubit/}/*:extraLoggers
at sbt.Dag$Cyclic.$colon$colon(Dag.scala:67)
at sbt.Dag$.sbt$Dag$$visit$1(Dag.scala:27)
at sbt.Dag$$anonfun$visitAll$1$1.apply(Dag.scala:23)
at sbt.Dag$$anonfun$visitAll$1$1.apply(Dag.scala:23)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at scala.collection.MapLike$DefaultValuesIterable.foreach(MapLike.scala:206)
at sbt.Dag$.visitAll$1(Dag.scala:23)
at sbt.Dag$.topologicalSort(Dag.scala:33)
at sbt.Init$class.sort(Settings.scala:152)
at sbt.Def$.sort(Def.scala:10)
at sbt.Init$class.make(Settings.scala:146)
at sbt.Def$.make(Def.scala:10)
at sbt.Load$.apply(Load.scala:145)
at sbt.Load$.defaultLoad(Load.scala:36)
at sbt.BuiltinCommands$.liftedTree1$1(Main.scala:492)
at sbt.BuiltinCommands$.doLoadProject(Main.scala:492)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:484)
at sbt.BuiltinCommands$$anonfun$loadProjectImpl$2.apply(Main.scala:484)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
at sbt.Command$$anonfun$applyEffect$1$$anonfun$apply$2.apply(Command.scala:59)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
at sbt.Command$$anonfun$applyEffect$2$$anonfun$apply$3.apply(Command.scala:61)
at sbt.Command$.process(Command.scala:93)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
at sbt.MainLoop$$anonfun$1$$anonfun$apply$1.apply(MainLoop.scala:96)
at sbt.State$$anon$1.process(State.scala:184)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
at sbt.MainLoop$$anonfun$1.apply(MainLoop.scala:96)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:17)
at sbt.MainLoop$.next(MainLoop.scala:96)
at sbt.MainLoop$.run(MainLoop.scala:89)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:68)
at sbt.MainLoop$$anonfun$runWithNewLog$1.apply(MainLoop.scala:63)
at sbt.Using.apply(Using.scala:24)
at sbt.MainLoop$.runWithNewLog(MainLoop.scala:63)
at sbt.MainLoop$.runAndClearLast(MainLoop.scala:46)
at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:30)
at sbt.MainLoop$.runLogged(MainLoop.scala:22)
at sbt.StandardMain$.runManaged(Main.scala:54)
at sbt.xMain.run(Main.scala:29)
at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
at xsbt.boot.Launch$.run(Launch.scala:109)
at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
at xsbt.boot.Launch$.launch(Launch.scala:117)
at xsbt.boot.Launch$.apply(Launch.scala:18)
at xsbt.boot.Boot$.runImpl(Boot.scala:41)
at xsbt.boot.Boot$.main(Boot.scala:17)
at xsbt.boot.Boot.main(Boot.scala)
[error] Cyclic reference involving
[error] {file:/Users/tel/Dropbox/proj/qubit/}ui/*:extraLoggers
[error] {file:/Users/tel/Dropbox/proj/qubit/}/*:extraLoggers
[error] Use 'last' for the full log.
My build.sbt looks like
lazy val commonSettings = Seq(
organization := "jspha",
scalaVersion := "2.11.8",
version := "1.0-SNAPSHOT",
resolvers += Resolver.sonatypeRepo("snapshots")
)
lazy val http4sVersion = "0.14.0-SNAPSHOT"
lazy val doobieVersion = "0.2.3"
lazy val server = project.in(file("server"))
.settings(commonSettings: _*)
.dependsOn(sharedJvm)
.settings(
libraryDependencies ++= Seq(
"org.http4s" %% "http4s-dsl" % http4sVersion,
"org.http4s" %% "http4s-blaze-server" % http4sVersion,
"org.tpolecat" %% "doobie-core" % doobieVersion,
"org.tpolecat" %% "doobie-contrib-postgresql" % doobieVersion,
"org.tpolecat" %% "doobie-contrib-specs2" % doobieVersion,
"org.slf4j" % "slf4j-simple" % "1.6.4"
)
)
.settings(
(resources in Compile) <+= Def.task {
(artifactPath in (ui, Compile, fullOptJS)).value
} dependsOn (fullOptJS in (ui, Compile))
)
.enablePlugins(JavaServerAppPackaging)
lazy val shared = crossProject.crossType(CrossType.Pure).in(file("shared"))
.settings(commonSettings: _*)
lazy val sharedJvm = shared.jvm.settings(name := "sharedJvm")
lazy val sharedJs = shared.js.settings(name := "sharedJs")
lazy val ui = project.in(file("ui"))
.settings(commonSettings: _*)
.dependsOn(sharedJs)
.enablePlugins(ScalaJSPlugin)
.settings(workbenchSettings)
.settings(
bootSnippet := "jspha.qubit.ui.Runtime().main();",
refreshBrowsers <<= refreshBrowsers.triggeredBy(fastOptJS in Compile)
)
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Cyclic Dependency Problems · Issue #237 · microsoft/rushstack
I have some cyclic package dependencies that I want to put into place for a complex solution but the "rush generate" command fails....
Read more >How to fix nasty circular dependency issues once and for all in ...
In the many projects I have maintained so far, sooner or later I always run into the same issue: circular module dependencies.
Read more >Best practice for for resolving a circular dependency in Go
So in this case you could declare an interface in the config package that matches the behaviour it needs from logging. /myapp/config type ......
Read more >sbt Reference Manual — Configure and use logging
The quickest way to change logging levels is by using the error , warn , info , or debug commands. These set the...
Read more >Avoiding circular dependency errors in DAX - YouTube
Learn how to avoid circular dependency errors in DAX! Article and download: https://sql.bi/59891/?aff=ytHow to learn DAX: ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Based on a quick review, it’s the
workbench
plugin which is causing the issues. I’ll investigate further.I’m closing this due to inactivity. Feel free to comment in case this issue still be relevant for you and I’ll reopen it.