New issue
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
"illegal cyclic reference" compiler crashes with eponymous type aliases and modules #6321
Comments
Imported From: https://issues.scala-lang.org/browse/SI-6321?orig=1 |
@adriaanm said: |
@hubertp said (edited on Oct 4, 2012 11:10:53 AM UTC): |
@hubertp said: info] Resolving de.sciss#lucrestm_2.10.0-M7;1.0.+ ...
[info] Resolving org.scala-tools#scala-stm_2.10.0-M7;0.6 ...
[info] Resolving com.sleepycat#je;5.0.58 ...
[warn] module not found: com.sleepycat#je;5.0.58
[warn] ==== local: tried
[warn] /home/hubert/.ivy2/local/com.sleepycat/je/5.0.58/ivys/ivy.xml
[warn] ==== sonoreleases: tried
[warn] http://oss.sonatype.org/content/repositories/releases/com/sleepycat/je/5.0.58/je-5.0.58.pom
[warn] ==== public: tried
[warn] http://repo1.maven.org/maven2/com/sleepycat/je/5.0.58/je-5.0.58.pom
[info] Resolving de.sciss#lucreexpr_2.10.0-M7;1.0.+ ...
[info] Resolving de.sciss#prefuse-core;0.21 ...
[info] Resolving org.scalatest#scalatest_2.10.0-M7;1.9-2.10.0-M7-B1 ...
[info] Resolving org.scala-lang#scala-reflect;2.10.0-M7 ...
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: UNRESOLVED DEPENDENCIES ::
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[warn] :: com.sleepycat#je;5.0.58: not found
[warn] ::::::::::::::::::::::::::::::::::::::::::::::
[trace] Stack trace suppressed: run last *:update for the full output.
[error] (*:update) sbt.ResolveException: unresolved dependency: com.sleepycat#je;5.0.58: not found
[error] Total time: 14 s, completed Oct 11, 2012 1:07:37 PM |
@hubertp said: |
@adriaanm said: |
@Sciss said (edited on Oct 30, 2012 9:59:01 PM UTC): The missing repo for com.sleepycat should be resolvers += "Oracle Repository" at "http://download.oracle.com/maven" Is there any trick to include that in the pom so that it shows up in dependent projects?\ I added the resolver to the mentioned branch (cyclic_bug), so hopefully it should proceed to compilation stage now |
Closing as duplicate. I rewound the subject repo to Sep 5, 2012, and attempted to run old sbt under old java, but was defeated by dependencies, like those who have gone before me. It was fun seeing |
In a project I am struggling with spurious compiler crashes with "illegal cyclic reference involving ..." messages. They seem to be triggered by the co-presence of a type and an eponymous singleton object within the same namespace (package).
As noted on scala-internals, I was not able to minimise the problem. I really did an effort (https://github.com/Sciss/ScalacCyclicBug) but no success, the bugs don't appear. So to reproduce the problem, the following should suffice:
README.md
(basically just runsbt test:compile
).In this project, the tricky situation occurs twice (
Scan
andProcGroup
). The mere presence of the type aliases and objects doesn't seem to suffice to produce the bugs, but rather the references to those. Renaming the companion objects, e.g. toProcGroupX
, is a workaround, but obviously not the intended design. Also probably replacing the type aliases with traits (trait Scan
) would help, but again is not possible in my current API.The text was updated successfully, but these errors were encountered: