I’ve had a custom build system working for a few days now, and its behavior seems to have changed - which usually means I didn’t understand something.
I want to run “make && make test” in the root of my project, so I created a build system that looks like this:
{
"cmd": ["make && make test"],
"working_dir": "${project_path}",
"shell": true,
}
… and it was working great. Today, for some reason, it’s using the directory of the file I’m currently editing as the working directory, instead of the root of the project. The only thing which I can think of that’s changed is that I opened a second copy of the project (in a different file system tree, on a different git branch) to make some changes on another branch.
My project file looks like this:
{
"folders":
[
{
"path": ".",
"folder_exclude_patterns": ["obj", ".idea"],
"file_exclude_patterns": ["*.bin", "*.img", "*.bak", "*~", "*.gdb_history"],
"binary_file_patterns": ["*.o", "*.bin", "*.elf", "*.img"],
},
]
}
… what should I be doing differently? If it matters, I’m on MacOS.