App Designer not Saving New Codes
Mostrar comentarios más antiguos
Hello Everyone,
My app designer is not saving new codes....It shows the * sign and when I save, it does not save the new code. I then have to shut down sometimes and the code still remains like the old code without the new code...Please advise me on what to do.
Cheers
13 comentarios
Walter Roberson
el 4 de Ag. de 2021
Does that include when you ask to "Save as" ?
At the risk of sounding obvious: is your disk full?
DARLINGTON ETAJE
el 4 de Ag. de 2021
DARLINGTON ETAJE
el 5 de Ag. de 2021
Walter Roberson
el 5 de Ag. de 2021
How did you solve the problem?
DARLINGTON ETAJE
el 5 de Ag. de 2021
DARLINGTON ETAJE
el 6 de Ag. de 2021
DARLINGTON ETAJE
el 6 de Ag. de 2021
DARLINGTON ETAJE
el 6 de Ag. de 2021
Walter Roberson
el 6 de Ag. de 2021
You will probably need to create a support case for this.
I myself almost never use App Designer at all, and I only use matlab on Windows to check compatibility, not to do development.... so I do not have the experience to make any suggestions.
Jacek Jagosz
el 8 de Nov. de 2022
Editada: Jacek Jagosz
el 8 de Nov. de 2022
The problem appeared for me, on R2022b. I open an app made with R2020b, after I open it says the code got converted from R2020b to R2022b, but I checked and the code is exactly the same.
When I change any line of code, or app desription and press save, it will never get saved. I can use the app designer just fine, but the * symbol will never disappear, and the changes will never get saved. Doing save as and trying to overwrite the app file will lead to app designer crashing. Even saving in directory above also causes it to crash
But I can export the app to .m just fine, and save it to the app folder. And I can save the app (save as) will work just fine when I save to desktop. So I can workaround it, by saving elsewhere and then moving the file, but it is annoying.
I am on Linux, BTW, I checked all file permissions are correct, and the file system is EXT4. The app folder is a GIT repository, but I can't save a directory above either, where it isn't a GIT repository.
Walter Roberson
el 9 de Nov. de 2022
I notice you are using Linux. I wonder if you happen to be one of the people being affected by... challenges... with the tmp directory in new linux kernels? See https://www.mathworks.com/matlabcentral/answers/1798895-invalid-cross-device-link-18-when-saving-a-file-on-arch-linux#comment_2397775
In particular, regular .m code does not need to be written to a temporary file (the existing file is renamed .asv and then the new one is written.) But .mlx files are really zipped directories of xml, so saving a mlx file could potentially involve creating a temporary directory to write XML files into and then to zip up to form the mlx file. If that (at this point hypothetical) flow is what happens, then problems with writing to /tmp could interfere with saving mlx files.
Jacek Jagosz
el 9 de Nov. de 2022
Editada: Jacek Jagosz
el 9 de Nov. de 2022
@Walter Roberson Thank you a ton for your reply! Unfortunately my problem actually seems to be different.
People who reported this issue were either using BTRFS file system or new kernel, and rolling back to older kernel fixed it. I am not using BTRFS, just standard EXT4. I also went back from Kernel 6.0 to 5.15, and the issue is the same. I also never got a single error message, like they did. That is what makes me thing this is a separate issue.
Edit: But the workaround with moving the TEMPDIR to somewhere else worked! So thank you for linking it for me. I know R2020b works just fine on my system, but R2022b is broken in this way. Hope Mathworks can figure out a way to fix their support for /tmp and tmpfs
Adam
el 24 de Mayo de 2023
I'm also having this same problem, for the 2nd time (in R2022b). I've only created two apps using App Designer in the last few years and both suffered from the same problem that they simply would not save (doesn't matter if I use Save or Save As).
First time I ended up having to re-create my App and saving worked that time, but it's frustrating after doing a bunch of work creating an app, that something as basic as Save simply doesn't work. I also submitted a ticket last time, but since I managed to work around it nothing really became of that.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Startup and Shutdown en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!