필터 지우기
필터 지우기

AppDesigner does not overwrite mlapp on Linux; works fine on Windows

조회 수: 5 (최근 30일)
Hi,
I'm trying to edit an app using App Designer on R2022b for Linux. The app has a fair number of components, but the number of lines of editable code is small (~100), since I exported all of the methods to separate m-files. I was able to do this and save the modified app using R2022a on Windows.
However, even with the much-shortened mlapp file, I cannot make changes and save it on Linux. It opens fine and I'm able to edit the code, but when I save, the interface does not show that the file is saved, and the modification time on the mlapp file does not change. Instead, a new, empty ".tmp" file gets created in the same directory. Every time I click save, a new one of these files gets created, and that's it. This screenshot shows what the app directory looks like after saving (app was last saved on Windows on the 25th):
Any ideas?
  댓글 수: 5
Kumar
Kumar 2022년 10월 7일
Hi Ethan, I am using R2022b on Ubuntu 22.04...
Valeria Fedeli
Valeria Fedeli 2022년 11월 9일
Hi everyone, same issue on Fedora 36 with R2022b

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

채택된 답변

Walter Roberson
Walter Roberson 2022년 11월 9일
The problem appears to be due to a regression in the Linux kernel. More details are available at https://www.mathworks.com/matlabcentral/answers/1798895-invalid-cross-device-link-18-when-saving-a-file-on-arch-linux#answer_1095538
Some of the other posts in that Question give work-arounds for moving the temporary directory.
  댓글 수: 1
Ethan Blackwood
Ethan Blackwood 2022년 11월 10일
Thanks! I guess the workaround for now is to set the TMPDIR environment variable to somewhere on the same filesystem. Unfortunately I work with a lot of different filesystems, so I will probably run into this again, but at least I know how to fix it. Hope either the kernel or MATLAB gets patched in the next version.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by