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

Linter `parser` never called if command doesn't write to stdout before completing.

Open 9999years opened this issue 6 months ago • 0 comments

(Low-priority, documentation.) When writing a linter in Lua (see #816), I first attempted to set cmd = "true". true(1) produces no output and exits with code 0. I was pretty baffled that my provided parser function was never called. When I switched the cmd to echo instead, it suddenly worked! I guess the command needs to write something to the output stream for the command functions to be called.

This may be an issue with the Lua APIs somewhere (e.g. uv.read_start) rather than the nvim-lint implementation, but it's probably worth documenting.

9999years avatar Jul 03 '25 17:07 9999years