Do you see any errors in the Sublime console?
Just off the top of my head, your build looks potentially incorrect. cmd
is meant to be an array of strings where the first one is the program to execute and the remaining are the arguments to that program, but you’re specifying one string.
Theoretically, using "shell": true,
may change how cmd
is interpreted, but since you want it to run in the shell and you already have the string, I would try removing the shell
line and replacing the cmd
with shell_cmd
instead; the value can remain the same long string, just remove the [
and ]
since shell_cmd
expects to see a single string.
The fact that it works outside of Sublime is a good sign that the command is otherwise correct. Just as a potential shot in the dark for problems that commonly cause problems like not seeing any output from within Sublime, does your program interact with the user in any way (i.e. require the user to provide input before it continues)? If so, that’s a problem as well.