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

Latest Parsers.jl + InlineStrings.jl breaks CSV.jl #1033

Closed
nickrobinson251 opened this issue Oct 13, 2022 · 0 comments · Fixed by JuliaStrings/InlineStrings.jl#50
Closed

Comments

@nickrobinson251
Copy link
Collaborator

InlineStrings v1.2.1
Parsers v2.4.2

Seen at https://github.com/JuliaData/Parsers.jl/actions/runs/3241391930/jobs/5313266749#step:6:262

ERROR: LoadError: MethodError: Cannot `convert` an object of type 
  Parsers.Result{InlineStrings.String7} to an object of type 
  Parsers.Result{Any}
Closest candidates are:
  convert(::Type{T}, !Matched::T) where T at Base.jl:61
Stacktrace:
  [1] _parseany(T::Type, buf::Vector{UInt8}, pos::Int64, len::Int64, opts::Parsers.Options)
    @ CSV ~/work/Parsers.jl/Parsers.jl/downstream/src/utils.jl:480
  [2] parsevalue!
    @ ~/work/Parsers.jl/Parsers.jl/downstream/src/file.jl:815 [inlined]
  [3] parserow(startpos::Int64, row::Int64, numwarnings::Base.RefValue{Int64}, ctx::CSV.Context, buf::Vector{UInt8}, pos::Int64, len::Int64, rowsguess::Int64, rowoffset::Int64, columns::Vector{CSV.Column}, #unused#::Type{Tuple{}})
    @ CSV ~/work/Parsers.jl/Parsers.jl/downstream/src/file.jl:618
  [4] promotetostring!(ctx::CSV.Context, buf::Vector{UInt8}, pos::Int64, len::Int64, rowsguess::Int64, rowoffset::Int64, columns::Vector{CSV.Column}, #unused#::Type{Tuple{}}, column_to_promote::Int64, numwarnings::Base.RefValue{Int64}, limit::Int64, stringtype::Type)
    @ CSV ~/work/Parsers.jl/Parsers.jl/downstream/src/file.jl:886
  [5] parserow
    @ ~/work/Parsers.jl/Parsers.jl/downstream/src/file.jl:660 [inlined]
  [6] parsefilechunk!(ctx::CSV.Context, pos::Int64, len::Int64, rowsguess::Int64, rowoffset::Int64, columns::Vector{CSV.Column}, #unused#::Type{Tuple{}})
    @ CSV ~/work/Parsers.jl/Parsers.jl/downstream/src/file.jl:551
  [7] CSV.File(ctx::CSV.Context, chunking::Bool)
    @ CSV ~/work/Parsers.jl/Parsers.jl/downstream/src/file.jl:291
  [8] File
    @ ~/work/Parsers.jl/Parsers.jl/downstream/src/file.jl:226 [inlined]
  [9] #File#28
    @ ~/work/Parsers.jl/Parsers.jl/downstream/src/file.jl:222 [inlined]
 [10] File
    @ ~/work/Parsers.jl/Parsers.jl/downstream/src/file.jl:162 [inlined]
 [11] macro expansion
    @ ~/work/Parsers.jl/Parsers.jl/downstream/src/workload.jl:13 [inlined]
 [12] top-level scope
    @ ~/.julia/packages/SnoopPrecompile/UWvXF/src/SnoopPrecompile.jl:51
 [13] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [14] include(x::String)
    @ CSV ~/work/Parsers.jl/Parsers.jl/downstream/src/CSV.jl:24
 [15] top-level scope
    @ ~/work/Parsers.jl/Parsers.jl/downstream/src/CSV.jl:118
 [16] include
    @ ./Base.jl:419 [inlined]
 [17] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [18] top-level scope
    @ stdin:1
in expression starting at /home/runner/work/Parsers.jl/Parsers.jl/downstream/src/workload.jl:8
in expression starting at /home/runner/work/Parsers.jl/Parsers.jl/downstream/src/CSV.jl:1

Related to JuliaData/Parsers.jl#136 + JuliaStrings/InlineStrings.jl#49

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