Closed AlexWeinstein92 closed 3 months ago
The two errors resulted from use of FooState and should have just referenced the entity, Foo. Evan after correction, we still get:
[error] Error: riddlc/src/test/input/issues/584/Foo/foo.riddl(11:55):
Path 'Foo.FinalFooState.FinalFoo' was not resolved, in OnMessageClause 'On command FooStateChange'
because definition 'FinalFoo' was not found inside Record 'FinalFooState'
and it should refer to a Handler:
become entity FooContext.Foo to handler Foo.FinalFooState.FinalFoo
^
and
[error] Error: riddlc/src/test/input/issues/584/Foo/foo.riddl(18:53):
Path 'Foo.InitialFooState.FinalizeFoo' was not resolved, in OnMessageClause 'On command FooStateChange'
because definition 'FinalizeFoo' was not found inside Record 'InitialFoo'
and it should refer to a Handler:
become entity FooContext.Foo to handler Foo.InitialFooState.FinalizeFoo
^
The above messages occur because the reference to Foo.FinalFootState
resolves to the record type of its data content and it never finds the handler. It also needs to search the descendants of the state and not just the record type that holds the state.
See the Riddl-examples branch for riddl code related to errors