shinyypig / matlab-in-vscode

A vscode extension for matlab.
MIT License
45 stars 5 forks source link

Extension is not compatible with version of VS code. #22

Closed KennethNye closed 1 year ago

KennethNye commented 1 year ago

image

shinyypig commented 1 year ago

You may need to upgrade your VSCode.

KennethNye commented 1 year ago

Thanks. Now the extension is installed. However, when I try to run the current cell or run the current script. All lines are sent directly to the PowerShell terminal rather than the Matlab command window. I confirm that a Matlab command window does pop up.
image image

shinyypig commented 1 year ago

In windows, you need to install the matlab python engine (link), and check the pybackend option in the settings of the extension.

KennethNye commented 1 year ago

Actually, I had it installed. My bad, I forgot to tick it in setting. Btw, is there a way to run the code line by line? Also, I did not see any variable showing up when I click on "show variables". image

shinyypig commented 1 year ago

Press shift + enter to run the current line or the selected lines.

As for the variable scope, unfortunately, this is an unknown bug. In my windows PC, it just works, but there also some users reported that it didn't work in their PCs. You may just type workspace in the terminal to use the native variable scope.

I apologize for not being helpful with this issue.

KennethNye commented 1 year ago

Nope. Thanks for your timely reply.