             dismissable: true
           handle()
           resolve []
+
+    getWordLength: (textEditor, row, column) ->
+      text = textEditor.getTextInBufferRange([[row, column], [row, column + 100]])
+      match = wordLengthFormat.exec(text)
+      console.log "Text: #{text}, Match: #{JSON.stringify()}"
+      match?[1].length or 100


# path(lineNumber): (Deprecation|Warning|Error): <message>
dubErrorFormat = /(.*?)\((\d+),(\d+)\): (Deprecation|Warning|Error): (.*)/g;
dubErrorFormatRel = /(.*?)\((\d+),(\d+)\): (.*)/g;

module.exports =
  class DubLinter

        @dubPath = newValue

    lint: (textEditor) =>
      that = this
      return new Promise (resolve, reject) =>
        output = ""
        args = ["build", "--nodeps", "--combined", "-q"]
