0

When i run latexindent -v I get: segmentation fault latexindent -v

With sudo latexindent -v: 3.8, 2020-03-21

I installed latex indent with sudo tlmgr install latexindent because without it I would get: You don't have permission to change the installation in any way, specifically, the directory /usr/local/texlive/2020basic/tlpkg/ is not writable.

It doesn't work in VSCode either, the path is set up good. I guess it's because it calls latexindent without sudo.

zzsolt
  • 1
  • What are the permissions on latexindent? The file should have permissions rwxr-xr-x so it should be executable by anyone. – Herb Schulz Apr 23 '20 at 21:42
  • @HerbSchulz The file at /usr/local/texlive/2020basic/texmf-dist/scripts/latexindent has rwxr-x-rx permissions. – zzsolt Apr 24 '20 at 05:16
  • How about the link in /usr/local/texlive/2020basic/bin/x86-Darwin? – Herb Schulz Apr 24 '20 at 13:38
  • It also has rwxr-xr-x permissions – zzsolt Apr 25 '20 at 08:14
  • It sounds like this is a permissions thing, rather than being specific to latexindent. When you installed texlive did you do so as sudo....? – cmhughes Apr 25 '20 at 09:27
  • See the details in this answer about changing permission: https://tex.stackexchange.com/a/55459/6621 – cmhughes Apr 25 '20 at 09:43
  • What do which latexindent and echo $PATH return? – Herb Schulz Apr 25 '20 at 12:55
  • @HerbSchulz for latexindent its /Library/TeX/texbin/latexindent and the path variable contains the /Library/TeX/texbin directory – zzsolt Apr 26 '20 at 08:52
  • @cmhughes I installed it via brew cask install. Tried this sudo chown -R yourusername /usr/local/texlive/2020 and reinstalled the package but still get segmentation fault. – zzsolt Apr 26 '20 at 08:57

0 Answers0