shinyypig / matlab-in-vscode

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

Need to run twice when using "Run current MATLAB file" #40

Closed GYC-lab closed 4 months ago

GYC-lab commented 4 months ago

I wonder if anyone has encountered this bug that if I make some modifications on my code and then click "Run current MATLAB file", it does not run the newest code and another run is needed.

Any help would be truly appreciated!

shinyypig commented 4 months ago

It is a bug related to python matlab engine, as previously discussed in #20.

Unfortunately, there is no action I can take to resolve it.

GYC-lab commented 4 months ago

Many thanks! You mentioned:

经过验证,是python matlab engine 的问题,并且插件不使用 matlab pybackend 的时候,是正常工作的。 and I indeed use thepython matlab engine

image so is it possible to avoid this bug by simply not clicking Matlab-in-vscode:Matlab Pybackend?

shinyypig commented 4 months ago

If you are using MacOS or Linux, yes.