Issue defining FPP event with multiple string parameters #4060
sharifzadeh
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello F´ team,
I am working on a custom component (Morse2ASCII) and I have run into an issue defining an event with multiple string parameters. Specifically, I would like to log both the input text and the resulting Morse code. My FPP snippet looks like this:
event Encoded(
input: string size 128
morse: string size 256
) severity activity high format "ENC '{}' -> '{}'"
However, whenever I try to generate the project (fprime-util generate), the build fails with parser errors (most commonly “) expected” pointing at the string parameter lines):
CMake Error at lib/fprime/cmake/utilities.cmake:595 (message):
-- Configuring incomplete, errors occurred!
[sub-build] Failed to execute: info-cache/fpp_locs:
fpp-locate-defs
/../MyFirstProject/Components/Morse2ASCII/Morse2ASCII.fpp:8.7
text: string size 128
^
error: ) expected
gmake[3]: *** [CMakeFiles/fpp_locs.dir/build.make:74: locs.fpp] Error 1
gmake[3]: *** Deleting file 'locs.fpp'
gmake[2]: *** [CMakeFiles/Makefile2:2900: CMakeFiles/fpp_locs.dir/all]
Error 2
gmake[1]: *** [CMakeFiles/Makefile2:2907: CMakeFiles/fpp_locs.dir/rule]
Error 2
gmake: *** [Makefile:124: fpp_locs] Error 2
Call Stack (most recent call first):
lib/fprime/cmake/sub-build/sub-build.cmake:66 (execute_process_or_fail)
lib/fprime/cmake/FPrime.cmake:163 (run_sub_build)
lib/fprime/cmake/FPrime.cmake:233 (fprime_initialize_build_system)
CMakeLists.txt:13 (include)
I have tried different variations, such as:
Unfortunately, all attempts end in a similar parser error during the fpp-locate-defs step.
Could you please clarify the correct syntax for defining events with multiple string parameters, or confirm whether this is a limitation/bug in the current FPP version?
System details:
Thanks for your guidance,
Amir
Beta Was this translation helpful? Give feedback.
All reactions