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
Could not find proxy error with macros #8272
Comments
Imported From: https://issues.scala-lang.org/browse/SI-8272?orig=1 |
@xeno-by said: I tried to look into it, but the link you provided doesn't work for me. Also, these days 2.11.0-RC1 activities take a lot of time, so I'd appreciate if you could track the regression to a certain commit. That would make it easier to provide a fix / suggest a workaround. |
@etorreborre said: |
@etorreborre said: |
@xeno-by said: |
@xeno-by said: [error] /Users/xeno_by/Projects/specs2/matcher-extra/src/test/scala/org/specs2/matcher/MTest.scala:9: type mismatch;
[error] found : Unit
[error] required: CatMatcher
[error] matchA[Cat].name("Kitty")
[error] ^ Actually, I have a guess about what might be the problem here. How about changing flatMap(_.scalaArgs.collectFirst { case Function(ValDef(_, a, _, _) :: Nil, b) => a -> c.resetLocalAttrs(b) }). to flatMap(_.scalaArgs.map(arg => c.resetLocalAttrs(arg)).collectFirst { case Function(ValDef(_, a, _, _) :: Nil, b) => a -> b }). Would that help? |
@etorreborre said: |
I have a regression with macros but I don't really know when/how it was introduced. You can reproduce it by cloning this branch, then go to the specs2-matcher-extra sub-project and execute "test:compile":
I don't know how to reduce it to something simpler but hopefully you can reproduce the problem and have some insight on what's going wrong.
The text was updated successfully, but these errors were encountered: