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

Compiler hangs indefinitely #10124

Closed
scabug opened this Issue Dec 29, 2016 · 3 comments

Comments

Projects
None yet
1 participant
@scabug
Copy link

scabug commented Dec 29, 2016

I am upgrading a few libraries to cross-build with Scala 2.12.1. The following project hangs indefinitely when compiling the test sources:

https://github.com/iem-projects/ScalaCollider-If/tree/SI-10124

To reproduce:

git clone https://github.com/iem-projects/ScalaCollider-If
cd ScalaCollider-If
git checkout SI-10124
sbt ++2.12.1 clean test

For me, this proceeds until

[info] Loading global plugins from /home/hhrutz/.sbt/0.13/plugins
[info] Loading project definition from /home/hhrutz/Documents/temp/ScalaCollider-If/project
[info] Updating {file:/home/hhrutz/Documents/temp/ScalaCollider-If/project/}scalacollider-if-build...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Set current project to ScalaCollider-If (in build file:/home/hhrutz/Documents/temp/ScalaCollider-If/)
[info] Setting version to 2.12.1
[info] Reapplying settings...
[info] Set current project to ScalaCollider-If (in build file:/home/hhrutz/Documents/temp/ScalaCollider-If/)
[success] Total time: 0 s, completed Dec 29, 2016 1:01:40 PM
[info] Updating {file:/home/hhrutz/Documents/temp/ScalaCollider-If/}scalacollider-if...
[info] Resolving jline#jline;2.14.1 ...
[info] Done updating.
[info] Compiling 4 Scala sources to /home/hhrutz/Documents/temp/ScalaCollider-If/target/scala-2.12/classes...
[info] Compiling 2 Scala sources to /home/hhrutz/Documents/temp/ScalaCollider-If/target/scala-2.12/test-classes...

And never completes.

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Dec 29, 2016

Imported From: https://issues.scala-lang.org/browse/SI-10124?orig=1
Reporter: @Sciss
Affected Versions: 2.12.1

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Dec 29, 2016

@Sciss said:
The critical file is SuperColliderSpec.scala, and I had to fix a source incompatibility when adding Scala 2.12.1: Line 82 import scala.concurrent.ExecutionContext.Implicits.global had to be removed because in Scala 2.12.1 the implicit is ambiguous, while it is not so under Scala 2.10 and 2.11. My guess is the compiler hangs due to implicit resolution.

@scabug

This comment has been minimized.

Copy link
Author

scabug commented Dec 29, 2016

@Sciss said:
Sorry, false alarm. test:compile doesn't hang, but test, because ScalaTest 3.0.1 causes issue with its own execution context that doesn't honour blocking. Closing.

@scabug scabug closed this Dec 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment