-
Notifications
You must be signed in to change notification settings - Fork 53
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
c.typeCheck doesn't see declarations from the current scope #14
Comments
There's an interesting twist to this story. If one tries to typecheck something that refers to the type parameters of the annottee, these type parameters wouldn't be taken into account: aztek/scala-workflow#2 (comment) |
since 2.0.0-M8 the situation is worse. The compiler crashes with the following error: Here is a example: http://pastebin.com/raw.php?i=Svm11P10 |
@FlorianKirmaier you are using java 1.8.0-ea. How is it stable? |
Thank you! I'll try to take a look today. |
@aparo Yeah, I can reproduce the error. I'll see what I can do. |
@FlorianKirmaier I get the same error in the most recent paradise for M7. When did it stop working for you? |
I see now. This problem is a direct consequence of the fix I applied above. It only manifests itself when there's an import in scope, which is why I missed it in the first place. |
@FlorianKirmaier @aparo Fixed the regression, started jenkins builds. The fix should be published with an updated 2.0.0-SNAPSHOT build for all supported Scala versions (2.10.3, 2.10.4-SNAPSHOT, 2.11.0-M7, 2.11.0-M8, 2.11.0-SNAPSHOT) within a couple hours. |
Unfortunately I haven't made any progress here, so we won't have a fix in 2.0.0-final. Any ideas are very welcome! |
I've merged this issue into #75 and will close this issue now. If this is a blocker for you, please let me know, and we'll think of something. |
A very thorough discussion: aztek/scala-workflow#2
Related SO questions: http://stackoverflow.com/questions/19379436/cant-access-parents-members-while-dealing-with-macro-annotations and http://stackoverflow.com/questions/19954776/scala-macro-annotations-c-typecheck-of-annotated-type-causes-stackoverflowerror
The text was updated successfully, but these errors were encountered: