uninstall -f -all uininstalls zpm and encounters an error
Because of issues we have with module dependencies when we bump versions from say 1.5.0 to 1.6.0 in our registry we find we have to uninstall all of the modules. In the past we used to ro
uninstall -f -all oneOfOurModules
and this would work fine.
Now with the latest ZPM install when we do uninstall -f -all oneOfOurModules
we get the following error
`zpm:HSCUSTOM>uninstall -f -all rclib-rcipm
Uninstalling rclib-system [HSCUSTOM|rclib-system] Clean START [HSCUSTOM|rclib-system] Unconfigure START [HSCUSTOM|rclib-system] Unconfigure SUCCESS WARNING: Skipping mapped resource RC.JSON.Provider.CLS WARNING: Skipping mapped resource RC.SYS.Webserver.CLS Deleting class RC.System.Address Deleting class RC.System.AddressLookup....
Deleting class RC.REST.WebApplication [HSCUSTOM|rclib-system] Clean SUCCESS Uninstalling rclib-unittest [HSCUSTOM|rclib-unittest] Clean START [HSCUSTOM|rclib-unittest] Unconfigure START [HSCUSTOM|rclib-unittest] Unconfigure SUCCESS WARNING: Skipping mapped resource RC.UnitTest.AbstractTestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.DTLTestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.Generator.DTLTest.CLS WARNING: Skipping mapped resource RC.UnitTest.HL7TestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.IPM.CLS WARNING: Skipping mapped resource RC.UnitTest.Manager.CLS WARNING: Skipping mapped resource RC.UnitTest.Report.CLS WARNING: Skipping mapped resource RC.UnitTest.RestAPITestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.StreamTestCase.CLS WARNING: Skipping mapped resource RC.UnitTest.Studio.DTLTestWizard.CLS Deleting class RC.UnitTest.AbstractTestCase.... Deleting class RC.UnitTest.StreamTestCase Deleting class RC.UnitTest.Studio.DTLTestWizard [HSCUSTOM|rclib-unittest] Clean SUCCESS Uninstalling zpm [HSCUSTOM|ZPM] Clean START [HSCUSTOM|ZPM] Unconfigure START [HSCUSTOM|ZPM] Unconfigure SUCCESS [ZPM] Clean FAILURE *Error uninstalling zpm: ERROR #5002: ObjectScript error: <CLASS DOES NOT EXIST>%Clean+141^%IPM.Lifecycle.Base.1 %IPM.StudioDocument.Module Uninstalling rclib-rdm
*<CLASS DOES NOT EXIST>zDisplayError+2^%IPM.Main.1 %IPM.Repo.UniversalSettings HSCUSTOM 6d1>q `
- Is there a way to uninstall all of the application modules but not the newly implemented zpm module
- Is the uninstalling done in a logical way so it does it in reverse module dependncy order?
There should also be a separate command specifically for uninstall IPM itself as suggested by HSIEO-6864.
Re: "Because of issues we have with module dependencies when we bump versions from say 1.5.0 to 1.6.0 in our registry" - I spent some time trying to reproduce a similar case as unit test we can fix, but no luck - intermediate results (possibly still useful) are in https://github.com/intersystems/ipm/tree/ready-upgrade-issue
(it shouldn't be necessary to uninstall everything before upgrading.)
This issue will be scoped to just not uninstalling IPM itself when "uninstall -f -all" is called.
For the uninstalling in a smarter order, see issue #584