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

git tag at the wrong position with pwsh #2163

Closed
1 of 3 tasks
Geobert opened this issue Sep 13, 2019 · 12 comments
Closed
1 of 3 tasks

git tag at the wrong position with pwsh #2163

Geobert opened this issue Sep 13, 2019 · 12 comments

Comments

@Geobert
Copy link

Geobert commented Sep 13, 2019

Purpose of the issue

  • Bug report (encountered problems/errors)
  • Feature request (request for new functionality)
  • Question

Version Information

ConEmu 190526 (issue shows on stable 161206 as well)

Description of the issue

Using Windows' 10 Powershell it's working fine:
image

Using pwsh:
image

EDIT: it's both pwsh 6 and 7preview3

Moreover, with pwsh 6, I got many errors on startup of the shell:

Set-PSReadlineOption : The type initializer for 'Microsoft.PowerShell.PSConsoleReadLine' threw an exception.
At C:\Users\Geob\AppData\Roaming\Cmder\vendor\profile.ps1:92 char:5
+     Set-PSReadlineOption -ExtraPromptLineCount 1
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Set-PSReadLineOption], TypeInitializationException
+ FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.PowerShell.SetPSReadLineOption

Set-PSReadlineOption : The type initializer for 'Microsoft.PowerShell.PSConsoleReadLine' threw an exception.
At J:\Docs\WindowsPowerShell\Microsoft.PowerShell_profile.ps1:1 char:1
+ Set-PSReadlineOption -BellStyle None
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Set-PSReadLineOption], TypeInitializationException
+ FullyQualifiedErrorId : System.TypeInitializationException,Microsoft.PowerShell.SetPSReadLineOption

That I don't get with 7preview

@stale
Copy link

stale bot commented Oct 14, 2019

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in a week if no further activity occurs. Thank you for your contribution(s).

@stale stale bot added the 👀 Awaiting Response Waiting to hear back from the issue reporter. label Oct 14, 2019
@Geobert
Copy link
Author

Geobert commented Oct 14, 2019

Still relevant today

@stale stale bot removed the 👀 Awaiting Response Waiting to hear back from the issue reporter. label Oct 14, 2019
@daxgames
Copy link
Member

daxgames commented Nov 3, 2019

Looks fine to me:

image

Running:

image

This is the latest Cmder pre-release code running with the latest Conemu 191012.

@daxgames
Copy link
Member

daxgames commented Nov 3, 2019

Also tested with cmder 1.3.11 and posh-git 0.7.3.

I doubt this is a cmder issue.

@daxgames daxgames closed this as completed Nov 3, 2019
@viceice
Copy link

viceice commented Nov 27, 2019

looks strange here:

image

@daxgames
Copy link
Member

@viceice yeah that looks strange but that is not what I get.

@viceice
Copy link

viceice commented Nov 27, 2019

it's related to dahlbyk/posh-git#592

@viceice
Copy link

viceice commented Nov 27, 2019

$GitPromptSettings.AnsiConsole = 0; has to be set for posh-git >= 1.0.0

@spooky
Copy link

spooky commented May 14, 2020

$GitPromptSettings.AnsiConsole = 0; has to be set for posh-git >= 1.0.0

that fix doesn't work with beta 4 :(

@feafarot
Copy link

feafarot commented Jan 7, 2021

I was also not able to get this working on posh-git 1.0-beta4
Best thing I've managed to achieve is this:

[ScriptBlock]$PostPrompt = {
    $GitPromptSettings.AnsiConsole = $false;
}

Which only works for the second command entry
Screenshot_1

@damiothar
Copy link

damiothar commented May 12, 2021

Which only works for the second command entry

Im having the exact same issue here

@Aaronontheweb
Copy link

Same, just started having this issue myself

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

8 participants
@Geobert @Aaronontheweb @spooky @viceice @feafarot @daxgames @damiothar and others