Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1540

Some of SOURCE_PRE_LINKAGE modifiers for statements were not resolved.

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • parser
    • None

      The trace for this issue does not show where the actual problem is. In our case it was a missing model file. Is it possible to point out where the issue is?

      You get tons of this in the log that does not tell anything of a missing model.

      ... 72 more
          Caused by: org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException: Imported module [_3gpp-nr-nrm-gnbcucpfunction] was not found. [at /schema-path/company-nrnetwork-vcucp@2022-06-28.yang:13:5]
              at org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException.throwIf(InferenceException.java:77)
              at org.opendaylight.yangtools.yang.parser.rfc7950.stmt.import_.ImportStatementSupport$1.prerequisiteFailed(ImportStatementSupport.java:128)
              at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl.failModifier(ModifierImpl.java:87)
              at org.opendaylight.yangtools.yang.parser.stmt.reactor.SourceSpecificContext.failModifiers(SourceSpecificContext.java:383)
              ... 72 more
          Suppressed: org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException: Yang model processing phase SOURCE_PRE_LINKAGE failed [at /schema-path/company-nrfreqrelation-ext-vcucp@2023-02-20.yang:2:1]
              at org.opendaylight.yangtools.yang.parser.stmt.reactor.SourceSpecificContext.failModifiers(SourceSpecificContext.java:396)
              at org.opendaylight.yangtools.yang.parser.stmt.reactor.BuildGlobalContext.addSourceExceptions(BuildGlobalContext.java:307)
              ... 71 more
              Suppressed: org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException: Imported module [_3gpp-nr-nrm-nrfreqrelation] was not found. [at /schema-path/company-nrfreqrelation-ext-vcucp@2023-02-20.yang:19:5]
                  at org.opendaylight.yangtools.yang.parser.spi.meta.InferenceException.throwIf(InferenceException.java:77)
                  at org.opendaylight.yangtools.yang.parser.rfc7950.stmt.import_.ImportStatementSupport$1.prerequisiteFailed(ImportStatementSupport.java:128)
                  at org.opendaylight.yangtools.yang.parser.stmt.reactor.ModifierImpl.failModifier(ModifierImpl.java:87)
                  at org.opendaylight.yangtools.yang.parser.stmt.reactor.SourceSpecificContext.failModifiers(SourceSpecificContext.java:383)
                  ... 72 more

      Would it be possible to point out where the actual issue is?

      //mike

       

            Unassigned Unassigned
            eraonel mikael petterson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: