Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmder display error #491

Closed
Y-anon opened this issue May 19, 2015 · 10 comments
Closed

cmder display error #491

Y-anon opened this issue May 19, 2015 · 10 comments
Labels
👆 ConEmu Upstream issue in ConEmu. 🐛 Type: Bug

Comments

@Y-anon
Copy link

Y-anon commented May 19, 2015

(laravel) php artisan tinker & cmder

Hi, I have a weird problem, whenever I use php artisan tinker, when I display an object within it I get the following :

cmder and php artisan tinker

Description :

Basically whenever tinker prints out an object, it dislays its class between < and > and somehow it then highlights everything in white.

My 'quick noob fix' once i'm done with tinker is to restart tinker ( starting it clears the white highlight)
cmder and php artisan tinker2

and then i clear it...

It's a bit annoying. I'm not getting it with git bash or the good ol' cmd... And I do get it aswell with cmder as {cmd} or {PowerShell}
So far it's the only problem i've found with cmder, it's a life changer, it kicks asses !

SYS INFO

Paths:
C:\Users\Yin\AppData\Roaming\Composer\vendor\bin;C:\Ruby22-x64\bin;C:\Users\Yin\AppData\Local\atom\bin;C:\Users\Yin\AppData\Roaming\npm

system : win8 64bit

@MartiUK
Copy link
Member

MartiUK commented May 19, 2015

That's really odd, I wonder if it's setting the background colour as well as the foreground color, I don't know my PHP but it looks like the offending code is here: https://github.com/bobthecow/psysh/blob/master/src/Psy/Output/ShellOutput.php#L198

Which uses symfony to set the colour: https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php

Is there a default background colour it's assuming is there?

@Y-anon
Copy link
Author

Y-anon commented May 19, 2015

It might set the background color (of the text), when I do a clear I have those highlights the whole screen becomes lighter but the padding of cmder's window doesn't change...

But then again through the OutputFormatterStyle class it's not passing a background, only a foreground...

in ShellOutput.php#L198 it calls OutputFormatterStyle's constructor with only a foreground as argument, which then calls setForeground L86 ... and it doesn't touch the bg . at least as far as i can see.

ref:
https://github.com/symfony/symfony/blob/2.7/src/Symfony/Component/Console/Formatter/OutputFormatterStyle.php#L86-L131

Since the highlight triggers AFTER the 'blue' as been called when he calls an object, i think somethign else is causing it...

I think the problem comes from git bash perhaps. i'll try later tmrw to uninstall it and see what happens.

Also i'm following a tutorial on Laravel, and they're using cmder (on mac) and not having that issue.

So the problem is on my end, i'll check later

@SrcFlux
Copy link

SrcFlux commented May 19, 2015

I'm experiencing this issue as well. A fix for it would be awesome!

@mayankchd
Copy link

I'm also facing this problem .

@mayankchd
Copy link

I have solved the issue . Change Schemes to ubuntu and it will work fine ...
untitled

@Y-anon
Copy link
Author

Y-anon commented Jul 5, 2015

@DonkeyCoder this didn't fix it for me :/

@mayankchd
Copy link

Make sure you are using latest version of Cmder ( Laragon 6.0).

@mayankchd
Copy link

untitled

I got the problem . Make sure your colour at 0 position and 8 position are same . 8th position is the selected colour if it is similar to background it won't show the selection , and make sure background is set to #2 .

Tell me if it solved that

@Y-anon
Copy link
Author

Y-anon commented Jul 17, 2015

This fixed it ! Thank you :)

@Stanzilla Stanzilla added the 👆 ConEmu Upstream issue in ConEmu. label Oct 12, 2015
@babeuloula
Copy link

Hello,

I have a similary problem with Symfony3. See below :

capture d ecran 2016-05-31 19 27 12

capture d ecran 2016-05-31 19 27 07

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👆 ConEmu Upstream issue in ConEmu. 🐛 Type: Bug
Projects
None yet
Development

No branches or pull requests

6 participants