Hi,
I am trying to use YAML.jl to load an YAML file. It gives me a big error (included below). It appears (may be I am wrong about this) that it cannot understand one of fields that has value like !!set {}
. Is it possible to ignore that field when loading YAML, or specify only the fields I want? Is there another workaround?
Thank you.
Some example sections from the file:
ALLCorALLD:
inspects_source: false
long_run_time: false
makes_use_of: !!set {}
manipulates_source: false
manipulates_state: false
memory_depth: 1
stochastic: true
AON2:
inspects_source: false
long_run_time: false
makes_use_of: !!set {}
manipulates_source: false
manipulates_state: false
memory_depth: 2
stochastic: false
The error
ERROR: set type not yet implemented at line 4, column 16
Stacktrace:
[1] construct_yaml_set(constructor::YAML.Constructor, node::YAML.MappingNode)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:374
[2] construct_object(constructor::YAML.Constructor, node::YAML.MappingNode)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:102
[3] construct_mapping(dicttype::Type{Dict{Any, Any}}, constructor::YAML.Constructor, node::YAML.MappingNode)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:182
[4] (::YAML.var"#3#4"{DataType})(constructor::YAML.Constructor, node::YAML.MappingNode)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:207
[5] construct_object(constructor::YAML.Constructor, node::YAML.MappingNode)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:102
[6] construct_mapping(dicttype::Type{Dict{Any, Any}}, constructor::YAML.Constructor, node::YAML.MappingNode)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:182
[7] (::YAML.var"#3#4"{DataType})(constructor::YAML.Constructor, node::YAML.MappingNode)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:207
[8] construct_object(constructor::YAML.Constructor, node::YAML.MappingNode)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:102
[9] construct_document(constructor::YAML.Constructor, node::YAML.MappingNode)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/constructor.jl:53
[10] load(ts::YAML.TokenStream, constructor::YAML.Constructor)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:38
[11] load(ts::YAML.TokenStream, more_constructors::Nothing, multi_constructors::Dict{Any, Any}; dicttype::Type{Dict{Any, Any}}, constructorType::typeof(YAML.SafeConstructor))
@ YAML ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:44
[12] load
@ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:44 [inlined]
[13] #load#10
@ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:47 [inlined]
[14] load (repeats 3 times)
@ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:47 [inlined]
[15] #16
@ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:96 [inlined]
[16] open(::YAML.var"#16#17"{Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, Tuple{}}, ::String, ::Vararg{String, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base ./io.jl:330
[17] open
@ ./io.jl:328 [inlined]
[18] #load_file#15
@ ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:94 [inlined]
[19] load_file(::String)
@ YAML ~/.julia/packages/YAML/IXUQ4/src/YAML.jl:94
[20] top-level scope
@ REPL[5]:1