kmsquire / RingBuffer.jl

Julia ring buffer implementation for buffered io
Other
0 stars 0 forks source link

ERROR: LoadError: UndefVarError: IORBBuffer not defined #2

Open scls19fr opened 8 years ago

scls19fr commented 8 years ago
julia> Pkg.clone("https://github.com/kmsquire/RingBuffer.jl.git")
INFO: Cloning RingBuffer from https://github.com/kmsquire/RingBuffer.jl.git
INFO: Computing changes...

julia> using RingBuffer
ERROR: LoadError: UndefVarError: IORBBuffer not defined
 in include at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in require at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
while loading /Users/scls/.julia/v0.4/RingBuffer/src/RingBuffer.jl, in expression starting on line 2
scls19fr commented 8 years ago

Moving code

type IORBBuffer{T}
    ord::Integer
    datasize::Integer
    pinned::Bool
    readercount::Integer
    writercount::Integer
    markcount::Integer
    buffer::AbstractArray{T}
end

to top of RingBuffer.jl file doesn't help much

see

$ julia sample.jl
WARNING: static parameter T does not occur in signature for call at /Users/scls/.julia/v0.4/RingBuffer/src/RingBuffer.jl:26.
The method will not be callable.
ERROR: LoadError: LoadError: UndefVarError: IORBReader not defined
 in include at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in include_from_node1 at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in process_options at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
 in _start at /Applications/Julia-0.4.3.app/Contents/Resources/julia/lib/julia/sys.dylib
while loading /Users/scls/.julia/v0.4/RingBuffer/src/RingBuffer.jl, in expression starting on line 29
while loading /Users/scls/.julia/v0.4/RingBuffer/sample.jl, in expression starting on line 1

with sample.jl being:

include("src/RingBuffer.jl")

using RingBuffer
kmsquire commented 8 years ago

@scls19fr, thanks for your interest!

This was an experiment that I never finished--sorry about that.

I did see that you found the example in DataStructures.jl. Hopefully that helps.

Cheers!