Closed shipengcheng1230 closed 3 years ago
same here
inside reconstruct_type
method it finds index and then takes substring
idx = first(something(findlast("_", membername), 0:-1))
fieldname = fieldnames[i] = Symbol(membername[1:idx-1])
in calculation idx = 3
and we end up with
ulia> "μ_"[1:2]
ERROR: StringIndexError("μ_", 2)
julia> "ab"[1:2]
"ab"
julia> "μ_"[1]
'μ': Unicode U+03bc (category Ll: Letter, lowercase)
julia> "μ_"[2]
ERROR: StringIndexError("μ_", 2)
Hello, consider the following example:
Then I restart the julia terminal,
I am running:
It would be fine if the fieldname is something like "a", "b", etc. I think that may be related to this. Could be nice if this is improved. Thanks!