Skip to content

🐛Template Files not Included #372

@SizzinSeal

Description

@SizzinSeal

Expected Behavior:

a PROS project, with IS_LIBRARY set to 1, should include all files specified in TEMPLATE_FILES regardless of whether those files are from another template

Actual Behavior:

a PROS project, with IS_LIBRARY set to 1, does not include files which are part of a template installed in the project, even if explicitly set in TEMPLATE_FILES

Steps to reproduce:

  1. Create an empty PROS project named dependency
  2. Add dependency.h file in the include directory
  3. Add dependency.h to TEMPLATE_FILES in
  4. Set IS_LIBRARY to 1
  5. Set LIBNAME to dependency
  6. Create [email protected] through pros make; pros make template
  7. Run pros c fetch [email protected] in the same directory as [email protected]
  8. Create an empty PROS project named template
  9. Set IS_LIBRARY to 1
  10. Set LIBNAME to template
  11. Install dependency by running pros c apply dependency
  12. Delete dependency.a in the firmware directory (see Issue 🐛Header-Only Templates Include Empty Binary #373 )
  13. Add template.h to the include directory
  14. add template.h and dependency.h to TEMPLATE_FILES
  15. create [email protected] through pros make; pros make template
  16. Run pros c fetch [email protected] in the same directory as [email protected]
  17. Extract the zip file
  18. Observe dependency.h is not in the include directory

System information:

Windows 11: Bug Reproduced
Linux (Ubuntu): Can't reproduce
macOS: Not Tested

PROS Version: 3.5.4

Additional Information

exclude_files = exclude_files.union(project.list_template_files())
seems to be where the files are excluded in the PROS CLI

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions