Error using Git source control with Simulink
I’m using MATLAB 2023a and Git for a Simulink Project (.prj). The project contains a "main" Simulink model that references several other models using Model Reference blocks. Most of these models also have test harnesses.
When I try to compare my model against its ancestor (or any Git revision), I get the following error pop-up:
Cannot open test harness ‘name-of-test’ as another model with the same name is currently open. Please close the other model before opening this harness
Additionaly, when comparing the "main" model, the comparison results show only changes in test harnesses but no differences in the actual model itself.
Important notes:
I am not editing the test harness
I don’t have any harness open during the comparison
Has anyone run into this behaviour? Is there a way to configure MATLAB/Simulink (or Git) to ignore test harness models during comparison so that only actual model changes are shown?I’m using MATLAB 2023a and Git for a Simulink Project (.prj). The project contains a "main" Simulink model that references several other models using Model Reference blocks. Most of these models also have test harnesses.
When I try to compare my model against its ancestor (or any Git revision), I get the following error pop-up:
Cannot open test harness ‘name-of-test’ as another model with the same name is currently open. Please close the other model before opening this harness
Additionaly, when comparing the "main" model, the comparison results show only changes in test harnesses but no differences in the actual model itself.
Important notes:
I am not editing the test harness
I don’t have any harness open during the comparison
Has anyone run into this behaviour? Is there a way to configure MATLAB/Simulink (or Git) to ignore test harness models during comparison so that only actual model changes are shown? I’m using MATLAB 2023a and Git for a Simulink Project (.prj). The project contains a "main" Simulink model that references several other models using Model Reference blocks. Most of these models also have test harnesses.
When I try to compare my model against its ancestor (or any Git revision), I get the following error pop-up:
Cannot open test harness ‘name-of-test’ as another model with the same name is currently open. Please close the other model before opening this harness
Additionaly, when comparing the "main" model, the comparison results show only changes in test harnesses but no differences in the actual model itself.
Important notes:
I am not editing the test harness
I don’t have any harness open during the comparison
Has anyone run into this behaviour? Is there a way to configure MATLAB/Simulink (or Git) to ignore test harness models during comparison so that only actual model changes are shown? test harness, git, source control MATLAB Answers — New Questions