Home Download Buy Blog Forum Support

Build script

Build script

Postby jbrooksuk on Thu Apr 28, 2011 7:55 am

If I've got output from a build script that looks like this:
Code: Select all
----- FILE  :  C:\Share\cw\js\topdeals\jquery.topdeals.js -----
Line 2, E:0005: Illegal tab in whitespace before "$.fn.topDeals"
Line 3, E:0005: Illegal tab in whitespace before "var"
Line 4, E:0005: Illegal tab in whitespace before "countryC"
Line 5, E:0005: Illegal tab in whitespace before "boardBasis"
Line 6, E:0005: Illegal tab in whitespace before "sorPrice"
Line 7, E:0005: Illegal tab in whitespace before "sorRating"
Line 8, E:0005: Illegal tab in whitespace before "startPlus"
Line 9, E:0005: Illegal tab in whitespace before "aOrB"
Line 10, E:0005: Illegal tab in whitespace before "}"
Line 10, E:0010: (New error) Missing semicolon at end of line

How can I make the build script pick up the file and then the line?
jbrooksuk
 
Posts: 781
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Build script

Postby jps on Thu Apr 28, 2011 8:57 am

You'll need to specify two regexs in the .sublime-build file: "file_regex" and "line_regex". Something along the lines of:

Code: Select all
"file_regex": "^----- FILE  :  (.+) ----",
"line_regex": "^Line ([0-9]+),"


(untested, so YMMV)
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 17 guests