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
When I add or rename a type, the locs.fpp files in the build directory do not get regenerated on the next build. This results in undefined symbol errors when I try to rebuild:
[1/22] Generating MyComponentComponentAi.xml
FAILED: MyComponent/MyComponentComponentAi.xml [...]/MyComponent/MyComponentComponentAi.xml
cd [...] && /usr/local/bin/fpp-to-xml -d [...]/MyComponent -i [... list of fpp files ...] -p [...]
fpp-to-xml
[...]/MyComponent/MyComponent.fpp:6.63
sync input port example: Components.MyComponent.ExamplePort
^
error: undefined symbol ExamplePort
The problem can be solved by purging and regenerating the build directory, but I should not have to do that every time I add a new type. Note that the problem CANNOT be solved by simply deleting either of the locs.fpp files. I encounter this problem both with the ninja-based build system and the regular make-based build system.
Context / Environment
Execute fprime-util version-check and share the output.
100% agree. This is an issue with CMake rebuild triggering. Will need to look into it. Given the work around, I've marked this as "Medium Priority", but am happy to escalate if there is a lot of desire for this fix.
Problem Description
When I add or rename a type, the
locs.fpp
files in the build directory do not get regenerated on the next build. This results in undefined symbol errors when I try to rebuild:The problem can be solved by purging and regenerating the build directory, but I should not have to do that every time I add a new type. Note that the problem CANNOT be solved by simply deleting either of the
locs.fpp
files. I encounter this problem both with theninja
-based build system and the regularmake
-based build system.Context / Environment
Execute
fprime-util version-check
and share the output.How to Reproduce
fprime-util generate --ninja
orfprime-util generate
.fpp
filefprime-util build
fprime-util purge
(enter yes)fprime-util generate --ninja
orfprime-util generate
fprime-util build
Expected Behavior
I should never need to purge the build directory to fix the build.
The text was updated successfully, but these errors were encountered: