Lombok added but getters and setters not recognized in Intellij IDEA

Don Quixote picture Don Quixote · Jul 18, 2013 · Viewed 123.9k times · Source

I am using IntelliJ IDEA on ubuntu. I added lombok.jar into my project and installed the Lombok plugin for IDEA. I have access to the annotations but the getters and setters aren't generated. I get the same errors I would get if I tried accessing a getter or setter method that doesn't exist. What could I be missing?

Answer

X.Chen picture X.Chen · Jun 27, 2015

You need to install the Lombok plugin for IDEA. Open the Settings panel (Ctrl + Alt + S). Search for "Plugins", then search for "Lombok" in the plugins. Find the plugin and install it. Finally, restart your IDEA. Then everything will be OK!