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

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

Open
dasJ opened this issue Nov 24, 2023 · 0 comments
Open

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

dasJ opened this issue Nov 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@dasJ
Copy link
Member

dasJ commented Nov 24, 2023

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
@dasJ dasJ added the bug Something isn't working label Nov 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant