Custom annotation and handler in intellij is not running

629 views
Skip to first unread message

MiniDigger

unread,
Dec 11, 2016, 4:34:47 AM12/11/16
to Project Lombok
Hey,
I just went through the process of making my own javac annotation handler for my own annotation.
it generates the code just fine when I compile it using gradle, but it doesn't do while I am in the editor. 
Does anyone have an idea why that could be?
I am using MetaInfServices to generate the entry in the javax.annotation.processing.Processor file.
my project is layed out in multiple (gradle) modules, one of them containing my annotation and the processor for it.
the other modules should use it.
I have annotation procession turned on in the intellij settings, even tho that doesn't seem to have an effect at all since the normal lombok annotations still work even if it is turned off.

thanks for your help, appreciate every hint in the right direction

yawkat

unread,
Dec 11, 2016, 8:06:10 AM12/11/16
to Project Lombok
Hi,

Lombok itself does not include support for intellij (it does include eclipsec and thus eclipse support, but you haven't implemented that part either from the looks of it). IntelliJ users usually use this plugin ( https://plugins.jetbrains.com/plugin/6317 ) for lombok support, but its author has to manually add support for each lombok feature to the intellij editor. You would have to modify this plugin to support your annotation if you want proper IntelliJ support for it.

- yawkat

Harshit Gupta

unread,
Jun 28, 2020, 1:18:09 PM6/28/20
to Project Lombok
Hi
By communicating with Grab Inc and/or its subsidiaries, associate companies and jointly controlled entities (“Grab Group”), you are deemed to have consented to the processing of your personal data as set out in the Privacy Notice which can be viewed at https://grab.com/privacy/

This email contains confidential information and is only for the intended recipient(s). If you are not the intended recipient(s), please do not disseminate, distribute or copy this email Please notify Grab Group immediately if you have received this by mistake and delete this email from your system. Email transmission cannot be guaranteed to be secure or error-free as any information therein could be intercepted, corrupted, lost, destroyed, delayed or incomplete, or contain viruses. Grab Group do not accept liability for any errors or omissions in the contents of this email arises as a result of email transmission. All intellectual property rights in this email and attachments therein shall remain vested in Grab Group, unless otherwise provided by law.

Harshit Gupta

unread,
Jun 28, 2020, 1:18:09 PM6/28/20
to Project Lombok
Hi,

I am facing a similar problem. I have defined my custom annotation which extends AbstractProcessor. The method is generated successfully and added to the original source code. But in InteeliJ IDE it gives compilation error. But when I do mvn clean install, it works correctly. Want to know why is this happening. When we use lombok plugin, getters and setters are available in the IDE

On Sunday, December 11, 2016 at 9:06:10 PM UTC+8 yawkat wrote:
Reply all
Reply to author
Forward
0 new messages