Community
Participate
Working Groups
In org.eclipse.sphinx.xtendxpand.jobs.CheckJob, evaluation requests are executed within a read transaction on the editing domain. When an error occurs during execution of this transaction, an error status is creating and returned: try { ... editingDomain.runExclusive(runnable); ... } catch (Exception ex) { return StatusUtil.createErrorStatus(Activator.getPlugin(), ex); } In org.eclipse.sphinx.xtendxpand.jobs.M2TJob, where CheckJob requested for running, the result status is got; and an OperationCanceledException is thrown when severity of status is ERROR. This exception is directly caught and a CANCEL_STATUS is returned by runInWorkspace. The problem is that once CANCEL_STATUS is returned, we have lost error (and associated message) that previously occurred during execution of read transaction and there is more possibility for logging any entry in Error Log.
I guess similar behavior can be observed with XpandJob and XtendJob.
Created attachment 223522 [details] Correction proposal Attached patch suggests to add an entry in Error Log thanks to PlatformLogUtil in CheckJob, XpandJob and XtendJob. If there is any other way to fix this trouble, please let me know.
Closed stale issue before migration