Model tree is reloaded after making changes to deployments

The model tree in Architect is reloaded every time a change is made to deployment

1 Like

We should ignore changes in model directory while saving any file. Make sure the system watch dog waits for more changes before reacting.

It would also be good to be able to run atchitect and server on the same model. Changes made in Architect would cause server to reload the updated model.

The model reloading in architect was caused by orphan external files. These files were not referenced anywhere which means they were not included in the file hash index.
image

Should the model consistency check mention these files? That would be nice.

Can you please explain why is this important here? Is it only important when creating a package or also in other cases?

The use of RunWithInactiveFileEventQueue was just a refactoring. The original author @JiriPrajz can probably explain the intent better.

This was fixed because @zcapkova reported this issue at 2020-01-08.

When creating a new project an error appears after the wizard runs through and you select update deployment scripts.

========================================
Error
Exception on timer
Object reference not set to an instance of an object.
========================================
Stack trace
at Origam.DA.Service.FileEventQueue.FindPersistenceFileHash(FileInfo file)
at Origam.DA.Service.FileEventQueue.NeedsUpdate(FileInfo file)
at Origam.DA.Service.FileEventQueue.ShouldBeUpdated(FileInfo file)
at Origam.DA.Service.FileEventQueue.ProcessAccumulatedEvents()
at Origam.DA.Service.FileEventQueue.TimerElapsedHandler() at Origam.DA.Service.FileEventQueue.<>c__DisplayClass17_0.<TimerElapsedHandler>b__0(Object _)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.