nvim-lint icon indicating copy to clipboard operation
nvim-lint copied to clipboard

jq cannot run: Linter command `cmd.exe` exited with code: 5

Open Ra2-IFV opened this issue 5 months ago • 5 comments

    lint.linters.jq_custom = {
      cmd = "jq",
      stdin = true,
      args = { "." },
      stream = "stderr",
      ignore_exitcode = false,
      parser = require("lint.parser").from_pattern(
        "^parse error: (.+) at line (%d+), column (%d+)$",
        { "message", "lnum", "col" },
        nil,
        nil,
        nil
      ), 
    }

if I ignore exit code, it still does nothing at all. I googled for cmd exit status 5 and it looks like a permission problem, but jq worked well with :!cat % | jq .

Ra2-IFV avatar Sep 06 '24 09:09 Ra2-IFV