 
     @flowPath = path.join(@flowPath, 'flow')
 
-    flowServer = spawn(@flowPath, ['start', '--all', '--module', 'node', path.resolve(atom.project.getPath())])
+    flowServer = spawn(@flowPath, ['start', '--all', '--module', 'node', path.resolve(atom.project.getPaths()[0])])
     flowServer.on 'close', (code) => @flowEnabled &= (code is 2)
 
   destroy: ->
     if @flowEnabled
-      spawn(@flowPath, ['--stop', path.resolve(atom.project.getPath())])
+      spawn(@flowPath, ['--stop', path.resolve(atom.project.getPaths()[0])])
       console.log "die"
 
 module.exports = LinterFlow


            last = _.last(msg.message)
            unless msg.message.length < 2
              toPush.descr += "(#{last.path.replace(atom.project.getPath(), '.')}:#{last.line})"

            console.log "Message: #{toPush.message}"
            realMessages.push(toPush)

      return

    str = ''
    file = (atom.workspace.getActiveTextEditor()).getPath()
    file_path = path.dirname(file)
    child = spawn @flowPath, ['status', '--json', file_path]
    child.stdout.on 'data', (x) -> str += x
