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 from match! #14

Closed
tpapp opened this issue Dec 4, 2018 · 3 comments
Closed

unsupported or misplaced expression error from match! #14

tpapp opened this issue Dec 4, 2018 · 3 comments

Comments

@tpapp
Copy link

tpapp commented Dec 4, 2018

I am investigating this issue JuliaData/CSV.jl#359, which I think comes from Parsers.jl. When running tests on both the released version and master of Parsers.jl on Julia master (currently v"1.1.0-DEV.794"), I get many errors of the form

Misc: Error During Test at /home/tamas/.julia/dev/Parsers/test/runtests.jl:596
  Got exception outside of a @test
  unsupported or misplaced expression error
  Stacktrace:
   [1] top-level scope
   [2] match! at /home/tamas/.julia/dev/Parsers/src/tries.jl:137 [inlined]
   [3] #parse!#25 at /home/tamas/.julia/dev/Parsers/src/Parsers.jl:588 [inlined]
   [4] parse! at /home/tamas/.julia/dev/Parsers/src/Parsers.jl:578 [inlined]
   [5] #parse!#23 at /home/tamas/.julia/dev/Parsers/src/Parsers.jl:508 [inlined]
   [6] parse! at /home/tamas/.julia/dev/Parsers/src/Parsers.jl:483 [inlined]
   [7] #parse!#22 at /home/tamas/.julia/dev/Parsers/src/Parsers.jl:384 [inlined]
   [8] parse! at /home/tamas/.julia/dev/Parsers/src/Parsers.jl:384 [inlined]
   [9] #parse#11 at /home/tamas/.julia/dev/Parsers/src/Parsers.jl:305 [inlined]
   [10] parse(::Parsers.Delimited{false,false,Parsers.Quoted{Parsers.Sentinel{typeof(Parsers.defaultparser),Parsers.Trie{0x00,false,missing,2,Tuple{Parsers.Trie{0x6e,false,missing,2,Tuple{Parsers.Trie{0x75,false,missing,2,Tuple{Parsers.Trie{0x6c,false,missing,2,Tuple{Parsers.Trie{0x6c,true,missing,2,Tuple{}}}}}}}}}}}},Parsers.Trie{0x00,false,missing,8,Tuple{Parsers.Trie{0x2c,true,missing,8,Tuple{}}}}}, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Type{Int64}) at /home/tamas/.julia/dev/Parsers/src/Parsers.jl:305
   [11] top-level scope at /home/tamas/.julia/dev/Parsers/test/runtests.jl:634
   [12] top-level scope at /home/tamas/src/julia-git/usr/share/julia/stdlib/v1.1/Test/src/Test.jl:1083
   [13] top-level scope at /home/tamas/.julia/dev/Parsers/test/runtests.jl:598
   [14] top-level scope at /home/tamas/src/julia-git/usr/share/julia/stdlib/v1.1/Test/src/Test.jl:1083
   [15] top-level scope at /home/tamas/.julia/dev/Parsers/test/runtests.jl:7
   [16] include at ./boot.jl:317 [inlined]
   [17] include_relative(::Module, ::String) at ./loading.jl:1038
   [18] include(::Module, ::String) at ./sysimg.jl:29
   [19] include(::String) at ./client.jl:403
   [20] top-level scope at none:0
   [21] eval(::Module, ::Any) at ./boot.jl:319
   [22] exec_options(::Base.JLOptions) at ./client.jl:243
   [23] _start() at ./client.jl:436

Julia 1.0.2 works fine. Manifest.toml below.

@tpapp
Copy link
Author

tpapp commented Dec 4, 2018

[[Base64]]
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

[[Dates]]
deps = ["Printf"]
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"

[[Distributed]]
deps = ["LinearAlgebra", "Random", "Serialization", "Sockets"]
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"

[[InteractiveUtils]]
deps = ["Markdown"]
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"

[[Libdl]]
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"

[[LinearAlgebra]]
deps = ["Libdl"]
uuid = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[[Logging]]
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"

[[Markdown]]
deps = ["Base64"]
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"

[[Missings]]
deps = ["Dates", "InteractiveUtils", "SparseArrays", "Test"]
git-tree-sha1 = "adc26d2ee85a49c413464110d922cf21efc9d233"
uuid = "e1d29d7a-bbdc-5cf2-9ac0-f12de2c33e28"
version = "0.3.1"

[[Printf]]
deps = ["Unicode"]
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"

[[Random]]
deps = ["Serialization"]
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"

[[Serialization]]
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"

[[Sockets]]
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"

[[SparseArrays]]
deps = ["LinearAlgebra", "Random"]
uuid = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

[[Test]]
deps = ["Distributed", "InteractiveUtils", "Logging", "Random"]
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[[Unicode]]
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"

[[WeakRefStrings]]
deps = ["Missings", "Random", "Test"]
git-tree-sha1 = "1087e8be380f2c8b96434b02bb1150fc1c511135"
uuid = "ea10d353-3f73-51f8-a26c-33c1cb351aa5"
version = "0.5.3"

@tpapp
Copy link
Author

tpapp commented Dec 6, 2018

I can also replicate this in a clean environment, eg

mkdir /tmp/clean; JULIA_DEPOT_PATH=/tmp/clean julia --project=/tmp/clean

then

pkg> add Parsers
pkg> test Parsers

also on latest master 1.1.0-DEV.821.

@quinnj quinnj closed this as completed in d236f02 Dec 6, 2018
@quinnj
Copy link
Member

quinnj commented Dec 6, 2018

Should be fixed by d236f02

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