Enable new Apex/VF templates which will generate cls-meta.xml files also

Issue #138 resolved
Zoran Žunko created an issue

New user added cls templates don't generate cls-meta.xml files, they need to be manually created.

Comments (13)

  1. Scott Wells repo owner

    I played with this a bit today and was unable to reproduce it. I did see that under IDEA 14+, newly-created file templates aren't available for use until after you close/reopen the project and have fixed that for the next update. However, I'm seeing *-meta.xml files being created for Apex classes/triggers and Visualforce pages/components based on custom file templates.

    Can you let me know which version of IDEA you're using when this happens, and can you also see if there's anything useful in idea.log that might indicate a reason for it?

  2. Scott Wells repo owner

    I delivered an improvement under IDEA 14+ in 1.6.4.0 today. I'll leave this issue open for additional diagnostic info, though.

  3. Scott Wells repo owner

    Glad to hear though I don't like issues that exist and then don't like this. Please let me know if it happens again and see if there's anything in the log that might indicate the reason. Thanks!

  4. Zachary Buck

    I still have this problem, and I'm not sure why. I'm attempting to create a template for batch jobs, and it never generates the metadata to go with it. Drives me BONKERS. I'm on 2.0.3.9, though I've been seeing it since the 1.0 days. Is there something I need to specify somewhere to get it to generate the XML file with it?

  5. Scott Wells repo owner

    I just created a new simple template for an Apex (non-lazy-initialized) singleton just to test this:

    Issue138.png

    I then created a new Apex class based on that template which was properly available in the drop-down:

    Issue138_2.png

    Both the Apex class file and the meta.xml file were created properly:

    Issue138_3.png

    Issue138_4.png

    Can you verify that you're setting up your file template as shown above?

  6. Zachary Buck

    facepalm

    There are TWO ways to create the file! I didn’t know about the second. MAN!

    I was creating it like this… [cid:507CD10B-D9A4-4F11-A9A4-F2931DCFD95F]

    …instead of like this…

    [cid:90E3663B-7D06-4537-AAD1-C6EF14662400]

    HUH. The more you know. 🌠

    By the way… that first way DOES NOT generate the xml file, which I suspect isn’t a surprise. Man, your documentation even has the appropriate screenshot.

    As always, thank you for the prompt reply.

    As a side note, I moved away from my small company into a bigger one, and Illuminated Cloud is now part of the standard package for our developers. 🙂 Thank you for always being so prompt and on point!

    Zachary Buck Lead Software Engineer Join My Video Conferencehttps://hughesmarino.webex.com/meet/zacharybuck

    HUGHES MARINO hughesmarino.comhttp://hughesmarino.com/

  7. Scott Wells repo owner

    Glad that helped! And to be fair, my documentation is pretty lacking. And thanks for the evangelism! Hugely appreciated! Take care...

  8. Log in to comment