MATLAB-extension-for-vscode icon indicating copy to clipboard operation
MATLAB-extension-for-vscode copied to clipboard

Matlab formatter not working when Matlab terminal is running

Open hildebrandecon opened this issue 11 months ago • 1 comments

Describe the bug

For long matlab files, the formatter does not finish running when the MATLAB terminal is open at the same time.

To Reproduce Steps to reproduce the behavior:

  1. Create a large .m file, start the MATLAB terminal.
  2. Try to format the file.
  3. The formatter never finishes, no error, even though terminal is not computing anything.

Expected behavior The formatter should work with the Terminal is open.

Screenshots If applicable, add screenshots to help explain your problem.

image

Useful Information

  • OS Version: macOS 14.4
  • VS Code Version:

Version: 1.87.2 (Universal) Commit: 863d2581ecda6849923a2118d93a088b0745d9d6 Date: 2024-03-08T15:21:31.043Z Electron: 27.3.2 ElectronBuildId: 26836302 Chromium: 118.0.5993.159 Node.js: 18.17.1 V8: 11.8.172.18-electron.0 OS: Darwin arm64 23.4.0

Additional context Add any other context about the problem here.

hildebrandecon avatar Mar 15 '24 08:03 hildebrandecon

Thanks for reporting this issue! Unfortunately, I wasn't able to reproduce this on my end, but I did have some questions that might help us diagnose this further:

  1. How large/complex is the file in question? If possible, would you be willing to share it?
  2. Does this reproduce will a simple file that contains only 2-3 lines of code?
  3. When in this state, does the command window terminal response at all if you try to run a simple command like ">> x=1"?
  4. Does this issue reproduce every time for this file, or is it sporadic?
  5. Finally, as a quick test: Close VS Code and open a fresh instance, then run a simple command like ">> x=1". Does this issue reproduce if you try to format that file now without running it first?

philipb314 avatar Mar 15 '24 14:03 philipb314