Sébastien Tromp
Sébastien Tromp

Reputation: 612

IntelliJ Lombok - src/integration-test classes don't see generated lombok code

I am using IntelliJ IDEA 2016.3 + lombok plugin with the following structure:

enter image description here

Edit: this is the Module Content Root configuration:

enter image description here

Everything works as expected in src/main/java and src/test/java, but classes in src/integration-test and src/end-to-end-test don't see the generated lombok code (so no autocomplete).

I can still run the tests without any issue though.

Does anyone have any idea what I should do to benefit from auto-complete from these other test source folders?

Thanks!

Upvotes: 7

Views: 3777

Answers (2)

Roshith
Roshith

Reputation: 2175

You need to enable Annotation processing for your modules in IntelliJ. If you have enabled it already make sure integration-test and end-to-end-test are listed under Default.

Go to settings (Ctrl + Alt + S) ->Build Execution Deployment -->Compiler --->Annotation processors

Upvotes: 4

AlexGera
AlexGera

Reputation: 783

Double check that you have enabled Lombok itself in project properties as far as processing annotations on that. Everything is in Project preferences.

Upvotes: 1

Related Questions