           text : sdks[idx]
     else if tag is 'module'
       modulePath = path.join(util.getTiProjectRootPath(),'modules')
+      return unless util.isExistAsDirectory(modulePath)
       modules = {}
       _.each(getDirectories(modulePath), (platform) ->
         # body...

        )
      )
      for key of modules
        console.log key
        completions.push
          text : key
          rightLabel: modules[key].platform.join(',')
    
    console.log completions
    completions.sort util.completionSortFun if _.isFunction(completions.sort)
    return completions



  getSuggestions: (request) ->
    {editor, bufferPosition} = request
    # console.log request.editor.getPath();
    # console.log 'tiappxmlProvider'
    if !request.editor.getPath().endsWith('tiapp.xml')
      return;
    
