Sha256: ef5d4b1a62e4729f33409b3829fe549c8ac7e200efcb161d5a90d0093fd33731

Contents?: true

Size: 896 Bytes

Versions: 50

Compression:

Stored size: 896 Bytes

Contents

require 'bake/toolchain/errorparser/error_parser'

module Bake
  class TaskingCompilerErrorParser < ErrorParser

    def initialize()
      @error_expression = /.* (.+): \[\"(.+)\" ([0-9]+)\] (.*)/
    end

    def scan_lines(consoleOutput, proj_dir)
      res = []
      consoleOutputFullnames = ""
      consoleOutput[0].each_line do |l|
        d = ErrorDesc.new
        lstripped = l.rstrip
        scan_res = lstripped.scan(@error_expression)
        if scan_res.length > 0
          d.file_name = File.expand_path(scan_res[0][1], proj_dir)
          d.line_number = scan_res[0][2].to_i
          d.message = scan_res[0][3]
          d.severity = get_tasking_severity(scan_res[0][0])
          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.46.0 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.45.0 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.44.1 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.44.0 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.43.2 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.43.1 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.43.0 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.42.3 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.42.2 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.42.1 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.42.0 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.41.4 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.41.3 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.41.2 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.41.1 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.41.0 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.40.1 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.40.0 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.39.1 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb
bake-toolkit-2.39.0 lib/bake/toolchain/errorparser/tasking_compiler_error_parser.rb