It is annoying. Bug 378815 / 485454 propose adding a 'transient' flag for elements in the model that should not be persisted. We'd then have non-persisted editors add this flag to the MPart.
But Erdal, you should really fix your tests to start with a fresh workspace. Brian. > On 23-Apr-2018, at 4:22 AM, Erdal Karaca <[email protected]> wrote: > > In addition to the input given by Tom: > For us, this manifests in randomly failing test suits as for some tests the > application is killed instead of shutting down the workbench properly. Now, > if the test execution machine is exhausted, the 5 minutes limit may trigger > the auto-save job and the next test may be started with an invalid workbench > model. > > 2018-04-23 9:43 GMT+02:00 Ed Merks <[email protected] > <mailto:[email protected]>>: > Yes, I've noticed too (while debugging) that if you kill the application, any > open editors that shouldn't be persisted are persisted nevertheless and are > reopened on the next start, which of course fails. > > Regards, > Ed > > > > On 23.04.2018 09:41, Tom Schindl wrote: > Yes there is a timer running (and there's even preference value). My > guess is that the cleanup of the model is done directly before shutdown. > > Tom > > On 23.04.18 09:38, Erdal Karaca wrote: > Hi devs, > I observed the following behavior of the platform: it seems to randomly > persist the application model at run time. Now, if the application > process is killed (or not properly shut down), the platform will reload > that intermediate model which leads to duplicated model entries, for > example, any active dynamic menu items or toolbar items. This only > happens if -clearPersistedState is not set/provided. > > Do you know of such a mechanism and what it is good for? > > Thanks. > > Erdal > > > _______________________________________________ > platform-dev mailing list > [email protected] <mailto:[email protected]> > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/platform-dev > <https://dev.eclipse.org/mailman/listinfo/platform-dev> > > _______________________________________________ > platform-dev mailing list > [email protected] <mailto:[email protected]> > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/platform-dev > <https://dev.eclipse.org/mailman/listinfo/platform-dev> > > _______________________________________________ > platform-dev mailing list > [email protected] <mailto:[email protected]> > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/platform-dev > <https://dev.eclipse.org/mailman/listinfo/platform-dev> > > _______________________________________________ > platform-dev mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/platform-dev
_______________________________________________ platform-dev mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/platform-dev
