mplushnikov / lombok-intellij-plugin

Lombok Plugin for IntelliJ IDEA
Apache License 2.0
3.11k stars 635 forks source link

“Lombok Dependency is missing” warning when the dependency is present #820

Closed mirabilos closed 3 years ago

mirabilos commented 4 years ago

Short description

When a Lombok dependency is present, the warning is still there.

Expected behavior

The warning to not be displayed. (Or even consider whether the warning is useful at all.)

Version information

    <properties>
                <lombok.version>1.18.12</lombok.version>
    </properties>
        <dependencyManagement>
                <dependencies>
                        <dependency>
                                <groupId>org.projectlombok</groupId>
                                <artifactId>lombok</artifactId>
                                <version>${lombok.version}</version>
                                <scope>provided</scope>
                        </dependency>
                </dependencies>
        </dependencyManagement>
        <dependencies>
                <dependency>
                        <groupId>org.projectlombok</groupId>
                        <artifactId>lombok</artifactId>
                        <scope>provided</scope>
                </dependency>
        </dependencies>

Steps to reproduce

Load a pre-existing Maven project that uses Lombok with IntelliJ after upgrading it and the Lombok plugin to 2020. (This did not warn in 2019.)

Sample project

I can do that but only if really needed.

fantaseour commented 4 years ago

Was hit with this issue today. My lombok version was 1.18.8.

First -- change lombok version to 1.18.12 solve the problem. Second: I've cleared lombok fom my .m2 folder (org.projectlombok), then switch back to my 1.18.8 and it works...

Hope this helps

hcguersoy commented 4 years ago

Hope this helps

Unfortunately not in my case :-(

mirabilos commented 4 years ago

This happens on https://github.com/tarent/VerA.web for example.

mplushnikov commented 4 years ago

This happens on https://github.com/tarent/VerA.web for example.

Cannot reproduce it now, did you already changed something in this project?

mirabilos commented 4 years ago

Michail Plushnikov dixit:

This happens on https://github.com/tarent/VerA.web for example.

Cannot reproduce it now, did you already changed something in this project?

I cannot reproduce it for that project any more either. I also found the setting to disable the warning and did that for new projects.

But I just upgraded the Lombok plugin earlier today in another project and did get this warning, even though it uses Lombok, so 0.31 also fails detecting Lombok sometimes. Now all other projects use Maven, but the one from earlier today is an Android project… so no discernible pattern.

bye, //mirabilos --

you introduced a merge commit │ % g rebase -i HEAD^^ sorry, no idea and rebasing just fscked │ Segmentation should have cloned into a clean repo │ fault (core dumped) if I rebase that now, it's really ugh │ wuahhhhhh
mplushnikov commented 3 years ago

Should be fixed by 1eca867c1dc01b0b654efd429138f80f0dc29b30 in plugin version 0.33 and 2020.3 EAP