Skip to content
This repository was archived by the owner on Jan 25, 2024. It is now read-only.
This repository was archived by the owner on Jan 25, 2024. It is now read-only.

Detection of duplicate attrset names doesn't work for strings #111

@dasJ

Description

@dasJ

Describe the bug

When using strings as attrset values, the duplicate detection doesn't work

Steps to reproduce

Steps to reproduce the behavior:

  1. Use this file:
    {
      a = "test";
      a = "test";
    }
    
  2. See there are no errors
  3. Use this file:
    {
      a = true;
      a = true;
    }
    
  4. See the attribute a defined more than once error

Expected behavior

Detection should work no matter the type of the value.

Additional context

  • Version of rnix-lsp: unstable-2022-11-27
  • Name and version of the editor you've used: nvim 0.9.4
  • Operating system: NixOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions