Summary of bugs and reproduction steps for Sumatra (with MATLAB executor) on:
- Ubuntu 25.04
- MATLAB R2025b
- Sumatra 0.8.1
MATLAB executor does not support parameterless execution of MATLAB code
- In a folder where the sumatra project initialized, create a MATLAB function
process_data.m
function process_data()
% Function with no input parameters
disp('hello');
end
- Run
smt run --executable matlab --main process_data.m
- Sumatra generates this matlab command:
matlab -nodesktop -nosplash -nojvm -nodisplay -wait -r "process_data(''); depfun process_data.m -toponly -quiet -print depfun.data; quit" in matlab.py
- Running this commant results in MATLAB error:
Error using process_data
Too many input arguments.
- As a result MATLAB session hangs and never quits
Sumatra does not support execution of MATLAB scripts stored in subfolders
- Create a nested folder inside the existing Sumatra project directory
- Create a MATLAB function
process_data.m in that folder
- Run
smt run --executable matlab --main src/process_data.m
- Sumatra generates this matlab command:
matlab -nodesktop -nosplash -nojvm -nodisplay -wait -r "src/process_data(''); depfun process_data.m -toponly -quiet -print depfun.data; quit" in matlab.py
- Running this commant results in MATLAB error:
Unrecognized function or variable 'src'.
- As a result MATLAB session hangs and never quits
MATLAB dependency finder does not work on any release newer than MATLAB R2015b
- In a folder where the sumatra project initialized, create a MATLAB function
process_data.m
function process_data(dummy)
% Function with no input parameters
disp('hello');
end
- Run
smt run --executable matlab --main process_data.m in.param
- Sumatra generates this matlab command:
matlab -nodesktop -nosplash -nojvm -nodisplay -wait -r "process_data('in.param'); depfun process_data.m -toponly -quiet -print depfun.data; quit" in matlab.py
- Running this commant results in MATLAB error:
Unrecognized function or variable 'depfun'.
- As a result MATLAB session hangs and never quits
The -wait flag is not supported by MATLAB CLI
The matlab.py generates a command that has -wait flag, but this argument is not supported (and likely was never supported).
Running this matlab -wait results in the warning: Warning: Unrecognized command line option: wait.
Summary of bugs and reproduction steps for Sumatra (with MATLAB executor) on:
MATLAB executor does not support parameterless execution of MATLAB code
process_data.msmt run --executable matlab --main process_data.mmatlab -nodesktop -nosplash -nojvm -nodisplay -wait -r "process_data(''); depfun process_data.m -toponly -quiet -print depfun.data; quit"in matlab.pySumatra does not support execution of MATLAB scripts stored in subfolders
process_data.min that foldersmt run --executable matlab --main src/process_data.mmatlab -nodesktop -nosplash -nojvm -nodisplay -wait -r "src/process_data(''); depfun process_data.m -toponly -quiet -print depfun.data; quit"in matlab.pyMATLAB dependency finder does not work on any release newer than MATLAB R2015b
process_data.msmt run --executable matlab --main process_data.m in.parammatlab -nodesktop -nosplash -nojvm -nodisplay -wait -r "process_data('in.param'); depfun process_data.m -toponly -quiet -print depfun.data; quit"in matlab.pyThe
-waitflag is not supported by MATLAB CLIThe matlab.py generates a command that has
-waitflag, but this argument is not supported (and likely was never supported).Running this
matlab -waitresults in the warning:Warning: Unrecognized command line option: wait.