I’m trying to use a Makefile build system but navigating to errors is not working properly. The problem seems to be that the file paths are relative so ST doesn’t know where to find them. If I double-click them a new tab is opened with no text even though the file clearly exists in the project.
Can I make ST navigate to the correct file or do I need to force “make” to produce absolute paths? I’d also be curious to know about the “working_dir” value as I’m not sure what that resolves to.
Here’s an example of the an error:
…/lib/Syndicate/Data/SpriteData.h:34:156: warning: instantiation of variable ‘Syndicate::Data::Colors::_default’ required here, but no definition is available [-Wundefined-var-template]
Here’s the build system (which comes with ST I think):
{
"shell_cmd": "make",
"file_regex": "^(..[^:\n]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${folder:${project_path:${file_path}}}",
"selector": "source.makefile",
"syntax": "Packages/Makefile/Make Output.sublime-syntax",
"keyfiles": ["Makefile", "makefile"],
"variants":
[
{
"name": "Clean",
"shell_cmd": "make clean"
}
]
}