- attached IlluminatedCloud2.zip
Issue with certain feature-based SObject variants during OST generation
This started via an email discussion with a user, but basically it manifests as unresolvable references to some feature-based SObject name variants. The underlying issue is that IC isn't properly understanding that MyObjectName__Feed
, `MyObjectName__VersionHistory
, and a few others are actually SObjects and not Feed
, VersionHistory
, etc., in the MyObjectName
namespace. IC was already handling several of these feature-based SObject name variants properly, but some were missing.
Comments (14)
-
reporter -
Unfortunately, this update doesn’t seem to have solved the problem for me (can’t resolve a custom object __share object). I installed the plugin from disk, restarted IDEA, generated the OST for All SObjects (not everything, just SObjects), let it reindex, and still get the same ‘Cannot resolve symbol’ error. That object is set to private sharing OWD in the org.
-
reporter Thanks for confirming, Gustavo. Let me play with it a bit and see if I can reproduce it. I'll let you know shortly.
-
reporter Gustavo, I just changed the sharing model for one of my SObjects to
private
, deployed, and regenerated the OST. I can see the corresponding__Share
object in the OST, and it works properly for code completion, etc.:Am I misinterpreting the issue that you're having? Perhaps I'm trying to reproduce the wrong thing?
-
reporter - changed status to resolved
Fix for original issue delivered in 2.0.6.9. Gustavo, I'll work with you on the one you're seeing either via this issue or a new, dedicated one.
-
Interesting, yeah, that’s pretty much the exact problem I’m having. Let me try reinstalling the plugin and trying again.
-
Installed 2.0.6.9 and I see the Share object in the OST, but still getting unresolved symbol errors. So it might be something specific to my local environment. This Macbook Air is running low on memory
-
reporter I wouldn't think it would be a low memory thing. You'd see
OutOfMemoryError
and similar, not very specific, consistently-reproducible resolution issues. What's the name of the object that's shared? Perhaps there's something special about that one object's name. Do you see anything else in the OST suspicious around the base name, e.g., a namespace/folder with the same base name? -
Can you email me? I’ll DM you on twitter (don’t want the class name public)
-
reporter - attached IlluminatedCloud2.zip
Gustavo, please install this build, regenerate your OST, and let me know if that doesn't resolve the issue for you.
-
That worked. I had to delete the original OST and generate a full one, then restart the IDE and now I have symbols for the __Share object
-
reporter Okay, great! Sit tight on that build and the same change will be in the next official build. When prompted to update to 2.0.7.0, feel free to do so safely.
-
Sounds great! As always, thanks for the speedy resolution!
-
reporter Delivered the fix for Gustavo's issue in 2.0.7.0.
- Log in to comment
Here's a test build with the prospective fix. To install just download the attached archive--do not extract it--and use Settings/Preferences>Plugins>Install plugin from disk (under the gear drop-down). Restart as requested. Once the IDE restarts, regenerate the OST and see if things are fixed.