Skip to content

Unescaped output #2339

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

Closed
1 task
K2ouMais opened this issue Sep 24, 2019 · 3 comments
Closed
1 task

Unescaped output #2339

K2ouMais opened this issue Sep 24, 2019 · 3 comments

Comments

@K2ouMais
Copy link

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • Which version of Git for Windows are you using? Is it 32-bit or 64-bit?
    64-bit
$ git --version --build-options

** git version 2.23.0.windows.1
cpu: x86_64
built from commit: 4db2e5cc9e1522131a039cbad3970f147a39f0ce
sizeof-long: 4
sizeof-size_t: 8 **
  • Which version of Windows are you running? Vista, 7, 8, 10? Is it 32-bit or 64-bit?
    Windows 10 x64 (latest version)
$ cmd.exe /c ver

** Microsoft Windows [Version 10.0.18362.356] **
  • What options did you set as part of the installation? Or did you choose the
    defaults?
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

** Editor Option: VIM
Custom Editor Path: 
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Performance Tweaks FSCache: Enabled
Use Credential Manager: Enabled
Enable Symlinks: Disabled
Enable Builtin Interactive Add: Disabled **
  • Any other interesting things about your environment that might be related
    to the issue you're seeing?

** Nothing **

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

** Git Bash, vscode and PHPStorm **

Run "php artisan insights" after installing the package nunomaduro/phpinsights in a Laravel project. Using the same Git installation, it seems to work in vsCode, but it doesnt work on the normal Git Terminal and on PHPStorm.

** php artisan insights **
  • What did you expect to occur after running these commands?
** I was expecting to see a graphical output **
  • What actually happened instead?
** Lots of unescapeed chars **
  • If the problem was occurring with a specific repository, can you provide the
    URL to that repository to help us with testing?
** Nothing **

vsCode: (Here is how it should look like)
Git_Vscode

Git Bash:
Git_Problem

PHPStorm:
Git_PHPStorm

@PhilipOakley
Copy link

have a look at the FAQs and search for winpty.

See if reading the section helps.

@K2ouMais
Copy link
Author

Even with winpty the output is broken.

@dscho
Copy link
Member

dscho commented Oct 1, 2019

@K2ouMais maybe you need to adjust TERM? If everything else fails, TERM=dumb should get rid of those ANSI sequences (which is not really unescaped output).

@K2ouMais K2ouMais closed this as completed Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants