-
Notifications
You must be signed in to change notification settings - Fork 130
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
bug: Latexindent doesn't work #183
Comments
What happens if you run |
I get |
The logfiles are now giving a different error (only for latexindent, all other formatters work perfectly) |
Smells like something is wrong with the executable. Could be that it was compiled for the wrong CPU architecture. You mentioned that |
I see /Library/TeX/texbin/latexindent. |
That's your answer! You have a working version of |
Neovim version (nvim -v)
v0.10.0-dev-1467+g5cefec734-Homebrew
Operating system/version
MacOS 14.0
Add the debug logs
log_level = vim.log.levels.DEBUG
and pasted the log contents below.Log file
Log file: /Users/milan/.local/state/nvim/conform.log
13:00:55[INFO] Run latexindent on /Users/milan/Documents/263/A4/a4.tex
13:00:55[DEBUG] Run command: { "latexindent", "-" }
Formatters for this buffer:
latexindent ready (tex)
Other formatters:
clang_format ready (cpp, c)
prettierd ready (markdown, typescriptreact, typescript, javascriptreact, javascript)
ruff_fix ready (python)
ruff_format ready (python)
stylua ready (lua)
Describe the bug
Formatting with latexindent doesn't work and results in the following error message.
E5108: Error executing lua: Vim:E903: Process failed to start: Unknown system error -86: "/Users/milan/.local/shar
e/nvim/mason/bin/latexindent"
stack traceback:
[C]: in function 'jobstart'
...ocal/share/nvim/lazy/conform.nvim/lua/conform/runner.lua:302: in function 'run_formatter'
...ocal/share/nvim/lazy/conform.nvim/lua/conform/runner.lua:566: in function 'format_lines_sync'
...ocal/share/nvim/lazy/conform.nvim/lua/conform/runner.lua:529: in function 'format_sync'
....local/share/nvim/lazy/conform.nvim/lua/conform/init.lua:421: in function 'format'
/Users/milan/.config/nvim/lua/plugins/lintfmt.lua:68: in function </Users/milan/.config/nvim/lua/plugins/l
intfmt.lua:67>
Steps To Reproduce
Expected Behavior
Proper formatting and no error message.
My conform config
Minimal init.lua
Additional context
All other formatters work (stylua, ruff, etc).
The text was updated successfully, but these errors were encountered: