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

The "diary" command cannot output content to a specific file.

Open hphuangpu opened this issue 1 year ago • 4 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce % start a log file diary session_log.txt; a = 5;
b = 10;
c = a + b;
disp(['The sum of a and b is ', num2str(c)]);
% close file diary off;

Expected behavior The code works well in Matlab desktop app. But getting a blank file in VS Code.

Useful Information

版本: 1.94.2 (user setup) 提交: 384ff7382de624fb94dbaf6da11977bba1ecd427 日期: 2024-10-09T16:08:44.566Z Electron: 30.5.1 ElectronBuildId: 10262041 Chromium: 124.0.6367.243 Node.js: 20.16.0 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.19045

hphuangpu avatar Oct 28 '24 03:10 hphuangpu

Thank you for reporting this issue. This is something I can reproduce and is something that we hope to resolve in a future release.

philipb314 avatar Oct 29 '24 14:10 philipb314

Can you solve this problem if it is sure a bug? Because we usually need the output as report but now we can only copy and paste to a file.

hphuangpu avatar Mar 02 '25 15:03 hphuangpu

Hi, just a kind check if there's any update on this issue? Thanks 🙏

southrock avatar Jul 01 '25 14:07 southrock

Hi, just a kind check if there's any update on this issue? Thanks 🙏

Problem happens always, seems they still not fix this bug.

hphuangpu avatar Jul 04 '25 05:07 hphuangpu