Better differentiation between list and scalar properties
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
Research direction
Start by tracing the public property-reading API and the PLY parser path that produces the coercion error. Determine how callers can distinguish list and scalar properties without trial reads, and verify that mismatched reads produce clearer diagnostics; the issue is done when both behaviors are exposed consistently.
Written by the indexing model from the issue text.
Description
Perhaps I'm missing something obvious, but there doesn't appear to be anything in the API that can be used to easily see if a property is a list or scalar property. The best I can figure is to try reading a property as a scalar, then if it fails try to read it as a list and see if that works. Without parsing the error message, then, I have to try reading an int32, a uint32, and a double before trying the same as lists.
(Trying to read a list property as a scalar also results in an error message like
PLY parser: property values cannot be coerced to requested type double. Has type double
which should probably be changed to something more sensible.)
- Dominant language
- C++
- Stars
- 406
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nmwsharp/happly
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 3/5 1-2 days Newbie friendliness 56/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
games-on-whales/wolf#509 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100