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 package broken - missing dependency YAML::Tiny #1117

Closed
1 task done
ChadBailey opened this issue Jun 23, 2022 · 3 comments
Closed
1 task done

latexindent package broken - missing dependency YAML::Tiny #1117

ChadBailey opened this issue Jun 23, 2022 · 3 comments

Comments

@ChadBailey
Copy link

ChadBailey commented Jun 23, 2022

After I filed a detailed bug report on the child project cmhughes/latexindent.pl#374 it appears to me like the owner of this project may not be the maintainer of this package.

In his words:

I've tried repeatedly to influence change on Miktex, but haven't been successful.

By publishing the name and code of another project you are being a representative for them so you must handle issues with the same care and dignity of that project. If you don't allow them to manage their own package and don't allow them input to your project I would say that is somewhere between rude and completely unethical. I'm not here to point fingers or judge though, just thought it was a point worth making clear.

I've written up a very detailed bug report, I think it may have all you need. If it doesn't, I may attempt re-breaking my installation, but for now I cannot get the logs the HOWTO requests as the issue has been resolved. I am just posting this in good faith hoping that the package will be fixed or removed if it is indeed broken. Broken packages hurt the package index, source project, and user community so it's better to not have at all than it be broken.

@cmhughes
Copy link

Please do let me know if I can do anything to help.
Chris (author of latexindent)

@edocevoli
Copy link
Member

edocevoli commented Jun 24, 2022

You can fix the issue by installing missing Perl dependencies. That said, run the Perl package manager and install YAML::Tiny.

More info: MiKTeX does not come with a Perl interpreter, that is, it relies on the Perl interpreter and infrastructure provided by the system. Seems that you are on Linux, so to install the missing module, run sudo cpan YAML::Tiny. Repeat this for every missing module.

@MiKTeX MiKTeX locked as resolved and limited conversation to collaborators Jun 24, 2022
@MiKTeX MiKTeX unlocked this conversation Jun 24, 2022
@ChadBailey
Copy link
Author

ChadBailey commented Jun 27, 2022

This isn't a support request, it's a bug report. I have already solved my issue and provided detailed instructions on how to resolve. Do with this information what you will, I'm just doing my part by alerting you to the unexpected behavior.

I'm really trying to understand the rationale here, but from my (perhaps wrong) understanding it seems like you are essentially agreeing the package is broken and closing the bug report with no work so I must admit I'm confused. That is, unless you're actually suggesting the expected user flow is for them to see this error and know to install Perl and dependent packages.

I think the root of the issue may be that I didn't understand having Perl dependent packages was a prerequisite for MiKTeX. I would argue this is a reasonable assumption as Perl and dependent packages are not listed on the prerequisites page for MiKTeX.

I am on Windows, albeit using Cygwin. I have already resolved the issue for myself I just wanted to alert you all that the package is broken. When I manually bypassed MiKTeK's copy of latexindex and installed it using the instructions provided by latexindex it worked as expected. This is why I'm calling the package broken, even if installing Perl & YAML::Tiny would ultimately resolve the issue. (I mentioned all of these details in the original bug report)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants