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
IDEA Version: IntelliJ IDEA 2019.2.3 (Ultimate Edition)
Build #IU-192.6817.14, built on September 23, 2019
Runtime version: 11.0.4+10-b304.69 x86_64
Non-Bundled Plugins: FitNesse, Lombook Plugin, org.sonarlint.idea
JDK Version: jdk1.8.0_201
OS Type & Version: Mac OS 10.13.6 but issue is observed on 10.14.x as well as windows 10 amongst other team members machines
Lombok Plugin Version: 0.27-2019.2
Lombok Dependency Version: 1.18.6
Steps to reproduce
What steps do we need to take to reproduce this issue?
Create class A, B, C
Add field name constants in B & C
reference constants in A
Build project
Make some modifications to A B or C
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.
[ ] Sample project provided
[ ] I am able to reproduce this error on the sample project by following the steps described above
Will try and create a sample project when i have time.
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
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?
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