Appdesigner specific file edition issue

22 Ansichten (letzte 30 Tage)
Cyrille
Cyrille am 29 Dez. 2025
Beantwortet: Cyrille am 6 Jan. 2026
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 Kommentare
dpb
dpb am 30 Dez. 2025
Bearbeitet: dpb am 30 Dez. 2025
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 am 30 Dez. 2025
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

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Cyrille
Cyrille am 6 Jan. 2026
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.

Weitere Antworten (0)

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Produkte


Version

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by