Sublime Forum

Regex to catch this Build error

#1

I am trying to add a build file for a build system that is just like Ant except is built with PHP called Phing

Here is the code I have for my Phing.sublime-build file so far

{ "cmd": "phing"], "working_dir": "${project_path:${folder}}", "selector": "source.php, source.js, source.html, source.css", }

Here is an example error message I got in command promt

BUILD FAILED Error reading project file [wrapped: dirname 9unknown0 doesn't support the 'property' attribute. Total time: 0.3986 seconds

I am wanting to add in the regex support for catching the error in the build file like the other build files do in sublime.

Here is how the Ant.sublime-build file does it

"file_regex": "^ *\\[javac\\] (.+):([0-9]+):() (.*)$",

Could someone show me how to make it work with the type of error I got above, the proper regex for my build file

0 Likes

#2

I suppose Build System is not used by many people. I’m struggling making a Phing build system to work with a custom named “phing-build.xml” instead of “build.xml” file. Also have no idea about the “file_regex” directive. :cry:

0 Likes