Skip to content

with latest 2.12.1 nightly, "class scala.IndexOutOfBoundsException not found" #88

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
SethTisue opened this issue Nov 2, 2016 · 8 comments

Comments

@SethTisue
Copy link
Contributor

this was found by the Scala 2.12 community build, but can be reproduced independently, on the 2.12.0 branch of paradise, with:

++2.12.1-de003f7-nightly
set every scalaBinaryVersion := "2.12"
tests/test

resulting in a lot of repeated errors like:

[error] /Users/tisue/paradise/tests/src/test/scala/annotations/run/KaseIdentityObject.scala:54: exception during macro expansion: 
[error] scala.ScalaReflectionException: class scala.IndexOutOfBoundsException not found.
[error] 	at scala.reflect.internal.Mirrors$RootsBase.staticClass(Mirrors.scala:122)
[error] 	at scala.reflect.internal.Mirrors$RootsBase.staticClass(Mirrors.scala:22)
[error] 	at kaseMacro$kaseObjectHelper.expand(kase.scala:264)
[error] 	at kaseMacro$.impl(kase.scala:303)
[error] 	at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
[error] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[error] 	at java.lang.reflect.Method.invoke(Method.java:498)
[error] 	at scala.reflect.macros.runtime.JavaReflectionRuntimes$JavaReflectionResolvers.$anonfun$resolveJavaReflectionRuntime$4(JavaReflectionRuntimes.scala:34)
[error] 	at scala.tools.nsc.typechecker.Macros.macroExpandWithRuntime$(Macros.scala:772)
[error] 	at scala.tools.nsc.Global$$anon$1.macroExpandWithRuntime(Global.scala:424)
[error]     @kase object CPostLocalPostcomp
[error]      ^
@SethTisue
Copy link
Contributor Author

@xeno-by are you available to look at this? if this is an issue for Scala 2.12.1, we'll need to know soon. also, this is making every 2.12.x Scala community build fail.

@xeno-by
Copy link
Member

xeno-by commented Nov 7, 2016

I will do that tomorrow. Been travelling the last week.

@xeno-by
Copy link
Member

xeno-by commented Nov 13, 2016

@SethTisue @adriaanm What resolver should I use?

[error] (paradise/*:update) sbt.ResolveException: unresolved dependency: org.scala-lang#scala-compiler;2.12.1-de003f7-nightly: not found
[error] unresolved dependency: org.scala-lang#scala-library;2.12.1-de003f7-nightly: not found
[error] unresolved dependency: org.scala-lang#scala-reflect;2.12.1-de003f7-nightly: not found
[error] (tests/*:update) sbt.ResolveException: unresolved dependency: org.scala-lang#scala-compiler;2.12.1-de003f7-nightly: not found
[error] unresolved dependency: org.scala-lang#scala-library;2.12.1-de003f7-nightly: not found
[error] unresolved dependency: org.scala-lang#scala-reflect;2.12.1-de003f7-nightly: not found
[error] Total time: 4 s, completed Nov 13, 2016 1:45:01 PM

@SethTisue
Copy link
Contributor Author

What resolver should I use?

resolvers += "release-temp" at "https://scala-ci.typesafe.com/artifactory/scala-release-temp/"

@SethTisue
Copy link
Contributor Author

SethTisue commented Nov 16, 2016

xeno-by added a commit that referenced this issue Nov 22, 2016
@xeno-by
Copy link
Member

xeno-by commented Nov 22, 2016

Can reproduce. Will investigate now.

@xeno-by
Copy link
Member

xeno-by commented Nov 22, 2016

It turns out that paradise itself is fine.

It's the code of the test macro that changed behavior. After I fixed the test, everything became green again. See a976e75 for more information.

@xeno-by xeno-by closed this as completed Nov 22, 2016
@SethTisue
Copy link
Contributor Author

thanks Eugene! looking good over at scala/community-build#404

SethTisue pushed a commit to scalacommunitybuild/paradise that referenced this issue Nov 21, 2017
follow-up PR for import conversion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants