[COMPASS-4796] Syntax highlighting breaks in the embedded shell with some types of output Created: 05/May/21  Updated: 03/Dec/21  Resolved: 04/Nov/21

Status: Closed
Project: Compass
Component/s: Embedded Shell
Affects Version/s: None
Fix Version/s: No version

Type: Bug Priority: Major - P3
Reporter: Massimiliano Marcon Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Documentation Changes: Not Needed

 Description   

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



 Comments   
Comment by Massimiliano Marcon [ 04/Nov/21 ]

closing for now

Generated at Wed Feb 07 22:37:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.