Skip to content

Uncaught exception during compilation #6975

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

Closed
scabug opened this issue Jan 15, 2013 · 3 comments
Closed

Uncaught exception during compilation #6975

scabug opened this issue Jan 15, 2013 · 3 comments

Comments

@scabug
Copy link

scabug commented Jan 15, 2013

Compiler crashes during compilation:

java.lang.RuntimeException: scala.Array.apply : Object, Object, Any
at scala.sys.package$.error(package.scala:27)...

Please see attached SBT project which reproduces the issue. (it has a library dependency on Shapeless)

@scabug
Copy link
Author

scabug commented Jan 15, 2013

Imported From: https://issues.scala-lang.org/browse/SI-6975?orig=1
Reporter: @benhutchison
Affected Versions: 2.10.0, 2.11.0-M1
Attachments:

@scabug
Copy link
Author

scabug commented Jan 17, 2013

@benhutchison said:
I just tested 2.11.0-M1 and 2.11.0-SNAPSHOT (Jan 17) and saw crashes in both.

On 2.11.0-M1 only, I saw this message:

[error] C:\Users\ben\workspace\bug_example\src\main\scala\cycad\BugExample.scala:33: diverging implicit expansion for ty
pe shapeless.Prod[shapeless.Nat._1,shapeless.Nat._3]
[error] starting with method prod in object Prod
[error] val m1x3 = matrix[Int, _1, _3].fromRowMajor(Sized[Array](1, 2, 3))

However, commenting out that line alone caused the crash to re-occur, presumably from the previous line.

@scabug scabug closed this as completed Feb 6, 2013
@scabug
Copy link
Author

scabug commented Feb 6, 2013

Ben Hutchison (ben_hutchison) said:
This is a sympton of #7088

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

No branches or pull requests

1 participant