Open kbotteon opened 1 week ago
@bocchino can you weigh in?
As matters currently stand, (1) you cannot use a type alias like FwFooType
in the GDS interface and (2) the FPP checker does not enforce this rule -- it lets the type through so the error occurs in the GDS as reported. We have an open issue https://github.com/nasa/fpp/issues/113 to fix (1) and an open issue https://github.com/nasa/fpp/issues/236 to fix (2).
Until these issue are closed, you just have to know the rules and obey them manually. I anticipate that (2) will be fixed before (1). That is, step 1 of the fix will be that you can't use FwFooType
in the GDS interface but the checker will enforce the rule; and step 2 of the fix will be that the model knows what the alias for FwFooType
is, so you can use it in the GDS interface.
Finally, in any event you should avoid using NATIVE_INT_TYPE
. As of FPP v2.1.0, this type will no longer be supported. You should switch to using a fixed-width type like FwSizeType
or FwIndexType
.
Problem Description
An event, and presumably other typed elements, can be specified with an argument of type
NATIVE_INT_TYPE
and this will build fine. However, when launching GDS, it fails withContext / Environment
Execute
fprime-util version-check
and share the output.How to Reproduce
Introduce an event like
Then build and run GDS.
Expected Behavior
Either the application should fail to compile, or GDS should start with the resulting dictionary.