shashi / FileTrees.jl

Parallel computing with a tree of files metaphor
http://shashi.biz/FileTrees.jl
Other
88 stars 6 forks source link

Saving empty filetree gives StackOverflowError #23

Closed jonalm closed 4 years ago

jonalm commented 4 years ago
julia> using FileTrees

julia> t = maketree("test_tree" => [])
test_tree/

julia> FileTrees.save(t) do file
           @show path(file)
        end
ERROR: StackOverflowError:
Stacktrace:
 [1] Array at ./boot.jl:406 [inlined]
 [2] similar at ./array.jl:379 [inlined]
 [3] getindex at ./array.jl:817 [inlined]
 [4] assocreduce(::FileTrees.var"#79#80"{FileTrees.var"#72#75"}, ::Array{Any,1}) at /Users/jonalm/.julia/packages/FileTrees/j9nGP/src/values.jl:72 (repeats 37392 times)
 [5] reducevalues(::Function, ::FileTree; associative::Bool, lazy::Nothing) at /Users/jonalm/.julia/packages/FileTrees/j9nGP/src/values.jl:61
 [6] reducevalues at /Users/jonalm/.julia/packages/FileTrees/j9nGP/src/values.jl:59 [inlined]
 [7] save(::var"#1#2", ::FileTree; lazy::Nothing, exec::Bool) at /Users/jonalm/.julia/packages/FileTrees/j9nGP/src/values.jl:102
 [8] save(::Function, ::FileTree) at /Users/jonalm/.julia/packages/FileTrees/j9nGP/src/values.jl:85
 [9] top-level scope at REPL[3]:1
DrChainsaw commented 4 years ago

Same as #16?

shashi commented 4 years ago

Yes, I think so.