You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system name and version: Microsoft Windows NT 10.0.19044.0
Issue Description
Since yesterday posh-git does not work properly anymore. By that I mean that instead of adding Git information to the prompt it sets it to an empty one only showing PS>.
I have no experience with writing powershell scripts but I tried debugging the issue by putting various Write-Warning statements in the code. It turns out that
where, again, no Write-Warning statements were printed after that. I don't really know what this means or how adding that type can suddenly cause problems from one day to the other. The only thing that happened between Wednesday (where everything worked) and Thursday (where this issue first appeared) is that I uninstalled miniconda, Qt and a few other programs and then installed miniconda again. Appart from PATH shenanigans I have no idea how that would cause this issue though.
Anyway, since everything seems to work, if I comment out Set-ConsoleMode -ANSI, this is not a pressing/urgent issue for me. I am still curious though if anyone can tell me how to properly fix this.
The text was updated successfully, but these errors were encountered:
System Details
Issue Description
Since yesterday posh-git does not work properly anymore. By that I mean that instead of adding Git information to the prompt it sets it to an empty one only showing
PS>
.I have no experience with writing powershell scripts but I tried debugging the issue by putting various
Write-Warning
statements in the code. It turns out thatposh-git/src/GitPrompt.ps1
Line 900 in 70e44dc
causes the problem. Any
Write-Warning
statements after that line were not printed. If I comment it out, the Git info is displayed correctly again.I did some more "debugging" and the furthest I got was to
posh-git/src/ConsoleMode.ps1
Line 94 in 70e44dc
where, again, no
Write-Warning
statements were printed after that. I don't really know what this means or how adding that type can suddenly cause problems from one day to the other. The only thing that happened between Wednesday (where everything worked) and Thursday (where this issue first appeared) is that I uninstalled miniconda, Qt and a few other programs and then installed miniconda again. Appart from PATH shenanigans I have no idea how that would cause this issue though.Anyway, since everything seems to work, if I comment out
Set-ConsoleMode -ANSI
, this is not a pressing/urgent issue for me. I am still curious though if anyone can tell me how to properly fix this.The text was updated successfully, but these errors were encountered: