-
Notifications
You must be signed in to change notification settings - Fork 0
Description
It seems that sometimes the felix bundles imported from AEM-IDE plugin get cached in out out-of-date state. I noticed this when trying to find the com.adobe.cq.wcm.translation.impl.process.CreateLanguageCopyProcess class and couldnt find it in IntelliJ. I went into AEM and found that it belonged to bundle498, which I then tracked to the dependency import from aem-ide. The felix import was labeled correctly as com.day.cq.wcm.cq-wcm-translation but when I opened the bundle.jar file to look at classes, a completely different code package was displayed.
See screenshot of BEFORE:
I tried restarting IntelliJ, it did not help.
I tried turning the OSGi import feature in AEM-IDE off and back on, it also did not help.
Finally I right clicked the bundle.jar and clicked Reload from Disk and this solved the issue.
See screenshot of AFTER:
I imagine this has something to do with frequently swapping between different AEM servers on my machine for different clients. The bug is pretty impactful, given that if I didnt actually know the class I was looking for it would have seemed that AEM simply didnt have the code I was looking for.