Appdesigner specific file edition issue

58 ビュー (過去 30 日間)
Cyrille
Cyrille 2025 年 12 月 29 日 19:37
回答済み: Cyrille 2026 年 1 月 6 日 13:32
After opening a specific .mlapp, each time I go back to the file tab inside appdesigner, I receive an dialog window : "The file has been modified outside of MATLAB Editor. Do you want to reload it?"
I have this problem only with one specific mlapp file. I have other mlapp files in the same directory for which this issue does not appear.
All these mlapp files are saved locally. They were created from guide apps, using Matlab migration tool.
This issue appears since the mlapp file creation with all the different Matlab releases I used since (R2025a on Linux now).
  9 件のコメント
dpb
dpb 2025 年 12 月 30 日 16:38
編集済み: dpb 2025 年 12 月 30 日 19:43
If moving the .mlapp file alone to another clean machine/install results in the same symptoms, then it definitely is something inside the file structure/content itself that is triggering the editor to think it is/has been modified outside app designer and only Mathworks internal knowledge will be able to ferret out the cause.
There are specific formats app designer uses to locate pieces-parts of the app and if one of those is slightly different in expected specific format or content, that probably is why it is triggered and why it won't go away because the specific malformed line never gets corrected as it is somewhere in the auto-generated section(s), not in the user-editable code.(*)
If it isn't too large an app and you do still have a copy of the original GUIDE implementation, might just try reconverting instead of continuing to futz with this version...
(*) You might try opening the file in the editor externally and comparing the various section headings to another .mlapp file that doesn't show the same symptoms. You might be able to find an extra linefeed or a missing comment line or somesuch that doesn't quite match the machine-generated template and be able to fix to look like the other. Make backups first before doing such, of course...
Cyrille
Cyrille 2025 年 12 月 30 日 20:26
I opened a ticket and uploaded the .mlapp file. I will let you know the answer once it is resolved. I hope I won't have to redo the app migration

サインインしてコメントする。

採用された回答

Cyrille
Cyrille 2026 年 1 月 6 日 13:32
Here is the solution from Matlab helpdesk :
the solution to avoid the dialog box appearance is to check 2 options in Matlab settings :
  • In "Editor/Debugger": Check the option "Reload unedited files that have been externally modified".
  • In "Editor/Debugger" / "Saving" : Check the option "Save changes upon clicking away from a file."
  • If these options are already enabled, try unchecking and rechecking them.
I had a secondary issue. Each time I open this specific file, 1 second after the file is open in appdesigner, a star appears next to the file name in the tab as if I did some modification in the file (I had no time to modify anything). When I want to close it, even if I did no modification since I opened it, I am asked to save the file.
The problem was due to a non standard character for the Tag property for one of the app component. I did not intend to put this character. I don't know if it was created by the GUIDE app migration or if it is a typo I did.
I changed the Tag string with standard characters to solve the issue.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

製品


リリース

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by