Sha256: bf08ecfecc5104dc1a93a0d14bb02295c990cf477f1f2e460f2f4147859e57d5

Contents?: true

Size: 913 Bytes

Versions: 48

Compression:

Stored size: 913 Bytes

Contents

require_relative 'error_parser'

module Bake
  class TILinkerErrorParser < ErrorParser

    def initialize()
      # todo: is every line an error?
      # todo: some linker errors look like simple text, dunno how to parse properly...
      # @error_expression1 = /(.*:\(\..*\)): (.*)/  # e.g. /c/Tool/Temp/ccAlar4R.o:x.cpp:(.text+0x17): undefined reference to `_a'
      # @error_expression2 = /(.*):([0-9]+): (.*)/  # e.g. /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../i686-pc-cygwin/bin/ld:roodi.yml.a:1: syntax error
    end

    def scan_lines(consoleOutput, proj_dir)
      res = []
      consoleOutput[0].each_line do |l|
        l.rstrip!
        d = ErrorDesc.new
        if l != "<Linking>" then
          d.file_name = proj_dir
          d.line_number = 0
          d.message = l
          d.severity = SEVERITY_ERROR
        end
        res << d
      end
      [res, consoleOutput]
    end

  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
bake-toolkit-2.62.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.61.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.60.2 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.60.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.59.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.58.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.57.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.56.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.55.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.55.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.54.3 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.54.2 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.54.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.54.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.53.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.52.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.52.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.51.2 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.51.1 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb
bake-toolkit-2.51.0 lib/bake/toolchain/errorparser/ti_linker_error_parser.rb