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

unsupported or misplaced expression error #359

Closed
tpapp opened this issue Nov 30, 2018 · 4 comments
Closed

unsupported or misplaced expression error #359

tpapp opened this issue Nov 30, 2018 · 4 comments

Comments

@tpapp
Copy link

tpapp commented Nov 30, 2018

I get this on latest Julia master, both with the released and the master CSV.

julia> VERSION
v"1.1.0-DEV.760"

julia> using CSV

shell> cat /tmp/foo.csv
"foo","bar"
1957,13

julia> CSV.File("/tmp/foo.csv")
ERROR: unsupported or misplaced expression error
Stacktrace:
 [1] top-level scope
 [2] match! at /home/tamas/.julia/packages/Parsers/s5mSF/src/tries.jl:137 [inlined]
 [3] #defaultparser#32 at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:116 [inlined]
 [4] defaultparser at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:49 [inlined]
 [5] #parse!#31 at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:41 [inlined]
 [6] parse! at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:41 [inlined]
 [7] #parse!#30 at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:39 [inlined]
 [8] parse! at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:39 [inlined]
 [9] #parse!#29 at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:37 [inlined]
 [10] parse! at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:37 [inlined]
 [11] #parse!#28 at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:35 [inlined]
 [12] parse! at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:35 [inlined]
 [13] #parse!#27 at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:33 [inlined]
 [14] parse! at /home/tamas/.julia/packages/Parsers/s5mSF/src/strings.jl:33 [inlined]
 [15] readsplitline(::Parsers.Delimited{false,true,Parsers.Quoted{Parsers.Strip{Parsers.Sentinel{typeof(Parsers.defaultparser),Parsers.Trie{0x00,false,missing,2,Tuple{}}}}},Parsers.Trie{0x00,false,missing,8,Tuple{Parsers.Trie{0x2c,true,missing,8,Tuple{}}}}}, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Nothing) at /home/tamas/.julia/packages/CSV/8LEOS/src/filedetection.jl:194
 [16] datalayout(::Int64, ::Parsers.Delimited{false,true,Parsers.Quoted{Parsers.Strip{Parsers.Sentinel{typeof(Parsers.defaultparser),Parsers.Trie{0x00,false,missing,2,Tuple{}}}}},Parsers.Trie{0x00,false,missing,8,Tuple{Parsers.Trie{0x2c,true,missing,8,Tuple{}}}}}, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Int64, ::Bool, ::Nothing) at /home/tamas/.julia/packages/CSV/8LEOS/src/filedetection.jl:124
 [17] #File#1(::Int64, ::Bool, ::Int64, ::Nothing, ::Int64, ::Nothing, ::Bool, ::Nothing, ::Bool, ::Array{String,1}, ::String, ::String, ::Bool, ::Char, ::Nothing, ::Nothing, ::Char, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Nothing, ::Dict{Type,Type}, ::Symbol, ::Bool, ::Bool, ::Bool, ::Bool, ::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Type, ::String) at /home/tamas/.julia/packages/CSV/8LEOS/src/CSV.jl:163
 [18] CSV.File(::String) at /home/tamas/.julia/packages/CSV/8LEOS/src/CSV.jl:135
 [19] top-level scope at none:0
@tpapp
Copy link
Author

tpapp commented Nov 30, 2018

On Julia 1.0.2, it works fine.

@tpapp
Copy link
Author

tpapp commented Dec 2, 2018

I am still getting the error on latest master, can anyone please confirm that it is not a quirk peculiar to my setup, but a bug in CSV.jl?

@quinnj
Copy link
Member

quinnj commented Dec 4, 2018

I don't see the same issue on master. It seems like you might have your Parsers.jl package in a bad state. You might try deleting it/removing it and trying to re-install it.

@tpapp
Copy link
Author

tpapp commented Dec 4, 2018

Thanks, did that, didn't help, reported at Parsers.jl

@quinnj quinnj closed this as completed Feb 5, 2019
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

No branches or pull requests

2 participants