mplushnikov / lombok-intellij-plugin

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

@FieldNameConstants import requires canonical name #704

Open alanachtenberg opened 4 years ago

alanachtenberg commented 4 years ago

Short description

Modifying class with field name constants some times causes build error in Intellij.

Building project or module will not resolve issue, but manually rebuilding directory will resolve issue temporarily at least.

Expected behavior

Build within intellij should work without build errors.

Version information

Steps to reproduce

What steps do we need to take to reproduce this issue?

  1. Create class A, B, C
    1. Add field name constants in B & C
    2. reference constants in A
    3. Build project
    4. Make some modifications to A B or C
    5. Build project.

Sample project

Please provide a sample project that exhibits the problem. You should also include .idea folder so we can inspect the settings.

Additional information

Seems to be intermittent and only caused by modifications to existing build and then building with changes. Fresh builds always work.

Stacktrace

Error:java: import requires canonical name for com.----.Fields and Error: java: cannot find symbol symbol: variable fieldNameOne location: class com.----.Fields

ultramagnus94 commented 3 months ago

is anybody here ? it's been quite a while