       fs.moveSync(syncFilePath, @alterParentPath(filePath, syncFilePath))
 
   resolveRootFilePath: (filePath) ->
+    MasterTexFinder ?= require './master-tex-finder'
     finder = new MasterTexFinder(filePath)
     finder.getMasterTexPath()
 

        return
    return new OpenerImpl()

  moveResult: (result, filePath) ->
    originalFilePath = result.outputFilePath
    result.outputFilePath = @alterParentPath(filePath, result.outputFilePath)

_ = require 'underscore-plus'
fs = require 'fs-plus'
path = require 'path'
ConsoleLogger = null
ConfigSchema = require './config-schema'
LatexmkBuilder = require './builders/latexmk'
MasterTexFinder = null

ErrorIndicatorView = null
ProgressIndicatorView = null

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

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