Git Product home page Git Product logo

Comments (6)

Profpatsch avatar Profpatsch commented on August 19, 2024

Have you also removed the .lorri directory in your project’s root directory?

from lorri.

HaoZeke avatar HaoZeke commented on August 19, 2024

Yup, that did not change the error either unfortunately.

I checked with the debug command in the README as well, the output is the same..

from lorri.

grahamc avatar grahamc commented on August 19, 2024

Can you provide the shell.nix you're using, version of nixpkgs, etc?

from lorri.

HaoZeke avatar HaoZeke commented on August 19, 2024

Sure @grahamc, I have reproduced this error with two shell.nix files, and am using the following nix config:
image

The Haskell Project

This had a mostly untouched shell.nix created by cabal2nix:

(import ./. {}).grimoire-shell

The default.nix is:

{ compiler ? "ghc864", pkgs ? import <nixpkgs> {} }:

let

  haskellPackages = pkgs.haskell.packages.${compiler};
  drv = haskellPackages.callCabal2nix "grimoire" ./. {};

in
  {
    grimoire = drv;
    grimoire-shell = haskellPackages.shellFor {
      packages = p: [drv];
      buildInputs = with pkgs; [ cabal-install hlint ];
    };
  }

The Ruby Project

This is a bundix oriented setup, there is no default.nix and the shell.nix is:

{ pkgs ? import <nixpkgs> {} }:
let
    inherit (pkgs) ruby bundlerEnv mkShell bundler;
  env = bundlerEnv {
    name = "grimoire-bundler-env";
    gemfile  = ./Gemfile;
    lockfile = ./Gemfile.lock;
    gemset   = ./gemset.nix;
  };
in mkShell {
  name = "grimoire";
  buildInputs = with pkgs; [
# Not part of nanoc, needed for nokogiri
    zlib
    lzma
    gccStdenv
# Ruby and nanoc
    env
    bundix
    pandoc
  ];
}

from lorri.

Profpatsch avatar Profpatsch commented on August 19, 2024

Can you delete everything in /nix/var/nix/gcroots/per-user/YOUR_USERNAME/? That’s where lorri sets up its roots, maybe one of these is broken.

I mean in general we can’t anticipate every state a user puts their system into, this looks like a very special in-between state that you got because you reinstalled nix and lorri. It probably depends exactly on what you did when reinstalling nix (e.g. whether you removed the whole of /nix in the process or just parts of it).

from lorri.

Profpatsch avatar Profpatsch commented on August 19, 2024

Closing due to inactivity, feel free to ping for further questions.

from lorri.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.