           @label desc.moduleId, class: 'row-title pull-left'
           @div class: 'row-content pull-left', =>
             @subview 'moduleId', new TextEditorView(mini: true)
-        @div class: 'form-row msg clearfix in-row hide', =>
-          @div '模块标识长度必须在6-32个字符范围内,只能输入数字，字母，下划线', class: 'text-warning', outlet: 'errorMsg2'
+        @div class: 'form-row msg clearfix in-row', =>
+          @div '模块标识长度必须在6-32个字符范围内,只能输入数字，字母，下划线', class: 'text-warning hide errorMsg', outlet: 'errorMsg2'
         @div class: 'form-row clearfix', =>
           @label desc.moduleName, class: 'row-title pull-left'
           @div class: 'row-content pull-left', =>
             @subview 'moduleName', new TextEditorView(mini: true)
-        @div class: 'form-row msg clearfix hide', =>
-          @div desc.createModuleErrorMsg, class: 'text-warning', outlet: 'errorMsg'
+        @div class: 'form-row msg clearfix', =>
+          @div desc.createModuleErrorMsg, class: 'text-warning hide errorMsg', outlet: 'errorMsg'
 
   initialize: ->
     # @modulePath.getModel().onDidChange => @checkPath()

    if path isnt ""
      regEx = /^\w{6,32}$/
      if regEx.test path
        @errorMsg2.parent().addClass('hide')
      else
        @errorMsg2.parent().removeClass('hide')
      projectPath = @modulePath.html().trim()

      configPath = pathM.join projectPath,desc.ProjectConfigFileName

        .then (isExists) =>
          console.log isExists,@errorMsg
          unless isExists
            @errorMsg.addClass('hide')
          else
            @errorMsg.removeClass('hide')
          @checkInput()


