Sha256: 757053eb7fa13be64fe10553a82730c3d1170997d11ba4f65914e567ca6fcaeb

Contents?: true

Size: 690 Bytes

Versions: 86

Compression:

Stored size: 690 Bytes

Contents

require 'bake/toolchain/errorparser/error_parser'

module Bake
  class KeilLinkerErrorParser < ErrorParser

    def initialize()
      @error_expression = /([^:]+): (L[0-9]+[A-Z]: .+)/
    end

    def scan_lines(consoleOutput, proj_dir)
      res = []
      consoleOutput[0].each_line do |l|
        l.rstrip!
        d = ErrorDesc.new
        scan_res = l.scan(@error_expression)
        if scan_res.length > 0
          d.file_name = proj_dir
          d.line_number = 0
          d.message = scan_res[0][1]
          d.severity = get_severity(scan_res[0][0])
          error_severity = d.severity
        end
        res << d
      end
      [res, consoleOutput[0]]
    end


  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
bake-toolkit-2.46.0 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.45.0 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.44.1 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.44.0 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.43.2 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.43.1 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.43.0 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.42.3 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.42.2 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.42.1 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.42.0 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.41.4 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.41.3 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.41.2 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.41.1 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.41.0 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.40.1 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.40.0 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.39.1 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb
bake-toolkit-2.39.0 lib/bake/toolchain/errorparser/keil_linker_error_parser.rb