Skip to content

bug: yamlfix timeout and error #743

@AlejandroSanchez90

Description

@AlejandroSanchez90

Neovim version (nvim -v)

11

Operating system/version

macOS

Read debugging tips

Add the debug logs

  • I have set log_level = vim.log.levels.DEBUG and pasted the log contents below.

Log file

Log file: /Users/asanchez3/.local/state/nvim/conform.log
~~~~~~~~~~^^
File "/Users/asanchez3/.local/share/nvim/mason/packages/yamlfix/venv/lib/python3.13/site-packages/ruyaml/parser.py", line 652, in parse_block_mapping_key
raise ParserError(
...<4 lines>...
)
ruyaml.parser.ParserError: while parsing a block mapping
in "", line 68, column 9:
- name: Add Feature To OIDC
^ (line: 68)
expected , but found ''
in "", line 86, column 10:
OIDC_API_ORIGIN: https://oauthap ...
^ (line: 86)

      2025-07-02 21:13:43[WARN] Formatter 'yamlfix' timeout
      2025-07-02 21:13:46[WARN] Formatter 'yamlfix' timeout
      2025-07-02 21:17:11[WARN] Formatter 'yamlfix' timeout
      2025-07-02 21:18:10[WARN] Formatter 'yamlfix' timeout
      2025-07-02 21:18:15[WARN] Formatter 'yamlfix' timeout
      2025-07-02 21:19:01[WARN] Formatter 'yamlfix' timeout
      2025-07-02 21:19:16[WARN] Formatter 'yamlfix' timeout
      2025-07-02 21:19:19[WARN] Formatter 'yamlfix' timeout

Describe the bug

i installed yamlfix, but its timing out, and checking ConformInfo gave me some erros

What is the severity of this bug?

tolerable (can work around it)

Steps To Reproduce

return {
  { -- Autoformat
    'stevearc/conform.nvim',
    event = { 'BufWritePre' },
    cmd = { 'ConformInfo' },
    opts = {
      notify_on_error = false,
      format_on_save = {
        lsp_fallback = true,
        async = false,
        timeout_ms = 1000,
      },
      formatters_by_ft = {
        css = { 'prettier' },
        html = { 'prettier' },
        yaml = { 'yamlfix' },
        lua = { 'stylua' },
        json = { 'prettier' },
        javascript = { 'prettier', stop_after_first = true },
        typescript = { 'prettier', stop_after_first = true },
        javascriptreact = { 'prettier', stop_after_first = true },
        typescriptreact = { 'prettier', stop_after_first = true },
      },
    },
  },
}
-- vim: ts=2 sts=2 sw=2 et

Expected Behavior

my yaml files should auto indent and format

Minimal example file

No response

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

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions