Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11929

net.sourceforge.pmd.cpd.cppast.TokenMgrError: Lexical error in file

    Details

    • Similar Issues:

      Description

      We are using the Duplicate Code Scanner Plug-in / PMD's Copy Paste Detector (CPD) Simian version 2.21.

      a code block which contains backslashes like this:

      // 2.2.1.1.1.1.1.1 ) b1ThresholdCDMA2000 destParams->elem[i].reportConfig.i1.reportConfigInterRAT.triggerType.i1.event.eventId.i1.eventB1. \
      b1_Threshold.i1.b1_ThresholdCDMA2000 =
      srcParams->elem[i].reportConfig.u.reportConfigInterRAT.triggerType.u.event.eventId.u.eventB1. \
      b1Threshold.u.b1ThresholdCDMA2000;

      ------> Results in the parser choking like that:

      net.sourceforge.pmd.cpd.cppast.TokenMgrError: Lexical error in file /jenkins/workspace/cpd/src/enc_eRRC_mdf.cpp at line 275, column 139. Encountered: "
      " (92), after : ""
      at net.sourceforge.pmd.cpd.cppast.CPPParserTokenManager.getNextToken(CPPParserTokenManager.java:1655)
      at net.sourceforge.pmd.cpd.CPPTokenizer.tokenize(CPPTokenizer.java:29)
      at net.sourceforge.pmd.cpd.CPD.add(CPD.java:106)
      at net.sourceforge.pmd.cpd.CPD.add(CPD.java:72)
      at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:82)
      at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:67)
      at net.sourceforge.pmd.cpd.CPD.main(CPD.java:180)

        Attachments

          Activity

          Hide
          drulli Ulli Hafner added a comment -

          I think this exception is thrown during the execution of the CPD task in your build step and not during the analysis of the results. The dry plug-in only visualizes these results. Or am I missing soemthing here?

          Show
          drulli Ulli Hafner added a comment - I think this exception is thrown during the execution of the CPD task in your build step and not during the analysis of the results. The dry plug-in only visualizes these results. Or am I missing soemthing here?

            People

            • Assignee:
              drulli Ulli Hafner
              Reporter:
              w1ndowlicker Joachim Bauernberger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: