Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-4796

Syntax highlighting breaks in the embedded shell with some types of output

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: None
    • Component/s: Embedded Shell
    • None
    • Not Needed
    • None

      Problem Description

      In some situations, the output of some commands breaks syntax highlighting.

      Steps to Reproduce

      Create an index on a big collection and run

      db.currentOp({
      'msg' :

      { $exists: true }

      ,
      'command':

      { $exists: true }

      ,
      $or: [
      { 'command.createIndexes':

      { $exists: true }

      },
      { 'command.reIndex':

      { $exists: true }

      }
      ]
      }).inprog.forEach(function(op)

      { print(op); }

      );

      Note that one of the fields contains a Buffer.

      Expected Results

      Syntax highlighting works well

      Actual Results

      After the Buffer all the text is white.

      Additional Notes

            Assignee:
            Unassigned Unassigned
            Reporter:
            massimiliano.marcon@mongodb.com Massimiliano Marcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: