This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
Replies: 1 comment 2 replies
-
It's strange, the results indicate that the source is generating diagnostics for a temporary file in addition to the actual file, but I don't see anything in the source definition that would lead to that happening. What happens when you run the CLI from the command line using the same arguments as null-ls? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
null_ls.builtins.diagnostics.saltlint
as a source<leader>do
to run<cmd>lua vim.diagnostic.open_float()<CR>
. I only mention this because it's the only other change I've made to the mininal init.lua, beside defining the leader key.[TRACE Thu May 18 21:00:09 2023] ...t/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:205: output: nil
[TRACE Thu May 18 21:00:09 2023] ...ck/packer/start/null-ls.nvim/lua/null-ls/diagnostics.lua:181: received diagnostics from source 1
[TRACE Thu May 18 21:00:09 2023] ...ck/packer/start/null-ls.nvim/lua/null-ls/diagnostics.lua:182: { {
code = "207",
col = 0,
end_col = 0,
end_lnum = 9,
lnum = 8,
message = "File modes should always be encapsulated in quotation marks",
row = 9,
severity = 1,
source = "saltlint"
}, {
code = "210",
col = 0,
end_col = 0,
end_lnum = 9,
lnum = 8,
message = "Numbers that start with '0' should always be encapsulated in quotation marks",
row = 9,
severity = 1,
source = "saltlint"
}, {
code = "207",
col = 0,
end_col = 0,
end_lnum = 9,
lnum = 8,
message = "File modes should always be encapsulated in quotation marks",
row = 9,
severity = 1,
source = "saltlint"
}, {
code = "210",
col = 0,
end_col = 0,
end_lnum = 9,
lnum = 8,
message = "Numbers that start with '0' should always be encapsulated in quotation marks",
row = 9,
severity = 1,
source = "saltlint"
} }
[TRACE Thu May 18 21:00:12 2023] .../site/pack/packer/start/null-ls.nvim/lua/null-ls/rpc.lua:102: received LSP request for method shutdown
[TRACE Thu May 18 21:00:12 2023] .../site/pack/packer/start/null-ls.nvim/lua/null-ls/rpc.lua:127: received LSP notification for method exit
So I'm not sure why null-ls is doubling up and interpreting these 2 errors as 4, repeating the errors twice. I've tried mucking around in saltlint.lua, toggling things like from_stderr, format... and nothing seems to be working for me. I've verified the output is going to stdout (
> /dev/null
makes stdout go away). I'll admit, I'm not a great coder, and am fairly new to lua, and I know this isn't the end of the world, but it's driving my OCD crazy!0.10.0~ubuntu1+git202305112018-e124672ce-9b397864c-d031e37dc~ubuntu22.04.1
from the neovim ppa, but I also have the same problem withNVIM v0.9.0 Build type: Release
on Archubuntu-etc-sudoers:
file.managed:
- name: /etc/sudoers
- source: salt://ubuntu/sources/sudoers
- user: root
- group: root
- mode: 0440
- template: jinja
0440
should be surrounded by quotes, which is fine; if I do that, the errors go away as they should. So things are definitely working... mostly :)Is this a bug I'm running into, or am I doing something wrong?
Thanks for taking the time to read this. Please let me know if there's anything else I can add to help troubleshoot the issue.
Beta Was this translation helpful? Give feedback.
All reactions