[TxMt] Re: sudden latex tidy and latex compiling errors

Robert Milton robert.gomez.milton at gmail.com
Wed Feb 11 22:50:34 UTC 2015


Hi guys,
I did a TeX Live Utility “Update all packages”, as is my habit, opened up TextMate and sat down to work. Everything seems fine (no trouble producing PDF) except that ctrl-shift-h from the LaTeX bundle produces "Failure running “Tidy”” "Tidy: line 11: latexindent: command not found”. No harm done, so far as I can see, but the Tidy command is clearly not working for me. The bundles tab in preferences tells me that my LaTex bundle is 11h old, which would seem to indicate I’m working with the latest release…

As a “normal" (i.e kinda dumb) user, Is there something more I should be doing to care for my LaTeX bundle?

Robert

> On 11 Feb 2015, at 13:01, René Schwaiger <sanssecours at f-m.fm> wrote:
> 
> Hi Allan,
> 
>> On 11 Feb 2015, at 10:56 , Allan Odgaard <mailinglist at textmate.org> wrote:
>> 
>> On 11 Feb 2015, at 15:38, René Schwaiger wrote:
>> 
>>>> Can't locate YAML/Tiny.pm in @INC […]
>>> […] You need to install PYAML for the command to work.
>> 
>> Is it possible to place the YAML library in the bundle’s support folder and add that to perl’s include path?
> 
> I just did that in the latest commit [GitHub]. Thanks for the helpful suggestion.
> 
> [GitHub]: https://github.com/textmate/latex.tmbundle/commit/35233d4eb14d46fa553cc044959b8d15656a7ccd
> 
> I would like to remove the library code from the bundle sometimes in the future tough. Is there a nice way to install external dependencies via TextMate? The code I came up with:
> 
> ```bash
> {
>    # Try to run `latexindent`
>    latexindent -c=/tmp "${TM_FILENAME}"
> } || {
>    # `latexindent` failed. Most likely this was caused by `Tiny::YAML` not
>    # being installed
>    osascript -e "do shell script \"cpan App::cpanminus && cpanm YAML::Tiny\"\
>                  with administrator privileges" > /dev/null || {
>            exit_show_tool_tip "Could not install YAML::Tiny"
>        }
>    latexindent -c=/tmp "${TM_FILENAME}"
> }
> ```
> 
> has the problem, that there is no feedback for the installation process. Comments would be appreciated.
> 
> Kind regards,
> 
>  René
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list