Reputation:
I am writing a simple app:
@Slf4j
public class MyApp {
public static void main(String[] argv) {
log.info("hello world!");
}
}
This code compiles just fine, and indeed, when run I see "hello world!" being logged out. Intellij however doesn't agree this works. I am constantly getting "Cannot resolve symbol log" even though this works and it compiles. Here's what I have done:
All other Lombok annotations seem to work fine.
I am using Intellij 2018.1 Ultimate. Is there something I'm missing here?
Upvotes: 1
Views: 5863
Reputation: 4587
Yes, this one! Either wait till lombok plugin supports Intellij 2018.1
or downgrade the IDE.
EDIT:
Above answer is outdated and issue can be fixed by following this anwer.
Upvotes: 3