

def on_done(self, result):
    if (result['okay'] is True):
        status = 'Compilation Succeeded'
    else:
        status = 'Compilation FAILED '
        error_list = []
        print(result['err'])
        for line in result['err'].split('\n'):
            if (len(line.split(':')) < 3):
                continue
            try:
                message = line.split(':')[2]
                lineNum = line.split('(')[1].split(',')[0]
                rowNum = line.split('(')[1].split(',')[1].split(')')[0]
            except:
                print(('Cannot parse: ' + line))
                continue
            try:
                error_list.append({
                    'message': message,
                    'line': (int(lineNum) - 1),
                    'col': int(rowNum),
                })
            except:
                continue
        if len(error_list):
            popup_error_list(self.view, message)
    later = (lambda : sublime.status_message(status))
    sublime.set_timeout(later, 300)

dataset/ETHPy150Open lavrton/sublime-better-typescript/TypeScript.py CompileCodeCommand.on_done/VarMisuse@227/285 `error_list`->`message`