bramvbilsen / Matlab-Code-Run-for-VS-Code

This repo contains the code for the "Matlab Code Run" extension for Visual Studio Code,
25 stars 5 forks source link

Doesn't work when running the command second time #11

Open JerryWuZiJie opened 3 years ago

JerryWuZiJie commented 3 years ago

The command works well for the first time I run it (after open vscode) and execute "matlab -nosplash -nodesktop -sd working/directory -r "run('filename');". But for the second time I run it, it is executing run('filename'), and the terminal is giving the following error:

run : The term 'run' is not recognized as the name of a cmdlet, function,  
script file, or operable program. Check the spelling of the name, or if a  
path was included, verify that the path is correct and try again.
At line:1 char:1
+ run('filename')
+ ~~~
    + CategoryInfo          : ObjectNotFound: (run:String) [], CommandNot  
   FoundException
    + FullyQualifiedErrorId : CommandNotFoundException
Nikith-Kalu commented 2 years ago

I have this error too

amosquet commented 10 months ago

I have this error as well.

I have been getting around this by re-rerunning the initial command without the "-sd", it creates a new window but it runs.