Merging Branches with MLAPP files - Can't merge layout changes

조회 수: 13 (최근 30일)
Joel Berkson
Joel Berkson 2024년 7월 11일
댓글: Ahad 2025년 3월 26일
I have been developing some pretty complicated matlab apps, and have begun collaborating on them with a colleague, but we've found that the merge tool does not allow for merging the automatically generated code e.g. layouts, adding callbacks etc. I have read multiple issues posted to the community, and the closest one to an answer describes unzipping the mlapp file merging, and rezipping. This can work, but is far too risky if the way App Designer ingests data changes in the future, which would render our code unusable and unedittable.
Of course, we could export to an M file and merge there, but then we lose the ease of changing layouts in App Designer. This all seems like a lose-lose situation, is there any prospect of adding the ability to merge the whole mlapp file?
  댓글 수: 2
Daniel Bauer
Daniel Bauer 2025년 1월 22일
Same issue here... Do you have any solution by now?
Ahad
Ahad 2025년 3월 26일
I've had the same issue as well.
If origin/main accepts a pull-request from origin/feature_2 and origin/feature_1 does a rebase, how do they rebase their /feature_1 branch from /main if there are edits to the "Design Viewer" portions of code that the MATLAB code comparison can't merge in from generated sections of code?
While the Comparison and Export tools are useful, I've discovered that they're not enough to resolve merge conflicts with multiple developers contributing to a single App. What does Mathworks recommend in this situation?

댓글을 달려면 로그인하십시오.

답변 (1개)

Ashutosh Thakur
Ashutosh Thakur 2024년 7월 15일
Hello Joel,
I understand that you are facing issues with merging MLAPP files using version control tools like Git. Starting from MATLAB R2020b, you can use the MATLAB comparison tool to merge different MLAPP files. The following documentation link provides tips for successfully merging different files: https://www.mathworks.com/help/matlab/matlab_env/compare-and-merge-apps.html.
Additionally, MATLAB supports version control integration, which also works for MLAPP files. For more information, refer to the following documentation link: https://www.mathworks.com/help/matlab/source-control.html?s_tid=CRUX_lftnav.
This MATLAB Answer provides more information regarding merging and integration with version control in MATLAB: https://www.mathworks.com/matlabcentral/answers/524615-can-i-integrate-mlapp-files-from-app-designer-with-git-source-control?s_tid=answers_rc1-3_p3_Topic.
I hope this information helps you!
  댓글 수: 1
Joel Berkson
Joel Berkson 2024년 7월 17일
Thank you for your response, but this is not the issue that was described in my post. All of the comparison tools to not allow for merging generated code (function callbacks, gui layout etc) and it causes a huge pain for us. We have no other problems other than that

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2024a

Community Treasure Hunt

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

Start Hunting!

Translated by