-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Files in include Folder Removed After Compiling with lfc #2203
Comments
Thanks for the bug report, @Depetrol. We will work on this and push a fix. |
I think that this is probably because we generate some headers and keep them in a user-facing (not in src-gen) directory. When the headers are re-generated, we probably delete the whole directory. Probably the right way to solve this is to rename the directory for the generated headers from |
I like the |
Oh, so the problem is that this example has an Renaming "our" I see two solutions:
|
This is complicated by the fact that the C target does not work in the same was as the C++ target. In the C target, some headers are generated by the code generator I'm not sure if it makes sense to try to unify the behavior of the two targets. |
Ok, those files should go into
Yes, in the C++ target the include directory is part of the compilation artifacts (like the
I think we should, it's just unclear what the best solution would be. |
This works for me. I'll go along with whichever directory layout we can get everyone on board with. |
lf-lang/rfcs#11 discusses project layout/directory structure. |
Yes, we also discussed the overlap between this issue and the new RFC in the last developer meeting. However, we resolved to focus lf-lang/rfcs#11 on where we place LF code, and not where and which directories we generate. This is a different concern that should be handled in another RFC. |
Issue Description
I encountered this issue when attempting to run the CARLA simulator with Lingua Franca following this instruction. When compiling
carla_sync.lf
which referencesinclude/carla_client.py
,carla_client.py
within theinclude
folder has been deleted.This leads to test failures in the PR and should not be the expected behavior.
Temporary Fix
Move files in the include folder elsewhere, and change the file references. In the case of CARLA simulator, move
include/carla_client.py
to the parent/workspace folder and changecarla_sync.lf
:Proposed Fix
Ensure files in the include folder are retained after compilation, or issue a warning during the compilation process to notify the user that files in the include folder might be removed.
The text was updated successfully, but these errors were encountered: