Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6372

cnd/cpplite commit-validation fails

    XMLWordPrintableJSON

Details

    Description

      While trying to integrate cnd and cpplite, the "commit-validation" fails with the following two errors:

       

      Error one:

      Missing "weight" attribute, see also https://bz.apache.org/netbeans/show_bug.cgi?id=141925

       

      Some modules override some files without using the weight attribute 
      correctly
      OptionsDialog/CPlusPlus.instance is provided by: 
      [org.netbeans.modules.cnd.toolchain.ui, 
      org.netbeans.modules.cpplite.editor]
       org.netbeans.modules.cnd.toolchain.ui: content = '', attributes = 
      {advancedOptionsFolder=OptionsDialog/CPlusPlus, categoryName=&C/C++,
       iconBase=org/netbeans/modules/cnd/toolchain/ui/options/cnd_32.png, 
      position=700}
       org.netbeans.modules.cpplite.editor: content = '', attributes = 
      {advancedOptionsFolder=OptionsDialog/CPlusPlus, categoryName=C/C++, 
      iconBase=org/netbeans/modules/cpplite/editor/lsp/options/cnd_32.png, 
      keywords=C C++, keywordsCategory=CPPLite, position=715}
      Some modules conflict on the definition of position for 
      Templates/Project/Native: {org.netbeans.modules.cnd.makeproject.ui=850, 
      org.netbeans.modules.cpplite.project=650}
      
      
      
      
      junit.framework.AssertionFailedError: Some modules override some files without using the weight attribute correctly
      OptionsDialog/CPlusPlus.instance is provided by: [org.netbeans.modules.cnd.toolchain.ui, org.netbeans.modules.cpplite.editor]
      
       org.netbeans.modules.cnd.toolchain.ui: content = '', attributes = 
      {advancedOptionsFolder=OptionsDialog/CPlusPlus, categoryName=&C/C++,
       iconBase=org/netbeans/modules/cnd/toolchain/ui/options/cnd_32.png, 
      position=700}
       org.netbeans.modules.cpplite.editor: content = '', 
      attributes = {advancedOptionsFolder=OptionsDialog/CPlusPlus, 
      categoryName=C/C++, 
      iconBase=org/netbeans/modules/cpplite/editor/lsp/options/cnd_32.png, 
      keywords=C C++, keywordsCategory=CPPLite, position=715}
      Some modules 
      conflict on the definition of position for Templates/Project/Native: 
      {org.netbeans.modules.cnd.makeproject.ui=850, 
      org.netbeans.modules.cpplite.project=650}
      
      
      	at org.netbeans.core.validation.ValidateLayerConsistencyTest.testLayerOverrides(ValidateLayerConsistencyTest.java:668)
      	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
      	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476)
      	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402)
      	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      	at java.awt.EventQueue.access$500(EventQueue.java:97)
      	at java.awt.EventQueue$3.run(EventQueue.java:709)
      	at java.awt.EventQueue$3.run(EventQueue.java:703)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

       

       

      Error Two:

      cpplite is missing  a "position" attribute

      No warnings relating to folder ordering; cf: 
      http://deadlock.netbeans.org/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/build/generated/layers.txt
      Not all children in OptionsDialog/CPlusPlus/ marked with the position 
      attribute: [cpplite.instance], but some are: [ToolsTab.instance, 
      ProjectsTab.instance, CodeAssistanceTab.instance, 
      OtherOptionsTab.instance]
      
      
      
      junit.framework.AssertionFailedError: No warnings relating to 
      folder ordering; cf: 
      http://deadlock.netbeans.org/job/nbms-and-javadoc/lastSuccessfulBuild/artifact/nbbuild/build/generated/layers.txt
      Not
       all children in OptionsDialog/CPlusPlus/ marked with the position 
      attribute: [cpplite.instance], but some are: [ToolsTab.instance, 
      ProjectsTab.instance, CodeAssistanceTab.instance, 
      OtherOptionsTab.instance]
      	at org.netbeans.core.validation.ValidateLayerConsistencyTest.assertNoErrors(ValidateLayerConsistencyTest.java:157)
      	at org.netbeans.core.validation.ValidateLayerConsistencyTest.testFolderOrdering(ValidateLayerConsistencyTest.java:806)
      	at org.netbeans.junit.NbTestCase.access$200(NbTestCase.java:77)
      	at org.netbeans.junit.NbTestCase$2.doSomething(NbTestCase.java:476)
      	at org.netbeans.junit.NbTestCase$1Guard.run(NbTestCase.java:402)
      	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
      	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      	at java.awt.EventQueue.access$500(EventQueue.java:97)
      	at java.awt.EventQueue$3.run(EventQueue.java:709)
      	at java.awt.EventQueue$3.run(EventQueue.java:703)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
      	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
      	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) 

      Attachments

        Activity

          People

            Unassigned Unassigned
            vieiro Antonio Vieiro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h