Sha256: 0f0c966f0f97815fedc448ab376f15ec9b6f09b87bba7318d72f05121dce78ac

Contents?: true

Size: 865 Bytes

Versions: 36

Compression:

Stored size: 865 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])
          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

36 entries across 36 versions & 1 rubygems

Version Path
bake-toolkit-2.32.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.31.7 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.31.5 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.31.4 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.31.2 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.31.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.30.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.29.4 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.29.3 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.29.2 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.29.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.28.1 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.28.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.27.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.26.1 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.26.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.25.1 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.25.0 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.24.6 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb
bake-toolkit-2.24.5 lib/bake/toolchain/errorparser/ti_compiler_error_parser.rb