TylerBrock / mongo-hacker

MongoDB Shell Enhancements for Hackers
tylerbrock.github.io/mongo-hacker
MIT License
1.79k stars 235 forks source link

Colorization not working #125

Closed rubenvereecken closed 9 years ago

rubenvereecken commented 9 years ago

It's been a while since I've used my trust Mongo shell but apparently since the last time something broke and I don't get a colorized shell anymore. Here's some relevant version info, as printed by the Mongo shell.

MongoDB shell version: 2.4.9
Mongo-Hacker 0.0.5

I scanned through the mongorc.js file and even turned force_color on. Nothing though. What could I be doing wrong?

TylerBrock commented 9 years ago

Can you try using a newer version of the shell? 2.4.x is quite old but I'm surprised it doesn't still work. In the meantime I can investigate why it doesn't work with 2.4.x

stennie commented 9 years ago

@rubenvereecken What O/S are you using? Are you seeing escape characters instead of color, or just no difference when mongo-hacker is loaded?

rubenvereecken commented 9 years ago

Sorry for the late reply!

I'm running Linux Mint 17 Cinnamon. I don't think I updated since the last time it worked which is about half a year ago.

Will report back once I updated Mongo.

rubenvereecken commented 9 years ago

I updated to Mongo 3.0.1 manually and behold, colors work again! I never touched the .mongorc.js file (in fact I made sure it didn't change) but there they are... pretty colors.

I'll leave this open for you to close if you don't feel it necessary to investigate further. As I said, it even worked before so I'm really at a loss to say what caused it.

TylerBrock commented 9 years ago

Hrm... ok, thank you. We will re-open if we get more reports of this being an issue with older shells. Although it should be working.