Open MySadCaptain opened 5 years ago
Was it in Folder mode or in File Mode ?
Was it in Folder mode or in File Mode ?
@IamPhytan Thanks for suggestion!I tried run the command in Folder mode, it worked! It seems have to set the working directory first to make this command work. Any way to make it work also in the file mode?
@MySadCaptain, if I look at the code, this extension is setting a workspace everytime it is runned, which means that it was made for folder mode.
I don't know how to discriminate between the two modes with VS Code API, but I could make a pull request that calls matlab differently if you are on Mac. It is pretty much the same procedure as my last pull requests.
@IamPhytan Thank you! It would be great if you can make a pull request.
I did a little search and found that this post mentioned that can make a dynamic working directory by add "cwd": "${fileDirname}" in the launch.json, but it's for debug mode. Also there is a tasks.json seems can also add this configuration. I haven't figure out how to make it work.
@IamPhytan I don't understand, what is a Folder Mode? (I'm new to this whole software thing). Also, @MySadCaptain, how are you running MATLAB only by using the command matlab because for me it says, 'No command matlab'.
macOS 10.14.5 VScode 1.35.1 MATLAB R2018b
I can run matlab in terminal with command "matlab -nodesktop -nosplash -r "test""
And also set the matlab path in the vscode settings.
When I use "Run Matlab File", I got error "command 'extension.runMatlab' not found".
Any idea how to solve it?