-
Notifications
You must be signed in to change notification settings - Fork 264
Description
Neovim version (nvim -v)
0.11.4
Operating system/version
6.12.48-1-MANJARO
Read debugging tips
- I have read through the debugging tips.
Add the debug logs
- I have set
log_level = vim.log.levels.DEBUGand pasted the log contents below.
Log file
Log file: /home/nd/.local/state/nvim/conform.log
2025-11-19 14:55:07[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 14:55:50[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 14:55:58[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 14:58:00[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 14:58:48[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 14:59:02[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 14:59:07[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 14:59:14[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 14:59:31[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 15:00:02[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 15:09:09[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 15:09:48[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 15:10:10[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 15:10:17[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 15:11:34[WARN] Formatter 'npm-groovy-lint' timeout
2025-11-19 15:20:06[WARN] Formatter 'npm-groovy-lint' timeout
Formatters for this buffer:
npm-groovy-lint ready (groovy) /home/nd/.local/share/nvim/mason/bin/npm-groovy-lint
Other formatters:
buf unavailable: Command 'buf' not found
gofumpt ready (go) /home/nd/.local/share/nvim/mason/bin/gofumpt
goimports-reviser ready (go) /home/nd/.local/share/nvim/mason/bin/goimports-reviser
golines ready (go) /home/nd/.local/share/nvim/mason/bin/golines
gomodifytags error: Unknown formatter. Formatter config missing or incomplete
jq ready (json) /home/nd/.local/share/nvim/mason/bin/jq
markdownlint-cli2 ready (markdown) /home/nd/.local/share/nvim/mason/bin/markdownlint-cli2
ruff ready (python) /home/nd/.local/share/nvim/mason/bin/ruff
shellharden ready (bash) /home/nd/.local/share/nvim/mason/bin/shellharden
sqruff unavailable: Command 'sqruff' not found
stylua ready (lua) /home/nd/.local/share/nvim/mason/bin/stylua
taplo ready (toml) /home/nd/.local/share/nvim/mason/bin/taplo
templ ready (templ) /home/nd/.local/share/nvim/mason/bin/templ
Describe the bug
format groovy file will retun "Formatter 'npm-groovy-lint' timeout"
What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
1.install 'npm-groovy-lint' with mason.
2. setup fromatters_by_ft { groovy = { 'npm-groovy-lint' }
3.nvim demo.groovy , send ':w'
Expected Behavior
format groovy file
Minimal example file
#!/usr/bin/env groovy
// ==================== Git Operations ====================
def nodeGitCheckout(Map config) {
git branch: config.branch,
credentialsId: config.credentialsId,
url: config.url
}
Minimal init.lua
-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end
-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
vim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
end
vim.opt.runtimepath:prepend(lazypath)
-- install plugins
local plugins = {
"folke/tokyonight.nvim",
{
"stevearc/conform.nvim",
config = function()
require("conform").setup({
log_level = vim.log.levels.DEBUG,
-- add your config here
})
end,
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root = root .. "/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
{
'stevearc/conform.nvim',
event = { 'BufWritePre' },
cmd = { 'ConformInfo' },
keys = {
{
'<leader>f',
function()
require('conform').format { async = true, lsp_fallback = true }
end,
mode = '',
desc = '[F]ormat buffer',
},
},
opts = {
notify_on_error = false,
format_on_save = function(bufnr)
local disable_filetypes = { c = true, cpp = true }
if disable_filetypes[vim.bo[bufnr].filetype] then
return nil
else
return {
timeout_ms = 500,
lsp_format = 'fallback',
}
end
end,
formatters_by_ft = {
lua = { 'stylua' },
groovy = { 'npm-groovy-lint' },
},
},
},Additional context
No response