PHP show no messages in GitBash under Windows 10

Asked
Active3 hr before
Viewed126 times

6 Answers

90%

Thanks for reporting the issue, I don't really use Windows nor git bash so I'm not too surprised to see these incompatibilities. I'll address the problem when I'll have the time.,Issue : "No such file or directory": problem with gitbash in Windows 10 #2 if you find the solutions for it please let me know.,@stevenkkim I am facing the same issue as you have and I am new user for this github so kindly help regarding the same issue faced by me,I'm using vs code on Windows 10, but I'm using gitbash as my integrated terminal instead of the Windows shell.

        switch (kindOfShell(vscode.workspace.getConfiguration('terminal'))) {
           case "wslbash":
              // c:\workspace\foo to /mnt/c/workspace/foo
              dir = dir.replace(/(\w):/, '/mnt/$1').replace(/\\/g, '/')
              break;
           case "cmd":
              // send 1st two characters (drive letter and colon) to the terminal
              // so that drive letter is updated before running cd
              terminal.sendText(dir.slice(0, 2));
        }

        terminal.sendText(`cd "${dir}"`);
88%

On Windows GIT Bash Ctrl + X would do nothing and found out it works quite like
   vi / vim.Press i to enter inline insert mode.Type the description at the very
top, press esc to exit insert mode, then type: x!(now the cursor is at the bottom) and hit enter to save and exit.
72%

I believe this issue is more about how Git Bash handles piping, and less about PHP, because I encountered the same symptom using Python on Windows. The currently most-voted answer does not work for me. It might work a few months later, based on this comment and a follow-up comment. But I'm impatient so I choose to use the native Windows Command Prompt and, voila, it works!, Stack Exchange network consists of 178 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. ,I tried to write the output of the command php -i to the a file using php -i > info and received the following error:,Connect and share knowledge within a single location that is structured and easy to search.

Write

php.exe - i > info

instead of

php - i > info
load more v
65%

On Windows, the best way to get Bash is through Windows Subsystem for Linux. You can also use another Bash-compatible shell such as Git Bash, which you might have installed with git., A Bash-like shell On Windows, the best way to get Bash is through Windows Subsystem for Linux. You can also use another Bash-compatible shell such as Git Bash, which you might have installed with git. , Health notifications ,You can always specify the project and environment in two ways:

curl - fsS https: //platform.sh/cli/installer | php
load more v
75%

This can happen if Windows Subsystem for Linux (WSL) is not set up with a valid default Linux distribution., Windows Subsystem for Linux , GCC on Windows Subsystem for Linux ,terminal.integrated.inheritEnv - Whether new shells should inherit their environment from VS Code.

The easy fix for this issue is to use the 64-bit version. If you must use the 32-bit version, you need to use the sysnative path when configuring your shell path instead of System32. Adding this setting should fix the issue:

"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\cmd.exe"
load more v
40%

From the main menu, select View | Tool Windows | Terminal or press Alt+F12.,By default, the terminal emulator runs with the current directory set to the root directory of the current project. For information about changing the default start directory, see Configure the terminal emulator.,The embedded terminal emulator also inherits the following IDE settings:,Initially, the terminal emulator runs with your default system shell, but it supports many other shells, such as Windows PowerShell, Command Prompt cmd.exe, sh, bash, zsh, csh, and so on. For information about changing the shell, see Configure the terminal emulator.

PhpStorm includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Initially, the terminal emulator runs with your default system shell, but it supports many other shells, such as Windows PowerShell, Command Prompt cmd.exe, sh, bash, zsh, csh, and so on. For information about changing the shell, see Configure the terminal emulator.

sh

PhpStorm includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Initially, the terminal emulator runs with your default system shell, but it supports many other shells, such as Windows PowerShell, Command Prompt cmd.exe, sh, bash, zsh, csh, and so on. For information about changing the shell, see Configure the terminal emulator.

bash

PhpStorm includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Initially, the terminal emulator runs with your default system shell, but it supports many other shells, such as Windows PowerShell, Command Prompt cmd.exe, sh, bash, zsh, csh, and so on. For information about changing the shell, see Configure the terminal emulator.

zsh

PhpStorm includes an embedded terminal emulator for working with your command-line shell from inside the IDE. Use it to run Git commands, set file permissions, and perform other command-line tasks without switching to a dedicated terminal application.

Initially, the terminal emulator runs with your default system shell, but it supports many other shells, such as Windows PowerShell, Command Prompt cmd.exe, sh, bash, zsh, csh, and so on. For information about changing the shell, see Configure the terminal emulator.

csh
load more v

Other "undefined-undefined" queries related to "PHP show no messages in GitBash under Windows 10"