cmhughes / latexindent.pl

Perl script to add indentation (leading horizontal space) to LaTeX files. It can modify line breaks before, during and after code blocks; it can perform text wrapping and paragraph line break removal. It can also perform string-based and regex-based substitutions/replacements. The script is customisable through its YAML interface.
GNU General Public License v3.0
864 stars 84 forks source link

[windows] conda installation fail due to perl version #539

Closed sjiang95 closed 3 months ago

sjiang95 commented 4 months ago

Cannot install on windows via conda

actual/given output

> conda install latexindent.pl -c conda-forge
 - conda-forge
 - defaults
Platform: win-64
Collecting package metadata (repodata.json): done
Solving environment: failed
LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides perl >=5.32.1,<6.0a0 *_perl5 needed by latexindent.pl-3.13.2-pl5321hd8ed1ab_0

Could not solve for environment specs
The following package could not be installed
└─ latexindent.pl is not installable because it requires
   └─ perl >=5.32.1,<6.0a0 *_perl5, which does not exist (perhaps a missing channel).

However,

> conda list perl
# packages in environment at D:\ProgramData\miniconda3\envs\latex:
#
# Name                    Version                   Build  Channel
perl                      5.32.1.1        0_haa95532_strawberry

desired or expected output

Successful installation.

anything else

I have searched and found the same issue is remained unsolved: #446

Should the dependency of latexindent.pl be modified to something like perl >=5.32.1,<6.0a0 *_perl5 *_strawberry? But don't know how.

cmhughes commented 4 months ago

@tdegeus can you assist?

cmhughes commented 3 months ago

I'll look into this. In the mean time, there's a standalone executable latexindent.exe

cmhughes commented 3 months ago

Is this more suited to https://github.com/conda-forge/latexindent.pl-feedstock

sjiang95 commented 3 months ago

Hello @cmhughes , could you please transfer this issue to https://github.com/conda-forge/latexindent.pl-feedstock ?

cmhughes commented 3 months ago

I don't maintain that repository.

Can you copy and paste it there?

sjiang95 commented 3 months ago

Ok. Thanks anyway.