Creating trigger on custom SObject

Issue #78 resolved
Matej Pinter created an issue

Today I was unable to create a trigger on one custom SObject I have created days ago. I have retrieved metadata and rebuilt OST, but couldn't find my SObject in dropdown at trigger creation.

Comments (6)

  1. Scott Wells repo owner

    Is the custom SObject represented in the OST properly? If so, does completion work properly for it? If it's there, you might try rebuilding caches and indices from the IC connection settings page and restart IDEA to ensure they're rebuilt properly.

  2. Matej Pinter reporter

    No it does not, even other standard SObjects doesn't work any more, like Account, Contact, Quote,... I have tried invalidate/restart caches in IDEA and building OST anew, but nothing works. Only auto-complete suggestions I get now are from code and classes I already have in project on disk. Only solution is to delete project and download it again, but that messes up git I have set so I would really love to get this fixed. Also if you could increase priority to blocker on this issue as on this state plugin doesn't work actually.

  3. Scott Wells repo owner

    Matej, just to clarify, are you saying that the SObject classes aren't actually present in the OST now? Also, can you take a look at the last comment I added on #75 and see if that helps? If not, please send your idea.log after generating the OST and, if you can, your module's .iml file so I can see whether something's gone wrong there.

  4. Scott Wells repo owner

    Here's another idea, Matej. I certainly understand your concerns about git, but you could create another project in parallel that does work properly and compare the relevant files to see why the current project isn't working. The relevant files in particular are (relative to the project root):

    • .idea/illuminatedCloud.xml
    • .idea/libraries/<your-connection-name>.xml
    • <module-name>/<module-name>.iml
    • IlluminatedCloud/<your-connection-name>/OfflineSymbolTable

    Just copy over whatever doesn't match from the new/working project into the old/broken project adjusting paths (most should be relative hopefully), connection names, module names, etc., as necessary. Do this while IDEA isn't running and then try to reopen the original project.

    Anyway, let me know. My guess is that it's just some config that's gotten into a bad state and should be correctable in-place once we know what it is. Sorry for the inconvenience, though!

  5. Matej Pinter reporter

    Only solution to fix this was to delete project and crate it anew. I can send specified filed next time it happens if needed.

  6. Scott Wells repo owner

    Sorry for the inconvenience, Matej. Please do let me know if this happens again for sure. The files listed above and the caches/indices are the only persistent aspects of IC, so it has to have been one of those. I'd be interested in knowing which it was and how it got into that state.

  7. Log in to comment