     @cleanup()
 
     return unless @isDartProject()
+
+    chokidar = require 'chokidar'
 
     rootPath = atom.project.getPath()
     @analysisServer = new AnalysisServer(rootPath)

AnalysisServer = require './analysis_server'
AnalysisView = require './views/analysis_view'

chokidar = require 'chokidar'
spawn = require('child_process').spawn
extname = require('path').extname


  subscriptions: []
  analysisStatusView: null
  analysisView: null
  analysisServer: null

  enable: =>
    @subscriptions.push atom.project.on 'path-changed', @watchDartProject
