 
             last = _.last(msg.message)
             unless msg.message.length < 2
-              toPush.descr += "(#{last.path.replace(atom.project.getPath(), '.')}:#{last.line})"
+              toPush.descr += "(#{last.path.replace(atom.project.getPaths()[0], '.')}:#{last.line})"
 
             console.log "Message: #{toPush.message}"
             realMessages.push(toPush)


    @flowPath = path.join(@flowPath, 'flow')

    flowServer = spawn(@flowPath, ['start', '--all', '--module', 'node', path.resolve(atom.project.getPath())])
    flowServer.on 'close', (code) => @flowEnabled &= (code is 2)

  destroy: ->
    if @flowEnabled
      spawn(@flowPath, ['--stop', path.resolve(atom.project.getPath())])
      console.log "die"

module.exports = LinterFlow

      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
