You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Note these errors currently don't occur when changing the semantic domain of the first sense due to #1073.
If I try to update the semantic domain to 2 semantic domains (or just one, but I think it worked with one a few times, so I'm not sure), I get this stack trace:
[fw-lite:local-web-app] fail: Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher[8]
[fw-lite:local-web-app] Failed to invoke hub method 'UpdateSense'.
[fw-lite:local-web-app] System.InvalidCastException: Unable to cast object of type 'System.Text.Json.JsonElement' to type 'MiniLcm.Models.SemanticDomain'.
[fw-lite:local-web-app] at LcmCrdt.Utils.JsonPatchRewriter.RewriteChanges[T,TProp](JsonPatchDocument`1 patchDocument, Expression`1 expr, Func`4 changeFactory)+MoveNext() in D:\code\languageforge-lexbox\backend\FwLite\LcmCrdt\Utils\JsonPatchRewriter.cs:line 59
[fw-lite:local-web-app] at LcmCrdt.Objects.Sense.ChangesFromJsonPatch(Sense sense, JsonPatchDocument`1 patch)+MoveNext() in D:\code\languageforge-lexbox\backend\FwLite\LcmCrdt\Objects\Sense.cs:line 41
[fw-lite:local-web-app] at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection)
[fw-lite:local-web-app] at LcmCrdt.CrdtMiniLcmApi.UpdateSense(Guid entryId, Guid senseId, UpdateObjectInput`1 update) in D:\code\languageforge-lexbox\backend\FwLite\LcmCrdt\CrdtMiniLcmApi.cs:line 299
[fw-lite:local-web-app] at LocalWebApp.Hubs.MiniLcmApiHubBase.UpdateSense(Guid entryId, Guid senseId, JsonPatchDocument`1 update) in D:\code\languageforge-lexbox\backend\FwLite\LocalWebApp\Hubs\MiniLcmApiHubBase.cs:line 83
[fw-lite:local-web-app] at LocalWebApp.Hubs.CrdtMiniLcmApiHub.UpdateSense(Guid entryId, Guid senseId, JsonPatchDocument`1 update) in D:\code\languageforge-lexbox\backend\FwLite\LocalWebApp\Hubs\CrdtMiniLcmApiHub.cs:line 55
[fw-lite:local-web-app] at lambda_method25(Closure, Object)
[fw-lite:local-web-app] at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.ExecuteMethod(ObjectMethodExecutor methodExecutor, Hub hub, Object[] arguments)
[fw-lite:local-web-app] at LocalWebApp.Hubs.LockedProjectFilter.InvokeMethodAsync(HubInvocationContext invocationContext, Func`2 next) in D:\code\languageforge-lexbox\backend\FwLite\LocalWebApp\Hubs\LockedProjectFilter.cs:line 12
[fw-lite:local-web-app] at Microsoft.AspNetCore.SignalR.Internal.DefaultHubDispatcher`1.<Invoke>g__ExecuteInvocation|18_0(DefaultHubDispatcher`1 dispatcher, ObjectMethodExecutor methodExecutor, THub hub, Object[] arguments, AsyncServiceScope scope, IHubActivator`1 hubActivator, HubConnectionContext connection, HubMethodInvocationMessage hubMethodInvocationMessage, Boolean isStreamCall)
If I replace the only semantic domain on a sense with a different one, I get this stack trace:
Describe the bug
Note these errors currently don't occur when changing the semantic domain of the first sense due to #1073.
If I try to update the semantic domain to 2 semantic domains (or just one, but I think it worked with one a few times, so I'm not sure), I get this stack trace:
If I replace the only semantic domain on a sense with a different one, I get this stack trace:Moved to #1099
If I remove all the semantic domains I get this stack trace:
The text was updated successfully, but these errors were encountered: