Lombok-intellij-plugin: Intellj Idea 2020.2 lombok bug

Created on 29 Jul 2020  路  6Comments  路  Source: mplushnikov/lombok-intellij-plugin

when I use @RequiredArgsConstructor in a class, idea report a error.

like this

@RequiredArgsConstructor
public class XXCache implements ICache {

    private final FlowService flowService;

}

The field report a error: Variable 'flowService' might not have been initialized

duplicate

Most helpful comment

Plugin incompatibility with 2020.2 is not yet fixed.
https://github.com/mplushnikov/lombok-intellij-plugin/issues/840

All 6 comments

Plugin incompatibility with 2020.2 is not yet fixed.
https://github.com/mplushnikov/lombok-intellij-plugin/issues/840

this #840 (comment) was the solution for me.

Didn't work for me, unfortunately. Uninstalled plugin, restarted IDEA, installed plugin, restarted IDEA. Still have to restart IDEA every time I add new private final fields to a class marked with @RequiredArgsConstructor.

seems to be another issue that is being solved here #860. Unfortunately, the owner is on vacation and we have to wait until he fixes this issue. Maybe you can downgrade your Intellij version. I don't know if that may fix the issue.

seems to be another issue that is being solved here #860. Unfortunately, the owner is on vacation and we have to wait until he fixes this issue. Maybe you can downgrade your Intellij version. I don't know if that may fix the issue.

Oh, yeah, I'll wait. It's sure annoying but bearable for now. Thanks for pointing master issue. I just noticed those "psi is outdated" exceptions while playing with @RequiredArgsConstructor annotation, so it's definitely related.

Lombok should be natively supported by JetBrains, could you guys comment, upvote this: https://youtrack.jetbrains.com/issue/IDEABKL-5667? Maybe they will finally do something about it, with all due respect for the author, millions of devs shouldn't be dependent on single maintainer plugin.

Was this page helpful?
0 / 5 - 0 ratings