Sublime Forum

Help with Build Script Regex

#1

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

/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:

    "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!

0 Likes