Why do Simulink requirement links not show up in generated code comments for Stateflow objects, when working with GITLAB ?

I have a BAT (Batch) script that opens up a project and generates code and report for a model with Stateflow objects. When I run this BAT script using command line or MATLAB GUI, then the requirement links of the Stateflow objects show up in the report and also in the generated code comments. But when the same BAT script is triggered on GITLAB through a code push i.e. the script is executed as a hook on GITLAB, then the requirement links (of the Stateflow objects) do not show up in the generated code comments. They do show up in the report though. 
Why does the requirement link not show up in the code comments when the BAT script is executed through GITLAB?

 Accepted Answer

To resolve this issue, verify the following:
  • Ensure the SLMX file is checked in on git. To understand the importance of SLMX files, execute the following command in the MATLAB R2020a command window to access the relevant documentation:
    >> web(fullfile(docroot, 'slrequirements/ug/requirements-link-storage.html'))
  • Verify that the GITLAB Windows service executing the BAT script has admin privileges.
  • Check the Model Configuration Parameters: Ensure that 'Stateflow object comments' and 'Requirements in block comments' are selected.
  • Ensure the MATLAB version on the local machine matches the MATLAB version running on the GITLAB service.
Please use the below link to search for the required information in the current release:

More Answers (0)

Products

Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!