profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/segevfiner/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.

segevfiner/atom 0

The hackable text editor :atom:

segevfiner/atom-editorconfig 0

Helps developers maintain consistent coding styles between different editors

segevfiner/autocomplete-python-jedi 0

Jedi based Python autocomplete for Atom

segevfiner/aws-vault 0

A vault for securely storing and accessing AWS credentials in development environments

segevfiner/cargo 0

The Rust package manager

segevfiner/clap-rs 0

A full featured, fast Command Line Argument Parser for Rust

segevfiner/click 0

Python composable command line utility

segevfiner/click-completion 0

Add or enhance bash, fish, zsh and powershell completion in Click

segevfiner/colorama 0

Simple cross-platform colored terminal text in Python

segevfiner/cpython 0

The Python programming language

issue commentstarship/starship

Powershell - Add PSReadline -PromptText Option to match character module

Also note https://github.com/PowerShell/PSReadLine/pull/1180, if needed.

JustinGrote

comment created time in 2 days

issue commentkelleyma49/PSFzf

Special characters are replaced with question marks after PSFzf runs (but not after fzf by itself)

Submitted https://github.com/PowerShell/PSReadLine/issues/2866

jmoore34

comment created time in 4 days

startedstarship/starship

started time in 4 days

issue openedPowerShell/PSReadLine

InvokePrompt breaks with a prompt that prints unicode characters

<!--

Before submitting your bug report ...

  • Please make sure you are able to reproduce the issue with the latest version of PSReadLine.
  • Please check for duplicates. +1 the duplicate if you find one and add additional details if you have any.

The maintainer may close your issue without further explanation or engagement if:

  • You delete this entire template and go your own path;
  • You file an issue that has many duplicates;
  • You file an issue completely blank in the body.

-->

Environment

PS version: 7.1.4
PSReadline version: 2.1.0
os: 10.0.19041.1 (WinBuild.160101.0800)
PS file version: 7.1.4.0
HostName: ConsoleHost (Windows Terminal)
BufferWidth: 120
BufferHeight: 30

<!--

The following script will generate the environment data that helps triage and investigate the issue. Please run the script in the PowerShell session where you ran into the issue and provide the output above.

& { $hostName = $Host.Name if ($hostName -eq "ConsoleHost" -and (Get-Command Get-CimInstance -ErrorAction SilentlyContinue)) { $id = $PID $inWindowsTerminal = $false while ($true) { $p = Get-CimInstance -ClassName Win32_Process -Filter "ProcessId Like $id" if (!$p -or !$p.Name) { break } if ($p.Name -eq "WindowsTerminal.exe") { $inWindowsTerminal = $true; break } $id = $p.ParentProcessId } if ($inWindowsTerminal) { $hostName += " (Windows Terminal)" } }

"`nPS version: $($PSVersionTable.PSVersion)"
$m = Get-Module PSReadline
$v = $m.Version; $pre = $m.PrivateData.PSData.Prerelease
if ($pre) { $v = "$v-$pre" }
"PSReadline version: $v"
if ($IsLinux -or $IsMacOS) {
    "os: $(uname -a)"
} else {
    "os: $((dir $env:SystemRoot\System32\cmd.exe).VersionInfo.FileVersion)"
}
"PS file version: $($name = if ($PSVersionTable.PSEdition -eq "Core") { "pwsh.dll" } else { "powershell.exe" }; (dir $pshome\$name).VersionInfo.FileVersion)"
"HostName: $hostName"
"BufferWidth: $([console]::BufferWidth)"
"BufferHeight: $([console]::BufferHeight)`n"

}

-->

Exception report

<!-- Copy and paste the keys and the exception stack trace printed by PSReadLine, if there is any --> N/A

Steps to reproduce

<!-- A description of how to trigger this bug. -->

  1. Install a prompt function that writes directly to the console and uses Unicode characters. (e.g. https://starship.rs/)
  2. Run [Microsoft.PowerShell.PSConsoleReadLine]::InvokePrompt()
  3. The prompt will be output garbled with question marks in place of Unicode characters.

This function is used by other projects, such as PSFzf to re-render the prompt in cases where this is necessary.

Expected behavior

<!-- A description of what you're expecting, possibly containing screenshots or reference material. --> The prompt is rendered correctly: image

Actual behavior

<!-- What's actually happening? --> The prompt is rendered incorrectly: image

Analysis

It appears the InvokePrompt is using GetPrompt, buffering the prompt to a string and then writing it to the console by itself. But because the default [Console]::OutputEncoding is not UTF8, this breaks, which the prompt function handles when it gets to write to the console directly by itself under normal circumstances.

A workaround can be to set [Console]::OutputEncoding to [Text.Encoding]::UTF8, which does make this work, yet I'm unsure what side effects this might have on other stuff in PowerShell that will try to output to the console, or maybe that should have been the default but isn't for some reason?

Maybe PSReadline should set this temporarily while printing the prompt to the console? Or alternatively, re-implement InvokePrompt in a way that won't require it to buffer the prompt string.

References

https://github.com/kelleyma49/PSFzf/issues/71

created time in 4 days

push eventsegevfiner/docker-py

Ronald van Zantvoort

commit sha ab21746d8f988af474f251792a39fcccd98839cc

build_prune Signed-off-by: Ronald van Zantvoort <the.loeki@gmail.com>

view details

Joffrey F

commit sha 52c3d528f64dbc9bd155ae9bc74b454f842761c5

Bump 3.1.1 Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 4c263ee2c92b64c1714c75f56d1dbde74de97bee

Merge pull request #1943 from docker/3.1.1-release 3.1.1 release

view details

Joffrey F

commit sha 884261e24103f6732d4f529c19e6f7b56ccf199c

Fix socket tests for TLS-enabled tests Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha a4e642b015c50d9c628413341ed00c89599f66be

Use networks instead of legacy links for test setup Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Viktor Adam

commit sha 719d4e9e2091edef8c084857051a751bb8f97ea2

Allow cancelling the streams from other threads Signed-off-by: Viktor Adam <rycus86@gmail.com>

view details

Joffrey F

commit sha 284c3d90d6ab1c49410d5622ca8cd3f37dcbe296

Remove redundant single-socket select call Clean up + use pytest-timeout Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 9c2b4e12f87bdec349caf85d97625bd93de1e027

Use same split rules for Dockerfile as other include/exclude patterns Signed-off-by: Joffrey F <joffrey@docker.com>

view details

James

commit sha cf1d869105641095406db7bf2e5e0e2c1a9bb014

Updates docs for rename of `name` to `repository` Signed-off-by: James Meakin <jamesmeakin@gmail.com>

view details

Joffrey F

commit sha ffdc0487f5d2f20066c18e29edf2931ca66385fb

Fix socket tests for TLS-enabled tests Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 3f3ca7ed431b18332967cf9d3f0ffce098016011

Use networks instead of legacy links for test setup Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 791de789ecb9219fa9a8fa9f241213866ee7b7e1

Bump 3.1.2 Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 88b0d697aa5386c2ef90a5b480cd400ce5a32646

Bump test engine versions Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha af674155b78eaf1d014853d9dfcf728b22f1302b

Bump 3.1.3 Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 7a28cad58ec7c279b91c75a3aa701bb89e0e75cd

Don't descend into symlinks when building context tar Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha a9ecb7234f476989bf28db4f15a5d1d4e47734e6

Don't descend into symlinks when building context tar Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha ea682a69d6c71721f441018fe429e4f1b83ceabf

Bump 3.1.4 Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha cd9fed108cd06baf318e9a9670fd27298304ef04

Generate test engines list dynamically Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha c88db80f01ebef002d3bf9aca49ce273b46c6928

Add isolation param to build Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 12a6833eba4f64be1386d3da0d605156319c5946

Update MAINTAINERS file Signed-off-by: Joffrey F <joffrey@docker.com>

view details

push time in 5 days

push eventsegevfiner/docker-py

Ronald van Zantvoort

commit sha ab21746d8f988af474f251792a39fcccd98839cc

build_prune Signed-off-by: Ronald van Zantvoort <the.loeki@gmail.com>

view details

Joffrey F

commit sha 52c3d528f64dbc9bd155ae9bc74b454f842761c5

Bump 3.1.1 Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 4c263ee2c92b64c1714c75f56d1dbde74de97bee

Merge pull request #1943 from docker/3.1.1-release 3.1.1 release

view details

Joffrey F

commit sha 884261e24103f6732d4f529c19e6f7b56ccf199c

Fix socket tests for TLS-enabled tests Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha a4e642b015c50d9c628413341ed00c89599f66be

Use networks instead of legacy links for test setup Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Viktor Adam

commit sha 719d4e9e2091edef8c084857051a751bb8f97ea2

Allow cancelling the streams from other threads Signed-off-by: Viktor Adam <rycus86@gmail.com>

view details

Joffrey F

commit sha 284c3d90d6ab1c49410d5622ca8cd3f37dcbe296

Remove redundant single-socket select call Clean up + use pytest-timeout Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 9c2b4e12f87bdec349caf85d97625bd93de1e027

Use same split rules for Dockerfile as other include/exclude patterns Signed-off-by: Joffrey F <joffrey@docker.com>

view details

James

commit sha cf1d869105641095406db7bf2e5e0e2c1a9bb014

Updates docs for rename of `name` to `repository` Signed-off-by: James Meakin <jamesmeakin@gmail.com>

view details

Joffrey F

commit sha ffdc0487f5d2f20066c18e29edf2931ca66385fb

Fix socket tests for TLS-enabled tests Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 3f3ca7ed431b18332967cf9d3f0ffce098016011

Use networks instead of legacy links for test setup Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 791de789ecb9219fa9a8fa9f241213866ee7b7e1

Bump 3.1.2 Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 88b0d697aa5386c2ef90a5b480cd400ce5a32646

Bump test engine versions Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha af674155b78eaf1d014853d9dfcf728b22f1302b

Bump 3.1.3 Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 7a28cad58ec7c279b91c75a3aa701bb89e0e75cd

Don't descend into symlinks when building context tar Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha a9ecb7234f476989bf28db4f15a5d1d4e47734e6

Don't descend into symlinks when building context tar Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha ea682a69d6c71721f441018fe429e4f1b83ceabf

Bump 3.1.4 Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha cd9fed108cd06baf318e9a9670fd27298304ef04

Generate test engines list dynamically Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha c88db80f01ebef002d3bf9aca49ce273b46c6928

Add isolation param to build Signed-off-by: Joffrey F <joffrey@docker.com>

view details

Joffrey F

commit sha 12a6833eba4f64be1386d3da0d605156319c5946

Update MAINTAINERS file Signed-off-by: Joffrey F <joffrey@docker.com>

view details

push time in 5 days

issue commentkelleyma49/PSFzf

Special characters are replaced with question marks after PSFzf runs (but not after fzf by itself)

Should someone file this bug against PSReadline then?

jmoore34

comment created time in 7 days

issue commentpypa/pypi-support

Unable to access PyPI's CDN (files.pythonhosted.org) on macOS with IPv6 connectivity

This seems to possibly be an issue with Fastly and my ISP over IPv6? GitHub is apparently also using it, and seems to have enabled IPv6 for some resources over it, and now I can't download GitHub releases, only see user avatars intermittently, and so on. I'm not sure how to diagnose further and who to contact... (I have a feeling my ISP's support will probably answer with "WhTs IP?" after waiting for at least an hour for them to even answer...)

segevfiner

comment created time in 24 days