Neovim version (nvim -v)
NVIM v0.12.0-dev-825+gd4c8e8df1c
Operating system/version
debian12
Read debugging tips
Add the debug logs
Log file
2026-03-31 20:41:13[DEBUG] Running formatters on /home/linux/.config/nvim/test.json: { "oxfmt" }
2026-03-31 20:41:13[INFO] Run oxfmt on /home/linux/.config/nvim/test.json
2026-03-31 20:41:13[DEBUG] Run command: { "/home/linux/anydev/app/x86_64/bin/oxfmt", "--stdin-filepath", "/home/linux/.config/nvim/test.json" }
2026-03-31 20:41:13[DEBUG] Run default CWD: /home/linux/.config/nvim
2026-03-31 20:41:13[INFO] oxfmt exited with code 1
2026-03-31 20:41:13[DEBUG] oxfmt stdout: { "" }
2026-03-31 20:41:13[DEBUG] oxfmt stderr: { "Error: --stdin-filepath is not expected in this context", "" }
2026-03-31 20:41:13[ERROR] Formatter 'oxfmt' error: Error: --stdin-filepath is not expected in this context
Describe the bug
Hi, I got this error with oxfmt, on formatting json file.
My config:
require("conform").setup({
log_level = vim.log.levels.DEBUG,
formatters_by_ft = {
json = { "oxfmt" },
},
})
conform version: master
oxfmt version: 0.43.0
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
- Install oxfmt 0.43.0, the latest
- format a json file.
Expected Behavior
Not failed
Minimal example file
No response
Minimal init.lua
require("conform").setup({
log_level = vim.log.levels.DEBUG,
formatters_by_ft = {
json = { "oxfmt" },
},
})
Additional context
No response
Neovim version (nvim -v)
NVIM v0.12.0-dev-825+gd4c8e8df1c
Operating system/version
debian12
Read debugging tips
Add the debug logs
log_level = vim.log.levels.DEBUGand pasted the log contents below.Log file
2026-03-31 20:41:13[DEBUG] Running formatters on /home/linux/.config/nvim/test.json: { "oxfmt" }
2026-03-31 20:41:13[INFO] Run oxfmt on /home/linux/.config/nvim/test.json
2026-03-31 20:41:13[DEBUG] Run command: { "/home/linux/anydev/app/x86_64/bin/oxfmt", "--stdin-filepath", "/home/linux/.config/nvim/test.json" }
2026-03-31 20:41:13[DEBUG] Run default CWD: /home/linux/.config/nvim
2026-03-31 20:41:13[INFO] oxfmt exited with code 1
2026-03-31 20:41:13[DEBUG] oxfmt stdout: { "" }
2026-03-31 20:41:13[DEBUG] oxfmt stderr: { "Error:
--stdin-filepathis not expected in this context", "" }2026-03-31 20:41:13[ERROR] Formatter 'oxfmt' error: Error:
--stdin-filepathis not expected in this contextDescribe the bug
Hi, I got this error with oxfmt, on formatting json file.
My config:
conform version: master
oxfmt version: 0.43.0
What is the severity of this bug?
tolerable (can work around it)
Steps To Reproduce
Expected Behavior
Not failed
Minimal example file
No response
Minimal init.lua
Additional context
No response