Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I parse error messages from TypeScript in Sublime Text 2?
    primarykey
    data
    text
    <p>I am trying to setup a Sublime Text 2 build system for TypeScript. I have followed the directions I found <a href="https://stackoverflow.com/questions/12779631/how-to-configure-a-sublime-build-system-for-typescript">here</a>. Actually calling out to the compiler works, however it does not pick up the error messages correctly.</p> <p>Here is my sample TypeScript program:</p> <pre><code>function greeter(person: string) { return "Hello, " + person; } var user = "Jane User"; document.body.innerHTML = greeter(us-er); </code></pre> <p>When I compile from the command line, I see the following output:</p> <blockquote> <p>C:/data/helloworld.ts(5,34): The name 'us' does not exist in the current scope C:/data/helloworld.ts(5,37): The name 'er' does not exist in the current scope C:/data/helloworld.ts(5,26): Supplied parameters do not match any signature of call target</p> </blockquote> <p>When I build from within Sublime Text 2 I see the following output:</p> <blockquote> <p>C:/Data/helloworld.ts(5,34): [Finished in 0.6s]</p> </blockquote> <p>I have tried different variations of the file_regex, as mentioned in the original question, all with the same result. My current version of the file looks like:</p> <pre><code>{ "selector": "source.ts", "cmd": ["tsc.cmd", "--target","ES5", "$file"], "file_regex": "^(.+?)\\(([0-9]+,[0-9]+)\\)\\: (.+)$" } </code></pre> <p>When I test the regex using the <a href="http://www.pythonregex.com/" rel="nofollow noreferrer">Python Regex Tool</a> this version matches the 3 parts correctly. However, Sublime Text refuses to show me the actual error message. </p> <p>Can anybody point out what I am doing wrong?</p> <p>It is very frustrating, especially as the one site even shows an example of Sublime Text correctly displaying the error message.</p> <p>This is with Sublime Text 2.01 64-bit on Windows 7 64-bit.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload