App Designer can't open .mlapp file

75 ビュー (過去 30 日間)
René Lampert
René Lampert 2022 年 3 月 19 日
コメント済み: Image Analyst 2023 年 8 月 18 日
I have a massive propblem with a GUI in app Designer that I'm currently working on. I worked several week on this code and now I can't open the mlapp file anymore. The big problem is that I can't even open my code to debug - I have absolutely no idea what going on here. In the morning it worked fine but obviously I have an error somewhere in the code - but, as already mentioned, I can't take a look at the code.
I always get the following error:
Error using which
C:\Users\rene\Desktop\MATLAB\Kickbase Cup\KickGUI.mlapp: Can't open file.
Error in run (line 55)
pathscript = evalin('caller', strcat('which(''', script, ''')'));
I'm in desperate need of help.
Thanks
  3 件のコメント
Image Analyst
Image Analyst 2022 年 3 月 19 日
It's just a text file. Can you open it in a text editor or word processor? Does it look "normal" there? Maybe there are some weird characters somewhere in it that prevents it opening in app designer.
René Lampert
René Lampert 2022 年 3 月 20 日
restarting Matlab and/or the computer does not fix it....the txt. file is basically empty. I think its hopeless, the mlapp file seems to be damaged but no idea why that happened - its crazy and a disaster.
Thanks for your help

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

採用された回答

Image Analyst
Image Analyst 2022 年 3 月 20 日
Sorry for your loss. One other thing to try, before you do anything else is to see if there is a backup file with the same name but an extension of .asv.
You can set up making backups in your Set Preferences button on the home tab of the tool ribbon. Go to the Editor/Debugger -> Backup files section.
  1 件のコメント
René Lampert
René Lampert 2022 年 3 月 20 日
thanks for this hint - thats an important thing to know about. Unfortunately I can't find a backup file with with an extension of .asv.
I have to write everything again, there is no way to rescue my file.
Thanks

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

その他の回答 (2 件)

dijil hicham
dijil hicham 2022 年 11 月 19 日
Hi ,
I had the same problem. Unfortunately, I could not find a way to run the application. One solution to at least recover your source code is to create a blank project, then in the editor, click on "compare" and select your corrupted project. A window will appear with the source code.

Chao Chao
Chao Chao 2023 年 8 月 18 日
I had the same mistake just now. At first I want to try to change the suffix txt and expect to see the code. But the disappointment is that this mlapp is in binary file form.
Luckily all my code is backed up on onedrive. So I tried to restore the mlapp to the previous version a few days ago and temporarily cut the offending mlapp to the previous folder.
It is ridiculous that the restored version is still not usable! So I re-cut the problematic mlapp from the previous layer folder back to the original folder, and it actually worked again.
I can't figure out how. I have to say this is Schrodinger's mlapp
  1 件のコメント
Image Analyst
Image Analyst 2023 年 8 月 18 日

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

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by