redhat-developer / redhat-developer/yaml-language-server

BigInt keys false reported as duplicate in map objects

Open
#1,145 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.