Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latexindent broken due to missing perl modules #35537

Closed
logarytm opened this issue Feb 25, 2018 · 4 comments · Fixed by #59537
Closed

latexindent broken due to missing perl modules #35537

logarytm opened this issue Feb 25, 2018 · 4 comments · Fixed by #59537
Labels
6.topic: TeX Issues regarding texlive and TeX in general

Comments

@logarytm
Copy link

Issue description

latexindent is missing some Perl modules:

$ latexindent                              
Can't locate YAML/Tiny.pm in @INC (you may need to install the YAML::Tiny module) (@INC contains: /nix/store/41sphgx0ha3mgaspgjzrx0ah9ak42h5f-latexindent-3.3/scripts/latexindent /nix/store/lqh5mddy3kcnscgg1z90sd9m59gl91ij-texlive-combined-full-2017/share/texmf/scripts/texlive /etc/profiles/per-user/og/lib/perl5/site_perl /home/og/.nix-profile/lib/perl5/site_perl /nix/var/nix/profiles/default/lib/perl5/site_perl /run/current-system/sw/lib/perl5/site_perl/5.24.3/x86_64-linux-thread-multi /run/current-system/sw/lib/perl5/site_perl/5.24.3 /run/current-system/sw/lib/perl5/site_perl /nix/store/s029gmjpgvm776wfb56naqny9qja9339-perl-5.24.3/lib/perl5/site_perl/5.24.3/x86_64-linux-thread-multi /nix/store/s029gmjpgvm776wfb56naqny9qja9339-perl-5.24.3/lib/perl5/site_perl/5.24.3 /nix/store/s029gmjpgvm776wfb56naqny9qja9339-perl-5.24.3/lib/perl5/5.24.3/x86_64-linux-thread-multi /nix/store/s029gmjpgvm776wfb56naqny9qja9339-perl-5.24.3/lib/perl5/5.24.3 .) at /nix/store/41sphgx0ha3mgaspgjzrx0ah9ak42h5f-latexindent-3.3/scripts/latexindent/LatexIndent/GetYamlSettings.pm line 20.
BEGIN failed--compilation aborted at /nix/store/41sphgx0ha3mgaspgjzrx0ah9ak42h5f-latexindent-3.3/scripts/latexindent/LatexIndent/GetYamlSettings.pm line 20.
Compilation failed in require at /nix/store/41sphgx0ha3mgaspgjzrx0ah9ak42h5f-latexindent-3.3/scripts/latexindent/LatexIndent/LogFile.pm line 19.
BEGIN failed--compilation aborted at /nix/store/41sphgx0ha3mgaspgjzrx0ah9ak42h5f-latexindent-3.3/scripts/latexindent/LatexIndent/LogFile.pm line 19.
Compilation failed in require at /nix/store/41sphgx0ha3mgaspgjzrx0ah9ak42h5f-latexindent-3.3/scripts/latexindent/LatexIndent/Document.pm line 25.
BEGIN failed--compilation aborted at /nix/store/41sphgx0ha3mgaspgjzrx0ah9ak42h5f-latexindent-3.3/scripts/latexindent/LatexIndent/Document.pm line 25.
Compilation failed in require at /nix/store/41sphgx0ha3mgaspgjzrx0ah9ak42h5f-latexindent-3.3/scripts/latexindent/latexindent.pl line 27.
BEGIN failed--compilation aborted at /nix/store/41sphgx0ha3mgaspgjzrx0ah9ak42h5f-latexindent-3.3/scripts/latexindent/latexindent.pl line 27.

Steps to reproduce

environment.systemPackages = [ pkgs.texlive.combined.scheme-full ];

Technical details

$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 4.9.81, NixOS, 18.03pre129076.831ef4756e3 (Impala)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 1.11.16`
 - channels(og): `"nixos-18.03pre129076.831ef4756e3"`
 - channels(root): `"nixos-18.03pre129076.831ef4756e3"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs`
@steveej
Copy link
Contributor

steveej commented Apr 19, 2018

Installing the following perl dependencies to my user environment makes latexindent work:

      perlPackages.YAMLTiny
      perlPackages.FileHomeDir
      perlPackages.UnicodeLineBreak

@smaret
Copy link
Member

smaret commented May 3, 2019

I'm still getting this error on Darwin:

% nix-shell -p "texlive.combine { inherit (texlive) scheme-minimal latexindent; }"  --pure --run latexindent
unpacking 'https://github.com/NixOS/nixpkgs/archive/master.tar.gz'...
Can't locate Log/Log4perl.pm in @INC (you may need to install the Log::Log4perl module) (@INC contains: /nix/store/1vlg5aawkvj8pzczsifmgkfagplcgqr7-texlive-latexindent-3.5.3/scripts/latexindent /nix/store/abivgmli64w3fqfa2g7zgis5z8py0zic-texlive-combined-2018/share/texmf/scripts/texlive /nix/store/vnh2i0pampkxk3bffgiimx923n7i57gy-perl-5.28.2/lib/perl5/site_perl/5.28.2/darwin-2level /nix/store/vnh2i0pampkxk3bffgiimx923n7i57gy-perl-5.28.2/lib/perl5/site_perl/5.28.2 /nix/store/vnh2i0pampkxk3bffgiimx923n7i57gy-perl-5.28.2/lib/perl5/5.28.2/darwin-2level /nix/store/vnh2i0pampkxk3bffgiimx923n7i57gy-perl-5.28.2/lib/perl5/5.28.2) at /nix/store/1vlg5aawkvj8pzczsifmgkfagplcgqr7-texlive-latexindent-3.5.3/scripts/latexindent/LatexIndent/LogFile.pm line 22.
BEGIN failed--compilation aborted at /nix/store/1vlg5aawkvj8pzczsifmgkfagplcgqr7-texlive-latexindent-3.5.3/scripts/latexindent/LatexIndent/LogFile.pm line 22.
Compilation failed in require at /nix/store/1vlg5aawkvj8pzczsifmgkfagplcgqr7-texlive-latexindent-3.5.3/scripts/latexindent/LatexIndent/Document.pm line 25.
BEGIN failed--compilation aborted at /nix/store/1vlg5aawkvj8pzczsifmgkfagplcgqr7-texlive-latexindent-3.5.3/scripts/latexindent/LatexIndent/Document.pm line 25.
Compilation failed in require at /nix/store/1vlg5aawkvj8pzczsifmgkfagplcgqr7-texlive-latexindent-3.5.3/scripts/latexindent/latexindent.pl line 27.
BEGIN failed--compilation aborted at /nix/store/1vlg5aawkvj8pzczsifmgkfagplcgqr7-texlive-latexindent-3.5.3/scripts/latexindent/latexindent.pl line 27.
% nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-darwin"`
 - host os: `Darwin 18.5.0, macOS 10.14.4`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.2.2`
 - channels(smaret): `"nixpkgs-19.03pre170546.0f43790d2ce"`
 - nixpkgs: `/nix/store/srwm63r67255vhnwpy0b1d9i9ba25q52-master.tar.gz`

@veprbl
Copy link
Member

veprbl commented May 3, 2019

@smaret Thank you for reporting this! The issue is still present on Darwin.

@veprbl veprbl reopened this May 3, 2019
@veprbl
Copy link
Member

veprbl commented May 3, 2019

Fixed in b6d0bdf
Unfortunately we run into a darwin issue with buildPerlModule #35353

@veprbl veprbl closed this as completed May 3, 2019
@veprbl veprbl removed their assignment Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: TeX Issues regarding texlive and TeX in general
Projects
None yet
4 participants