Skip to content

[BUG] nixd: Failed to decode attrset/optionComplete #2604

Open
@UnReversed

Description

@UnReversed
Field Description
Plugin none
Nixpkgs unstable
Home Manager unstable
  • I have read the FAQ and my bug is not listed there.

Description

when starting typing programs.nixvim. nixd started throwing errors instead autosuggesting

E[01:38:24.740] 290347: option worker reported: -32001: attrname nixvim not found in attrset
I[01:38:24.740] 290347: --> call attrset/optionComplete(51)
I[01:38:24.742] 290347: <-- reply(51)
E[01:38:24.742] 290347: Failed to decode attrset/optionComplete reply: unresolvable URI at (root)[4].Description.Declarations[0].uri
E[01:38:24.742] 290347: option worker reported: -32602: failed to decode attrset/optionComplete reply: unresolvable URI at (root)[4].Description.Declarations[0].uri
I[01:38:24.742] 290347: --> call attrset/optionComplete(50)
I[01:38:24.743] 290347: <-- reply(50)
E[01:38:24.743] 290347: option worker reported: -32001: attrname programs not found in attrset

checking it out more with nix repl ( (outputs.nixosConfigurations.reno.options.programs.nixvim.type.getSubOptions []) ) i thinks it breaks down with printInitPackage attribute (? still new to nix) because trying with multitude of word combinations i pinpoint this to attributes starting with p and rest of them (package,path,performance and plugins) in the end were autosuggested

there is still some chance that i setup nixd <-> nixvim badly (based on this issue)

Minimal, Reproducible Example (MRE)

my repo with MRE branch nixvim added as nixos module

programs.nixvim = {
     enable = true;
     p <- at this stage nixd throws error
}

EDIT affected branch

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