Created
October 1, 2012 19:48
-
-
Save remcoder/3814020 to your computer and use it in GitHub Desktop.
Sublime Text 2 build system for Typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"selector": "source.ts", | |
"cmd": ["tsc", "$file"], | |
"file_regex": "^(.+?) \\((\\d+),(\\d+)\\)(: .+)$", | |
"line_regex": "\\((\\d+),(\\d+)\\)", | |
"osx": { | |
"path": "/usr/local/bin:/opt/local/bin" | |
} | |
} |
Nevermind, I found that this works for me :)
{
"cmd": ["tsc","$file"],
"file_regex": "^(.+?) \\((\\d+),(\\d+)\\)(: .+)$",
"line_regex": "\\((\\d+),(\\d+)\\)",
"selector": "source.ts",
"osx": {
"path": "/usr/local/bin:/opt/local/bin"
}
}
updated according to your suggestions. thx!
It seems the format has been changed slightly in 0.8.1. Currently the following works:
"file_regex": "^(.+?)\\((\\d+),(\\d+)\\): (.+)$"
The space after the file name is missing.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've tried the code with @claudio-silva modification but I can't get "Next Result" (F4) to work :( Am I missing something here?.
typescript.sublime-build:
greeter.ts:
results:
I get errors as expected but the F4 key seems to do nothing, Is this normal? I wrote this here because I wasn't sure of if this is a thing of the build script or Sublime.