-
Notifications
You must be signed in to change notification settings - Fork 32
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
Scala Macros cause NullPointerException in com.sun.tools.javac.code.Type #106
Comments
I'm unsure if it ever worked on macros to be honest. How / where to reproduce this, could you submit a PR examplifying the problematic code and we could make it work with that? |
Also, do I understand correctly that is this for Flink itself? Was it on 2.10? |
@ktoso Sorry, for replying so late. Yes, it is for Flink itself. You can reproduce the error if you run |
We are thinking about dropping genjavadocs for now because of this bug. |
Rather than dropping, we’d welcome some collaboration, it’s open source after all. The tool is something something we use ourselves, and maintain on a best effort basis. Your proposal of skipping is fine, I think you’d be able to PR such a change -- should be pretty simple, WDYT? |
I will try to look into it. Would be happy about some hints nevertheless. |
Perhaps one could introduce an annotation to skip certain methods? |
I think the easiest solution would be to define entire exclusions packages in the pom.xml. If we could simply skip classes that use Scala macros like |
It's an sbt plugin so I don't know how you use it from maven actually? |
We use it as described in your project description. Yes, the environment variable approach might work. |
Hah I see, which goes to show how often I look at this codebase... Forgot it's documented how to use from mvn ;) Thanks! Stay in touch, happy to help if you get stuck |
It would be better to use scalac parameters instead of environment variables, as these are already used for the |
I'm not sure if this is the right place to report the issue, but maybe you can help me. We are using
genjavadoc
in Apache Flink (see pom.xml).We recently upgraded to Scala 2.11 and cannot build out Javadocs anymore. It seems that
genjavadoc
is not producing correct Java files for Scala macros anymore.This is a part of the log:
Any help is highly appreciated as I already spent hours on this error. Do you know a way how I can at least skip the problematic files?
The text was updated successfully, but these errors were encountered: