davidvarga / MBeautifier

MBeautifier is a MATLAB source code formatter, beautifier. It can be used directly in the MATLAB Editor and it is configurable.
GNU General Public License v3.0
490 stars 77 forks source link

Mbeautifier significantly slower in matlab 2022 #130

Open dbcohenm opened 1 week ago

dbcohenm commented 1 week ago

I have been using MBeautifier in Matlab 2019 to flag which files need to be beautified. This is basically a "for" loop over a list of files. In Matlab 2022, after few iterations (around ~10) matlab crashes as the following

{Error using matlab.desktop.editor.Document>assertOpen

Unable to open or load the Editor.

Error in matlab.desktop.editor.Document/get.Text (line 751)

assertOpen(obj);

I wanted to know if MBeautifier has been tried already by other in Matlab 2022, or if this is a known issue.