dramforever/nix-dram

ugly zsh completion issues

Closed this issue · 2 comments

nrdxp commented

I wanted to try this out as I'm getting really tired of forgetting to escape the # properly in zsh. It's mostly working out nicely, but there is a strange issue with autocompletion in zsh:

  nix shell magnix: src/libutil/args.cc:65: void nix::Args::parseCmdline(const Strings&): Assertion `n > 0 && n <= cmdline.size()' failed.
blnix shell mag
magnetophonDSP  magic-wormhole  magic-vlsi  magnetico  magma  mage  --

As you can see, completion actually works out at the bottom there, but that ugly assertion failure is cluttering up the screen. For context, I am using the overlay from the flake, and applying it to the latest nixUnstable from nixpkgs-unstable, as of yesterday.

Strangely enough, this isn't an issue with every subcommand, as nix build doesn't have this issue, but so far I've noticed it with both nix run and nix shell.

nrdxp commented

Just confirmed that this is not an issue with the package exported by the flake, but only when used as an overlay with a newer nix source, so there was a breaking change somewhere since the last update.

nrdxp commented

Oh nevermind, after tracing this further it turned out to be a conflict with the any-nix-shell plugin I setup a long time ago. Kinda redundant with direnv so I removed it and it solved the issue completely. Sorry about the false report.