Delete Metadata not showing up when using Standard Delete
I’m using the standard delete operation in IntelliJ with a DevHub instance and when I delete a class or custom metadata the option to remove the metadata in the instance isn’t displayed.
Also, when removing classes, it would be nice if the related metadata file is deleted too. This creates conflicts between sources because after deleting a class, the .meta file raises an error when deploying the classes folder.
The version and build numbers of Illuminated Cloud:
The version and build numbers of the base IDE:
IntelliJ IDEA 2021.1.1 (Ultimate Edition)
Build #IU-211.7142.45, built on April 30, 2021
Licensed to Daniel W.
Subscription is active until June 9, 2021.
Runtime version: 11.0.10+9-b1341.41 amd64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: ParNew, ConcurrentMarkSweep
Memory: 1964M
Cores: 12
Non-Bundled Plugins: intellij.prettierJS (211.7142.13), org.jetbrains.kotlin (211-1.5.10-release-891-IJ7142.45), com.intellij.antbuild (203.2), org.jetbrains.plugins.ruby (211.7142.36), com.illuminatedcloud2.intellij (2.1.7.9), net.ashald.envfile (3.2.1)
Kotlin: 211-1.5.10-release-891-IJ7142.45
Operating system: Windows
Comments (5)
-
repo owner -
repo owner Also, do you have deploy-on-save enabled? If not, neither of these actions will occur. That's correct for the server propagation, but it's a bug for removal of the associated
meta.xml
file that I'll address for the next build. -
reporter Hello Scott,
Thanks for your quick response. That was the issue, I didn’t have the “Deploy on save“ option enabled. I’ve disabled that option since I work with multiple DevHub instances. I’ve enabled it and now it’s working as expected. Thanks!
-
repo owner Glad to hear, though this discussion definitely kicked over the aforementioned bug with IC2 not removing
meta.xml
files when deploy-on-save is disabled. I've already committed a fix for that for inclusion in this week's build, though. -
repo owner - changed status to resolved
Resolved the issue with
meta.xml
files not being removed properly when deploy-on-save is disabled in 2.1.8.0. - Log in to comment
Hi. IC2 should be prompting to remove the corresponding metadata in the org, and it should also be removing the
meta.xml
file for the deleted source file:Are you perhaps using the Delete from Server action and not the IDE's Delete action? If so, that may be the problem as the former is for removing metadata from the server without removing it locally, while the latter is for removing the metadata locally and will result in the propagation behavior displayed above. You can learn more in the following user guide topic:
https://bitbucket.org/RoseSilverSoftware/illuminatedcloud/wiki/User_Guide/Removing_Metadata.md