Notify on non-zero exit codes #1404
-
formatters silently fails on non-zero exit codes by default, which makes it hard to figure out if things went wrong. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I guess this is the cause: null-ls.nvim/lua/null-ls/generators.lua Lines 93 to 97 in a75bba0 null-ls.nvim/lua/null-ls/sources.lua Lines 100 to 106 in a75bba0 Once a generator failed, it effectively becomes disabled. |
Beta Was this translation helpful? Give feedback.
-
This is deliberate and I'm not likely to change it at this point, simply because a lot of users have formatting on save set up and it could be annoying to get notified each time a formatter fails. I'd consider this a more niche use case, but you can achieve this by overriding |
Beta Was this translation helpful? Give feedback.
This is deliberate and I'm not likely to change it at this point, simply because a lot of users have formatting on save set up and it could be annoying to get notified each time a formatter fails. I'd consider this a more niche use case, but you can achieve this by overriding
set_exit_code
and logging outstderr
(example).