Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-11657

Suppress Lunr logs about overwriting existing functions

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.7
    • Component/s: Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      Right now, we register a custom Lunr plugin on every page being built, which pollutes the build logs:

      > Task :server:sonar-docs:yarn_run
      Overwriting existing registered function: tokenContext
      Overwriting existing registered function: tokenContext
      Overwriting existing registered function: tokenContext
      Overwriting existing registered function: tokenContext
      Overwriting existing registered function: tokenContext
      Overwriting existing registered function: tokenContext
      Overwriting existing registered function: tokenContext
      Overwriting existing registered function: tokenContext
      Overwriting existing registered function: tokenContext
      Overwriting existing registered function: tokenContext
      ...
      

      These are only notices, and don't mean anything bad. But they can be annoying. Right now, there's an open issue on GH (https://github.com/weixsong/elasticlunr.js/issues/57), but no solution. Perhaps we can check if the plugin is already registered prior to registering it again? We need to make sure it doesn't break the Gatsby building, though...

        Attachments

          Activity

            People

            Assignee:
            wouter.admiraal Wouter Admiraal
            Reporter:
            wouter.admiraal Wouter Admiraal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: