Skip to content

Updating the settings.ini file to refer to a new config folder path doesn't appear to work, even after generation #4612

@keck-in-space

Description

@keck-in-space
F´ Version 4.1.1
Affected Component Build System

Problem Description

Unable to reconfigure F Prime when setting the config directory to a custom location with the settings.ini file.

Context / Environment

Execute fprime-util version-check and share the output.

Operating System: Linux
CPU Architecture: x86_64
Platform: Linux-6.8.0-90-generic-x86_64-with-glibc2.35
Python version: 3.10.12
CMake version: 3.26.0
Pip version: 25.3
Pip packages:
    fprime-tools==4.1.0
    fprime-gds==4.1.0
    fprime-fpp==3.1.0
Project submodules:
    https://github.com/nasa/fprime.git @ v4.1.1

How to Reproduce

  1. fprime-bootstrap project, accept defaults
  2. cd my-fprime-project
  3. source fprime-venv/bin/activate
  4. fprime-util new --deployment, accept defaults
  5. cp -r lib/fprime/default/config .
  6. make the settings.ini file look like this:
[fprime]
project_root: .
framework_path: ./lib/fprime
config_directory: ./config

default_cmake_options:  FPRIME_ENABLE_FRAMEWORK_UTS=OFF
                        FPRIME_ENABLE_AUTOCODER_UTS=OFF

  1. fprime-util generate
  2. modify the config/FpConstants.fpp file to set the following variable: constant FW_CMD_STRING_MAX_SIZE = 100
  3. fprime-util build -j$(nproc)
  4. fprime-gds
  5. send this command: FileHandling.fileDownlink.SendFile, "thisfilepathislongerthanthedefaultof40characters", "dest"
  6. see error: FileHandling.fileDownlink.SendFile completed with error FORMAT_ERROR

Expected Behavior

The command should not result in a FORMAT_ERROR since the FW_CMD_STRING_MAX_SIZE was set to 100, and the desired file path is only 49 characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    CCB

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions