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

          @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 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'

  initialize: ->
    # @modulePath.getModel().onDidChange => @checkPath()

    flag2 = @moduleName.getText().trim() isnt ""
    # flag3 = @mainEntry.getText().trim() isnt ""
    flag4 = @modulePath.html().trim() isnt ""
    flag5 = @errorMsg.hasClass 'hide'
    flag6 = @errorMsg2.hasClass 'hide'

    if flag1 and flag2 and flag4 and flag5 and flag6
      @parentView.enableNext()
