Skip to content
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

Annotation processing issue #578

Open
Allsimon opened this issue Jan 8, 2016 · 4 comments
Open

Annotation processing issue #578

Allsimon opened this issue Jan 8, 2016 · 4 comments

Comments

@Allsimon
Copy link

Allsimon commented Jan 8, 2016

My project fail with Lombok related errors such as The method setObjectId(String) is undefined for the type ... or The method builder() is undefined for the type ... during :j2objcTranslate

I understood that j2objc supports annotation processing (google/j2objc#503) but I can't get it to work, did I miss something ?

@brunobowden
Copy link
Contributor

Hi @Allsimon, I don't know if anyone has successfully used annotation processors with the J2ObjC Gradle Plugin yet. The main authors are busy with other work at the moment so we don't have time to look in to this, though we'll be responsive if you share a PR to fix anything.

My suggestion is to first try with j2objc by itself with the plugin and see if you can get that working. Once you do that, compare the failing command line the plugin uses for j2objc, to the working command line that you wrote. At that point, a fix should be relatively straight forward.

@advayDev1
Copy link
Contributor

@Allsimon:
I believe @andrewfunston had a j2objc gradle build with Dagger2 working . Dagger was the system we aimed for in terms of annotation processor support; unfortunately I'm not familiar with Lombok.

@brunobowden
Copy link
Contributor

@andrewfunston - it would be very helpful if you can provide some insights
on this

On Fri, Jan 8, 2016 at 8:01 PM Advay Mengle [email protected]
wrote:

@Allsimon https://github.com/allsimon:
I believe @andrewfunston https://github.com/andrewfunston had a j2objc
gradle build with Dagger2 working . Dagger was the system we aimed for in
terms of annotation processor support; unfortunately I'm not familiar with
Lombok.


Reply to this email directly or view it on GitHub
#578 (comment)
.

@advayDev1
Copy link
Contributor

also @Allsimon, your full j2objcConfig and relevant parts of the gradle error spew are useful if @andrewfunston notices a common issue; and you might want to read #517 where we walked through getting his Dagger build working.

unfortunately, neither @brunobowden nor I use annotation processors in our projects that use this plugin.

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

3 participants