IntelliJ Idea lombok doesn't appear in intellisense

My problem is that I have lombok used in my project and intellisense doesn't recoginze it's packages and annotations.

What I have done:

  • dependency added to maven pom.xml (jar appears in "External Libraries")

  • lombok plugin installed via "Settings -> Plugins -> Browse repositories"

  • "Enable annotation processing" enabled in "Settings -> Build, Execution, Deployment -> Compiler -> Annotation Processors"

  • IntelliJ Idea restart with invalidate cache

  • Project rebuilded

  • Strange thing is that project get's builded without any errors and works perfectly. I just can't see this package in IntelliJ and it's cumbersome, because a lot of code is "red". My current IntelliJ IDEA version is 2017.3.1. I've looked up in every post simillar to my problem and tried every method (including reinstalling plugin, doing everything again, changing order in things that were done etc.), but it still doesn't work.


    I've solved issue. The problem Was that IntelliJ Idea mistakenly created projects from my main project and they were in conflict. Under "File -> Project Structure" I had 5 different projects which were created from and they still were included in this one that was separate from them. All I had to do was to delete those wrong projects.

    链接地址: http://www.djcxy.com/p/96598.html

    上一篇: 使用module.exports作为构造函数

    下一篇: IntelliJ Idea lombok不会出现在intellisense中