Enable new Apex/VF templates which will generate cls-meta.xml files also
New user added cls templates don't generate cls-meta.xml files, they need to be manually created.
Comments (13)
-
repo owner -
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?
-
repo owner -
assigned issue to
- changed version to 1.6.4.0
- marked as bug
-
assigned issue to
-
repo owner - changed component to File Templates
-
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.
-
reporter Now it's working as expected.
-
reporter - changed status to resolved
works
-
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!
-
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?
-
repo owner I just created a new simple template for an Apex (non-lazy-initialized) singleton just to test this:
I then created a new Apex class based on that template which was properly available in the drop-down:
Both the Apex class file and the
meta.xml
file were created properly:Can you verify that you're setting up your file template as shown above?
-
Sure! Gimme just a sec and I’ll send over a similar document!
Zachary Buck Lead Software Engineer Join My Video Conferencehttps://hughesmarino.webex.com/meet/zacharybuck
HUGHES MARINO hughesmarino.comhttp://hughesmarino.com/
-
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/
-
repo owner Glad that helped! And to be fair, my documentation is pretty lacking. And thanks for the evangelism! Hugely appreciated! Take care...
- Log in to comment
Ah, interesting. I'll definitely address that soon! Thanks for the report.