Cannot generate offline symbol table / "multiple elements found"

Issue #753 resolved
Oliver Heneghan created an issue

I'm new to IlluminatedCloud, so forgive me if I missed something. Upon creating a new project from my developer org, it attempts to generate the offline symbol table and gives the error: "Multiple elements found when a single type was requested" (screenshot attached). I've retried generating several times, but no luck. Each time, the last item to appear in the progress bar is "Loading class overlays: Variable", in case that's significant. The metadata seems to have been retrieved just fine.

I'm working with IlluminatedCloud version 1.8.0.7-idea14. IDEA details are:

IntelliJ IDEA 2017.2.3 Build #IU-172.3968.16, built on August 21, 2017 JRE: 1.8.0_152-release-915-b11 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Mac OS X 10.12.6

The developer org was refreshed within hours of creating the project.

I'm not seeing any illuminatedcloud lines in the logs. Please let me know if there's something specific to enable.

Comments (14)

  1. Scott Wells repo owner

    Oliver, do you mind sending me your idea.log (Help>Show Log in Finder/Explorer/Files)? You can email it to support@illuminatedcloud.com if you'd prefer. Hopefully that will provide more info on why this is happening.

  2. Oliver Heneghan reporter

    Cleared my logs and tried generating again just now. This time I'm seeing some pertinent bits. Attached above.

  3. Scott Wells repo owner

    Thanks, Oliver. So one thing you could do while I investigate this is disable Apply Class Overlays in your connection settings and then generate again. The end result will be an OST that's not quite as accurate for custom classes from installed managed packages, but system classes and SObjects will be exactly the same. I would say do that for the moment and I'll see if I can figure out anything on this error that you're seeing.

  4. Scott Wells repo owner

    For what it's worth, I think I already see the problem. I'll need to determine the correct way to handle the situation, though. I'll let you know if I need additional info from you.

  5. Scott Wells repo owner

    Oliver, I think I've figured it out. I'll post a test build here shortly for you to try out if you don't mind, then if it's all good, the fix will be included in the next official build.

  6. Oliver Heneghan reporter

    OK, perfect. I disabled Apply Class Overlays and got the Offline Symbol Table generation to complete. I'm not too worried about the managed packages, so I think I'm good to go. Thanks, Scott!

  7. Scott Wells repo owner

    Glad to hear on both counts. I have a prospective fix that I'm going to verify a little more and then I'll post it here for you to try out. You'll just need to re-enable Apply Class Overlays and verify that the OST generates successfully. I'll probably post it here in the next 15 mins or so, but feel free to verify whenever you'd like.

  8. Scott Wells repo owner

    Here you go, Oliver. You can install it using Settings>Plugins>Install plugin from disk. Then just re-enable Apply Class Overlays and regenerate your OST. Hopefully all goes well. Please let me know either way. Thanks!

  9. Scott Wells repo owner

    Oliver, you can just update to this morning's build as it includes the same fix. Let me know if you're not sure how to do that, and please let me know the results of a full OST gen once you get it. Thanks!

  10. Oliver Heneghan reporter

    Success! Got the update, turned Apply Class Overlays back on, and regenerated the OST without issue. Thanks for the great support, Scott!

  11. Log in to comment