Sha256: 08a8cd8319312fd1aab175b857f5eecd6973227e5f615d95e515199c504eb776

Contents?: true

Size: 905 Bytes

Versions: 50

Compression:

Stored size: 905 Bytes

Contents

require 'bake/toolchain/errorparser/error_parser'

module Bake
  class TICompilerErrorParser < ErrorParser

    def initialize()
      @error_expression = /\"([^,^\"]+)\", line ([0-9]+)[:0-9]* (catastrophic |fatal )*([A-Za-z]+): (.+)/
    end

    def scan_lines(consoleOutput, proj_dir)
      res = []
      consoleOutputFullnames = ""
      consoleOutput[0].each_line do |l|
        d = ErrorDesc.new
        scan_res = l.gsub(/\r\n?/, "").scan(@error_expression)
        if scan_res.length > 0
          d.file_name = File.expand_path(scan_res[0][0], proj_dir)
          d.line_number = scan_res[0][1].to_i
          d.message = scan_res[0][4]
          d.severity = get_severity(scan_res[0][3])
          l.gsub!(scan_res[0][0],d.file_name)
        end
        res << d
        consoleOutputFullnames << l
      end
      [res, consoleOutputFullnames]
    end

  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
bake-toolkit-2.38.3 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.38.2 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.38.1 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.38.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.14 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.13 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.12 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.11 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.10 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.8 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.7 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.6 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.5 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.4 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.3 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.2 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.1 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.37.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.36.1 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.36.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb