   showErrorIndicator: ->
     return @errorIndicator if @errorIndicator?
 
+    ErrorIndicatorView ?= require './error-indicator-view'
     @errorIndicator = new ErrorIndicatorView()
     @statusBar?.addRightTile({item: @errorIndicator, priority: 9001})
     @errorIndicator

_ = require 'underscore-plus'
fs = require 'fs-plus'
path = require 'path'
ConfigSchema = require './config-schema'
ConsoleLogger = require './loggers/console-logger'
LatexmkBuilder = require './builders/latexmk'
MasterTexFinder = require './master-tex-finder'

ErrorIndicatorView = require './error-indicator-view'
ProgressIndicatorView = require './progress-indicator-view'

module.exports =
class Composer
  constructor: (logger)->
    @log = logger ? new ConsoleLogger()

  build: ->
    editor = atom.workspace.getActivePaneItem()

  showProgressIndicator: ->
    return @indicator if @indicator?

    ProgressIndicatorView ?= require './progress-indicator-view'
    @indicator = new ProgressIndicatorView()
    @statusBar?.addRightTile({item: @indicator, priority: 9001})
    @indicator
