Neovim version (nvim -v)
NVIM v0.12.2
Operating system/version
Windows 11
Read debugging tips
Add the debug logs
Log file
[ERROR] Formatter 'mago_lint' error: error: unexpected argument '--format' found
Tip: a similar argument exists: '--format-after-fix'
Usage: mago lint --fix --format-after-fix [PATH]
Describe the bug
https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/mago_lint.lua
args = { "lint", "--fix", "--format", "$FILENAME" },
--format causes [ERROR] Formatter 'mago_lint' error: error: unexpected argument '--format' found
args = { "lint", "--fix", "--format-after-fix", "$FILENAME" },
https://mago.carthage.software/latest/en/tools/linter/usage/
--format-after-fix works
What is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
- install https://github.com/carthage-software/mago
- require("conform").formatters_by_ft.php = { "mago_lint" }
- format a php file
Expected Behavior
mago lint fixes the php file
Minimal example file
<?php
if (true) echo "test";
Minimal init.lua
vim.pack.add({
"https://github.com/stevearc/conform.nvim",
})
require("conform").setup({
format_on_save = {
lsp_format = "never",
},
formatters_by_ft = {
php = { "mago_lint" },
},
})
Additional context
No response
Neovim version (nvim -v)
NVIM v0.12.2
Operating system/version
Windows 11
Read debugging tips
Add the debug logs
log_level = vim.log.levels.DEBUGand pasted the log contents below.Log file
[ERROR] Formatter 'mago_lint' error: error: unexpected argument '--format' found
Tip: a similar argument exists: '--format-after-fix'
Usage: mago lint --fix --format-after-fix [PATH]
Describe the bug
https://github.com/stevearc/conform.nvim/blob/master/lua/conform/formatters/mago_lint.lua
--formatcauses [ERROR] Formatter 'mago_lint' error: error: unexpected argument '--format' foundhttps://mago.carthage.software/latest/en/tools/linter/usage/
--format-after-fixworksWhat is the severity of this bug?
breaking (some functionality is broken)
Steps To Reproduce
Expected Behavior
mago lint fixes the php file
Minimal example file
Minimal init.lua
Additional context
No response