Skip to content

try to get the Pkg.test subprocess to detect sixel compat #29

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IanButterworth
Copy link
Member

Currently is_sixel_supported() returns false within Pkg.test within a terminal that otherwise returns true, which is a shame because that's one of the most useful places for Sixel to run.

I think it's something to do with stdin not being forwarded properly by Pkg.test.
@oxinabox I recall you reported an issue like that in the past, but I couldn't find it in Pkg.jl issues.

Note stdin isn't forwarded here https://github.com/JuliaLang/Pkg.jl/blob/12c3eaf1a896edfc21bb935500bf905d42067a8a/src/Operations.jl#L2437

So in Sixel tests via Pkg.test we get

stdin = IOStream(<fd 8>)
stdout = Base.TTY(RawFD(10) open, 0 bytes waiting)
stderr = Base.TTY(RawFD(13) open, 0 bytes waiting)

@t-bltg
Copy link
Collaborator

t-bltg commented Apr 21, 2025

I think it's something to do with stdin not being forwarded properly by Pkg.test.
@oxinabox I recall you reported an issue like that in the past, but I couldn't find it in Pkg.jl issues.

Is this JuliaLang/Pkg.jl#3185 ?

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

Successfully merging this pull request may close these issues.

2 participants