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
error: failed batch processing sources: Should produce more helpful error messages #598
Comments
With version 0.9.7 I did not have this problem. |
Could this be an error from Gradle, not J2ObjC? On Tue, 1 Sep 2015 at 03:51 Michael Gorski notifications@github.com wrote:
|
Why is the command broken up in two lines? I doubt you have a directory On Tue, Sep 1, 2015 at 6:53 AM Keith Stanger notifications@github.com
|
@mthvedt - I'm adding you as you authored the annotation error: "failed batch processing sources". What's of note in this case is that the error feedback is very limited as you'll see above. The annotation code may well be legitimately throwing an error but it could be much better feedback. |
@kstanger @tomball it seems to be a plugin issue so we will track it here: j2objc-contrib/j2objc-gradle#447 |
After discussion with @brunobowden I decided to reopen. |
Currently this appears to be an issue with the plugin. I suggested leaving this open as a request to improve how helpful the error messages were. The current STDERR was very obscure:
|
If it helps this was introduced in j2objc version 0.9.8 in version 0.9.7 I did not have this problem and error log. |
Anyone have an example of a failing annotation processor? The original On Tue, Sep 8, 2015 at 8:59 AM Michael Gorski notifications@github.com
|
@confile - I believe you have a public example you can now point to? I'm on vacation right now but will look in to this further when I return On Tue, Sep 8, 2015, 9:16 AM Tom Ball notifications@github.com wrote:
|
I created a test project here: https://github.com/confile/j2objc-test To reproduce the error just do:
Note: If you change variables sometimes recompile works for whatever reason. Then just do some more changes. |
Don't see a problem from the translator. I couldn't build the j2objc-test (too many dependencies), and so hacked the auto/service annotation processor to print messages to System.out and System.err, then throw an AssertionError. This printed out the stdout and stderr text, and for the processing error message, included the location and exception stack trace. Since Michael is writing an annotation processor and having trouble with it, my guess is that "failed" was an earlier error message from his processor. If that's the case, switching to exceptions during development should provide better diagnostic information, such as shown below:
|
@tomball What do you mean by this?
As I said before it worked fine with j2objc 0.9.7 also incremental translation worked. But starting with 0.9.8 translation worked but incremental translation gave this strange error. |
@tomball Why do you close this issue the error is still there? |
@brunobowden I could modify the j2objc-gradle plugin to throw an error but where should I do that? |
I believe this is an error in your annotation processor, your code. On Thu, Sep 17, 2015, 9:18 AM Michael Gorski notifications@github.com
|
@brunobowden How could this be. The processor worked perfect with j2objc 0.9.7. It builds perfect when using the java plugins build task. It also build with j2objc 0.9.8 if you build after clean. The problem occurs only when doing incremental compile. Changing parts which are not affect the annotation processor should not be affected by the annotation processor. |
@brunobowden So I guess it is an issue in j2objc 0.9.8 |
While translating the following:
I get the following error:
The text was updated successfully, but these errors were encountered: