nix-community / emacs2nix

Automatically generate Nix expressions for Emacs packages
GNU General Public License v3.0
29 stars 17 forks source link

Parse exception: not enough input #45

Closed ttuegel closed 6 years ago

ttuegel commented 6 years ago

@tobiasBora reports:

Is it for this reason that I can't use emacs2nix to update melpa packages? I get different errors depending on how I run it:

[me@nixos:/tmp/melpa/emacs2nix]$ export MELPA=/tmp/melpa/melpa/
[me@nixos:/tmp/melpa/emacs2nix]$ ./melpa-packages.sh \
>   --melpa $MELPA \
>   -o $NIXPKGS/pkgs/applications/editors/emacs-modes/melpa-generated.nix
melpa2nix: Parse exception: not enough input

Or:

[me@nixos:/tmp/melpa/emacs2nix]$ nix-shell shell.nix 
[nix-shell:/tmp/melpa/emacs2nix]$ export MELPA=/tmp/melpa/melpa/
[nix-shell:/tmp/melpa/emacs2nix]$ sudo ./melpa-packages.sh --melpa $MELPA -o $NIXPKGS/pkgs/applications/editors/emacs-modes/melpa-generated.nix
[sudo] password for me: 
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
error: current Nix store schema is version 10, but I only support 7
tobiasBora commented 6 years ago

Thanks you for the move !

ttuegel commented 6 years ago

The error is due to melpa/melpa#5733. Changes in branch develop produce a more helpful error message, so I merged develop into master.