You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the command for latexindent formatter is (latexindent . ("latexindent" "--logfile=/dev/null")). Apparently this results in an incorrect parsing of the command, as a backslash is being added before = when running the command.
$ latexindent --logfile\=/dev/null -
Can't open file: No such file or directory at /Users/kenyonn/Library/Application Support/MiKTeX/texmfs/install/scripts/latexindent/LatexIndent/UTF8CmdLineArgsFileOperation.pm line 73, <> line 1763.
Command succeeded with exit code 2.
However, adding two backslash before =, i.e. ("latexindent" "--logfile\\=/dev/null") fix the issue. I'm not sure if this issue only shows up in macOS/zsh though.
Running Emacs 29.3 on macOS 14.4.1.
The text was updated successfully, but these errors were encountered:
weiyaw
changed the title
latexindent not parsing command properly
Formatter for latexindent not being parsed correctly
Apr 15, 2024
Is it possible that there is some other environment difference between those two machines? For example, perhaps a different default shell in the environment that leads Emacs to assume different quoting rules would be correct?
That's a possibility, but unfortunately I'm relatively new to Emacs and not sure which button to push to get the right diagnostics. Is there any debugging tools that shows the shell being used?
Currently the command for
latexindent
formatter is(latexindent . ("latexindent" "--logfile=/dev/null"))
. Apparently this results in an incorrect parsing of the command, as a backslash is being added before=
when running the command.However, adding two backslash before
=
, i.e.("latexindent" "--logfile\\=/dev/null")
fix the issue. I'm not sure if this issue only shows up in macOS/zsh though.Running Emacs 29.3 on macOS 14.4.1.
The text was updated successfully, but these errors were encountered: