Closed sobkulir closed 1 year ago
Here are my answers:
With regard to the recommended workflow, here is what I do when developing F Prime with a non-released version of FPP:
Note: I just built fprime/Ref with a branch of fpp that's ahead of main. It builds fine. You may want to try wiping out the build caches and trying again. If it still doesn't work, see if you can build fprime/Ref with your fpp branch.
Also, note that fpp/main does more C++ code generation than the FPP version that fprime/devel expects. This should work, but it's possible that the CMake build cache is getting confused. If so, then wiping out the build cache should make the problem go away.
Thanks a lot for your answer! I think you are not wiping the build caches haha 🙃 F' does a small in-source build of the following files:
Autocoders/Python/src/fprime_ac/generators/templates/**/**.py
Can you please try also wiping those and rebuilding? I used
ls -d Autocoders/Python/src/fprime_ac/generators/templates/**/**.py | sed '/.*__init__.py/d' | xargs -I{} rm -r "{}"
Maybe I'm missing something, but I created a PR that fixes the issue for me: https://github.com/nasa/fprime/pull/2044
Sounds good! I'm closing this issue as the PR was merged.
Hello,
I'm working on a port for Zephyr (https://github.com/sobkulir/fprime-zephyr-app) and I need to add a few changes to the
fpp-to-cpp
tool (https://github.com/nasa/fprime/discussions/2026). Therefore, I branched fromfpp@main (71932e3)
and added my changes, however, the app does not build withfprime@devel (ccb974a)
with the following error:The python autocoder files under
Autocoders/Python/src/fprime_ac/generators/templates/**/**.py
seem to not get generated in the build. I'm not sure whyfpp
affects this, however, when trying to build the same app withfpp@v1.2.0
it worked.I did not bisect the error because maybe this is the intended behavior. Therefore, I have the following questions: 1) If this is intended? If yes, what is the recommended workflow for developing
fpp
withfprime
? 2) The non-release build offpp
seems to be quite slow (I usecompiler/install
script) and the release build takes a lot of time to compile (compiler/release
). I use the following to getsbt
andgraal
: https://github.com/sobkulir/fprime-zephyr-app/blob/main/Dockerfile#L83 and alsoexport FPP_SBT_FLAGS='--batch -Dsbt.server.forcestart=true'
. Do you just bear with this or can you recommend a better way? (This is also why I didn't bisect the error and rather created an issue)