 
 
     getCompletions = (filePath, bufferText, offset, noOfAutocompleteSuggestions, callback) ->
-      tempFilePath = getTempDir() + filePath
+      tempFilePath = getTempPath(filePath)
       fs.outputFile(tempFilePath, bufferText, (err) ->
         if (err)
           throw err

      

    typecheckBuffer = (path, text, callback = ->) ->
      tempFilePath = getTempDir() + path
      fs.outputFile(tempFilePath, text, (err) ->
        if (err)
          throw err

temp.track()
tempDir = temp.mkdirSync()
getTempDir = -> tempDir

getTempPath = (file) ->
  if(process.platform == 'win32')
    path.join(getTempDir(), file.replace(':', ""))
  else
    path.join(getTempDir(), file)

module.exports = createClient = (httpPort, generalMsgHandler, serverPid = undefined) ->
  new Promise (resolve, reject) ->
