     )
 
   startServer: ->
+    parent = this
 
-    @dub.getImports undefined, (importPaths) =>
+    @dub.getImports(undefined, (importPaths) =>
       args = []
       args.push "-I#{importPath}" for importPath in importPaths
 


      dcdClient.stderr.on("data", (data) ->
        atom.notifications.addError("DCD: " + data);
      )

      dcdClient.on("exit", (code) ->

      @dcdServer.stderr.on "data", (data) ->
        console.log("[dcdServer][!] " + data);

      @dcdServer.on('exit', (code) ->
        #console.log("[dcdServer] Stopped with code: " + code + "\nRestarting!");
        parent.startServer()
      )
      console.log("DCD Ready")
    )
  stop: ->
    #Will stop in the future, when we have one dcd-server for each project
    #ChildProcess.spawn(@dcdClientPath, ["--shutdown"])
