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

StructTypes.x is not defined #92

Open
lgeissbauer-btig opened this issue Jan 20, 2023 · 3 comments · May be fixed by #99
Open

StructTypes.x is not defined #92

lgeissbauer-btig opened this issue Jan 20, 2023 · 3 comments · May be fixed by #99

Comments

@lgeissbauer-btig
Copy link

@kshyatt

│┌ @ C:\.julia\packages\JSON3\CpNms\src\structs.jl:32 JSON3.:(var"#read#16")(false, pairs(NamedTuple()::NamedTuple{(), Tuple{}})::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, #self#::typeof(JSON3.read), str::String, _3::Type{TrinityApi._PipeCommunication.Data})
││┌ @ C:\.julia\packages\JSON3\CpNms\src\structs.jl:40  = JSON3.read(JSON3.StructType(T::Type{TrinityApi._PipeCommunication.Data})::StructTypes.UnorderedStruct, buf::Base.CodeUnits{UInt8, String}, pos::Int64, len::Int64, b::UInt8, T::Type{TrinityApi._PipeCommunication.Data})
│││┌ @ C:\.julia\packages\JSON3\CpNms\src\structs.jl:566 JSON3.:(var"#read#50")(pairs(NamedTuple()::NamedTuple{(), Tuple{}})::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, #self#::typeof(JSON3.read), _2::StructTypes.UnorderedStruct, buf::Base.CodeUnits{UInt8, String}, pos::Int64, len::Int64, b::UInt8, _7::Type{TrinityApi._PipeCommunication.Data})
││││┌ @ C:\.julia\packages\JSON3\CpNms\src\structs.jl:617 (JSON3.StructTypes).applyfield::typeof(StructTypes.applyfield)(c, T::Type{TrinityApi._PipeCommunication.Data}, key::Symbol)
│││││┌ @ C:\.julia\packages\StructTypes\AK4aM\src\StructTypes.jl:891 StructTypes.x
││││││ `StructTypes.x` is not defined
│││││└──────────────────────────────────────────────────────────────
@kshyatt
Copy link
Contributor

kshyatt commented Jan 22, 2023

Ah thanks for calling this out. I'll take a look.

@kshyatt
Copy link
Contributor

kshyatt commented Jan 22, 2023

What did you do to trigger this? Can you show a larger example, ideally including the commits/tags of JSON3 and StructTypes?

@lgeissbauer-btig
Copy link
Author

I used JET.jl to analyse my code. I just use JSON3 and StructTypes in there

sunoru added a commit to sunoru/StructTypes.jl that referenced this issue Sep 14, 2023
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.

2 participants