How to fix the following crash:
using Debugger
using CSV
function csv1()
fPath = joinpath(@__DIR__, "test1.csv");
@assert isfile(fPath)
csvFile = CSV.File(fPath, header = true, delim = '\t');
@bp
return nothing
end
julia> csv1() # this works fine
@run csv1() # this crashes, but only with tab delimiter
ERROR: type UnionAll has no field hasfreetypevars
Stacktrace:
[1] parsepooled!(::Int8, ::Array{UInt64,1}, ::Array{UInt8,1}, ::Int64, ::Int64, ::Parsers.Options{false,true,false,Missing,UInt8,Nothing}, ::Int64, ::Int64, ::Int64, ::Float64, ::Array{Dict{String,UInt64},1}, ::Array{UInt64,1}, ::Array{Int8,1}, ::Bool, ::Array{Array{UInt64,1},1}) at /Users/lutz/.julia/packages/CSV/1IQPk/src/CSV.jl:1057
[2] parsetape(::Val{false}, ::Bool, ::Int64, ::Dict{Int8,Int8}, ::Array{Array{UInt64,1},1}, ::Array{Array{UInt64,1},1}, ::Array{UInt8,1}, ::Int64, ::Int64, ::Int64, ::Nothing, ::Array{Int64,1}, ::Float64, ::Array{Dict{String,UInt64},1}, ::Array{UInt64,1}, ::Int64, ::Array{Int8,1}, ::Array{Int64,1}, ::Bool, ::Parsers.Options{false,true,false,Missing,UInt8,Nothing}, ::Bool) at /Users/lutz/.julia/packages/CSV/1IQPk/src/CSV.jl:686
[3] file(::String, ::Bool, ::Bool, ::Int64, ::Nothing, ::Int64, ::Int64, ::Bool, ::Nothing, ::Bool, ::Bool, ::Array{String,1}, ::String, ::Char, ::Bool, ::Char, ::Nothing, ::Nothing, ::Char, ::Nothing, ::UInt8, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Dict{Int8,Int8}, ::Bool, ::Float64, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Nothing) at /Users/lutz/.julia/packages/CSV/1IQPk/src/CSV.jl:454
[4] #File#15(::Bool, ::Bool, ::Int64, ::Nothing, ::Int64, ::Int64, ::Bool, ::Nothing, ::Bool, ::Bool, ::Array{String,1}, ::String, ::Char, ::Bool, ::Char, ::Nothing, ::Nothing, ::Char, ::Nothing, ::UInt8, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Dict{Int8,Int8}, ::Bool, ::Float64, ::Bool, ::Bool, ::Nothing, ::Bool, ::Bool, ::Nothing, ::UnionAll, ::String) at /Users/lutz/.julia/packages/CSV/1IQPk/src/CSV.jl:260
[5] (::Core.var"#kw#Type")(::NamedTuple{(:header, :delim),Tuple{Bool,Char}}, ::UnionAll, ::String) at none:0
[6] csv1() at /Users/lutz/Documents/projects/p2019/college_stratification/CollegeStrat/src/AA.jl:11
This is using Julia 1.3 and Debugger 0.6.2 and CSV 0.5.22.
Thanks!