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

Option request : logging of latexindent as an option #398

Closed
MrYann opened this issue Jan 29, 2018 · 8 comments
Closed

Option request : logging of latexindent as an option #398

MrYann opened this issue Jan 29, 2018 · 8 comments
Labels
external issue Issue with something else than LaTeX-Wokshop

Comments

@MrYann
Copy link
Contributor

MrYann commented Jan 29, 2018

It seems that latex workshop triggers latexindent upon save, which is nice. Latexindent is available as a latex package. However, it requires the Log4Perl package, which in turn requires even more Perl dependencies.
Could there be an option to disable that logging ? (at the "load log4perl" level of course, otherwise there is not real point)

As a side note, I went through the steps to install all the dependencies and I am now stuck with

Cannot write to 'indent.log': Permission denied

The logging is done in a restricted folder. Since launching latexindent with sudo is not an option, could there be a way to have the logging in the latex-workshop.latex.outputDir directory ?

@zoehneto
Copy link
Contributor

zoehneto commented Jan 29, 2018

The logging issue has been resolved with PR #381, it will be fixed as soon as @James-Yu releases the next version.

@zoehneto
Copy link
Contributor

Since we don't want to start modifying perl packages the next release will also add an option to configure the latexindent package to use. You can then download the packaged version of latexindent from ctan which includes all dependencies, configure it as the one to use (latex-workshop.latexindent.path in vs code settings) and won't have to deal with perl packages (see #376 for details).

@MrYann
Copy link
Contributor Author

MrYann commented Jan 29, 2018

Excellent !

@James-Yu
Copy link
Owner

Sorry for the miss. New version incoming.

@michaelaye
Copy link

i have Latex Workshop 5.6.1 and have exactly this error? Which version should I get to have this fixed?

@yzy1996
Copy link

yzy1996 commented Oct 24, 2018

I think you can see this : #376 (comment)

@MrYann
Copy link
Contributor Author

MrYann commented Apr 7, 2020

The issue is back !
I do not know what I updated that caused the dependency to be required again (I never installed log4perl, and it was fine until now). And Issue 376 is not the solution : latexindent is found. The problem is log4perl.

@tamuratak tamuratak added the external issue Issue with something else than LaTeX-Wokshop label Apr 8, 2020
@tamuratak
Copy link
Contributor

tamuratak commented Apr 8, 2020

We can do nothing on our side.

See #376 (comment)

Repository owner locked as resolved and limited conversation to collaborators Apr 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external issue Issue with something else than LaTeX-Wokshop
Projects
None yet
Development

No branches or pull requests

6 participants