Skip to content

[BUG] neo-tree fails to open log file when checking build.tests #3951

@0xda157

Description

@0xda157

Plugin

neo-tree

Nixpkgs Release

unstable

Home Manager Release

None

I have read the FAQ

  • I have read the FAQ and my bug is not listed there.

Description

running nix flake check on the below flake with neo-tree enabled results in

ERROR: [Neo-tree WARN] Could not open log file: /build/.local/share/nvim/neo-tree.nvim.log /build/.local/share/nvim/neo-tree.nvim.log: No such file or directory

Minimal, Reproducible Example (MRE)

{
  inputs = {
    nixpkgs.follows = "nixvim/nixpkgs";

    nixvim.url = "github:nix-community/nixvim";
  };

  outputs =
    {
      self,
      nixpkgs,
      nixvim,
    }:
    let
      inherit (nixpkgs) lib;
      forEachPkgs = f: lib.genAttrs lib.systems.flakeExposed (system: f nixpkgs.legacyPackages.${system});
    in
    {
      checks = forEachPkgs (pkgs: {
        default =
          (nixvim.lib.evalNixvim {
            inherit (pkgs) system;
            modules = lib.singleton {
              plugins.neo-tree.enable = true;
            };
          }).config.build.test;
      });
    };
}

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