Home Download Buy Blog Forum Support

Help with Build Script Regex

Help with Build Script Regex

Postby seanhess on Tue Sep 03, 2013 6:21 pm

I'm trying to get a build script to work, and to jump to the error using F4. Right now, it will select the file, but not jump to the correct line. Here is some raw output from the compile command
Code: Select all
/Users/seanhess/projects/sublime-typescript/test/test_code_2.ts(19,4): error TS2094: The property 'bob' does not exist on value of type 'C1'.
[Finished in 1.3s with exit code 1]
[cmd: ['tsc', '/Users/seanhess/projects/sublime-typescript/test/test_code_2.ts']]
[dir: /Users/seanhess/projects/sublime-typescript/test]
[path: /usr/bin:/bin:/usr/sbin:/sbin]


And here is the file_regex so far:

Code: Select all
    "file_regex": "^(...*?)\\(([0-9]*),[0-9]*\\): error \\w+: (.*)$",   


I can't find any good documentation on that file_regex. How do I get F4 to jump to the right line? Thanks!
seanhess
 
Posts: 3
Joined: Sat May 25, 2013 8:09 am

Return to Plugin Development

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests