redhat-developer / redhat-developer/yaml-language-server
BigInt keys false reported as duplicate in map objects
Open
Nobody has claimed this yet.
bug
upstream
- Dominant language
- TypeScript
- Stars
- 1.5k
- Forks
- 352
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 11
Description
Describe the bug
If a map contains several keys represented as large integers, false-positive key duplication error is reported
Expected Behavior
No error
Current Behavior
Key duplication error
Steps to Reproduce
The following yaml should be valid, but validation failed
123456789012345671: 1
123456789012345672: 2
Environment
- Windows
- Mac
- Linux
- other (please specify)
Tested on Mac, likely general issue
Contributor guide
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.
Research direction
Start by reproducing validation with the two large-integer YAML keys shown in the issue, then trace the duplicate-key validation path in the language server. Done means those distinct keys validate without a duplicate-key error while genuine duplicate keys remain detected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, yaml
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100