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

peek(s::TranscodingStream, ::Type{Char}) errors #224

Closed
nhz2 opened this issue Jun 15, 2024 · 0 comments · Fixed by #225
Closed

peek(s::TranscodingStream, ::Type{Char}) errors #224

nhz2 opened this issue Jun 15, 2024 · 0 comments · Fixed by #225

Comments

@nhz2
Copy link
Member

nhz2 commented Jun 15, 2024

Here is a MWE:

julia> using TranscodingStreams

julia> s=NoopStream(IOBuffer("🐨"))
NoopStream{IOBuffer}(<mode=idle>)

julia> peek(s, Char)
ERROR: ArgumentError: NoopStream{IOBuffer} not marked
Stacktrace:
 [1] reset(stream::NoopStream{IOBuffer})
   @ TranscodingStreams ~/.julia/packages/TranscodingStreams/F7ot4/src/stream.jl:253
 [2] peek(s::NoopStream{IOBuffer}, ::Type{Char})
   @ Base ./io.jl:331
 [3] top-level scope
   @ REPL[13]:1

julia> versioninfo()
Julia Version 1.10.4
Commit 48d4fd48430 (2024-06-04 10:41 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-15.0.7 (ORCJIT, znver3)
Threads: 1 default, 0 interactive, 1 GC (on 16 virtual cores)

The issue is that this package is missing an implementation for Base.peek(s::TranscodingStream, ::Type{UInt8})::UInt8

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 a pull request may close this issue.

1 participant