Sublime Forum

Sublime Text build settings - Path not found?

#1

Code:

“cmd”: [“make && ${file_path}/${file_base_name}”],

Error:

The filename, directory name, or volume label syntax is incorrect.

I tried to search the internet for a solution, but I was unlucky.
Thank you for your help!

0 Likes

#2

When you use cmd, the first item in the list is the name of the program to execute and the remaining list items are paramters to pass to that program.

Your build above is telling your OS “please find and execute a program named `make && somefilepath/filename_base”, which is almost certainly not something that actually exists.

If you’re going to use shell actions like && to join commands, you should be using shell_cmd instead of cmd; shell_cmd is for entering the build command as you would execute it in the terminal:

"shell_cmd": "make && \"${file_path}/${file_base_name}\"",
1 Like