Skip to content

Failing due to new version of CSV.jl 0.5.1 #69

@xiaodaigh

Description

@xiaodaigh

On Julia 1.1 with CSV.jl 0.5.1 I get an error running

using RDatasets
cars = dataset("datasets", "cars")
MethodError: no method matching CSV.File(::Base.GenericIOBuffer{Array{UInt8,1}}; delim=',', quotechar='"', missingstring="NA", rows_for_type_detect=200)
Closest candidates are:
  CSV.File(::Any; header, normalizenames, datarow, skipto, footerskip, limit, transpose, comment, use_mmap, missingstrings, missingstring, delim, ignorerepeated, quotechar, openquotechar, closequotechar, escapechar, dateformat, decimal, truestrings, falsestrings, type, types, typemap, categorical, pool, strict, silencewarnings, debug, parsingdebug, allowmissing) at C:\Users\RTX2080\.julia\packages\CSV\iKwnQ\src\CSV.jl:154 got unsupported keyword argument "rows_for_type_detect"
  CSV.File(::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any, !Matched::Any) at C:\Users\RTX2080\.julia\packages\CSV\iKwnQ\src\CSV.jl:24 got unsupported keyword arguments "delim", "quotechar", "missingstring", "rows_for_type_detect"
  CSV.File(!Matched::String, !Matched::Array{UInt8,1}, !Matched::Array{Symbol,1}, !Matched::Array{Type,1}, !Matched::UInt8, !Matched::Bool, !Matched::Array{Array{String,1},1}, !Matched::Int64, !Matched::Int64, !Matched::Array{UInt64,1}) at C:\Users\RTX2080\.julia\packages\CSV\iKwnQ\src\CSV.jl:24 got unsupported keyword arguments "delim", "quotechar", "missingstring", "rows_for_type_detect"

Stacktrace:
 [1] kwerr(::NamedTuple{(:delim, :quotechar, :missingstring, :rows_for_type_detect),Tuple{Char,Char,String,Int64}}, ::Type, ::Base.GenericIOBuffer{Array{UInt8,1}}) at .\error.jl:125
 [2] (::getfield(Core, Symbol("#kw#Type")))(::NamedTuple{(:delim, :quotechar, :missingstring, :rows_for_type_detect),Tuple{Char,Char,String,Int64}}, ::Type{CSV.File}, ::Base.GenericIOBuffer{Array{UInt8,1}}) at .\none:0
 [3] (::getfield(RDatasets, Symbol("##1#2")){String,String})(::IOStream) at C:\Users\RTX2080\.julia\packages\RDatasets\1Ih8s\src\dataset.jl:28
 [4] #open#310(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(RDatasets, Symbol("##1#2")){String,String}, ::String, ::Vararg{String,N} where N) at .\iostream.jl:369
 [5] open(::Function, ::String, ::String) at .\iostream.jl:367
 [6] dataset(::String, ::String) at C:\Users\RTX2080\.julia\packages\RDatasets\1Ih8s\src\dataset.jl:26
 [7] top-level scope at In[89]:2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions