Is this means ktlint
don't return anythng ?
#872
-
I have tried I have this in my log [TRACE Tue 17 May 2022 03:46:07 PM WITA] .../pack/packer/opt/null-ls.nvim/lua/null-ls/generators.lua:21: running generators for method NULL_LS_DIAGNOSTICS_ON_OPEN
[DEBUG Tue 17 May 2022 03:46:07 PM WITA] ...t/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:344: spawning command "ktlint" at /home/fitrh/git/kotlin-quick-start with args { "--relative", "--reporter=json" }
[TRACE Tue 17 May 2022 03:46:15 PM WITA] ...t/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:217: error output: nil
[TRACE Tue 17 May 2022 03:46:15 PM WITA] ...t/null-ls.nvim/lua/null-ls/helpers/generator_factory.lua:218: output: [
{
"file": "src/main/kotlin/quick/start/App.kt",
"errors": [
{
"line": 6,
"column": 17,
"message": "Unnecessary block (\"{}\")",
"rule": "no-empty-class-body"
},
{
"line": 14,
"column": 1,
"message": "Unexpected indentation (0) (should be 4)",
"rule": "indent"
}
]
}
]
[TRACE Tue 17 May 2022 03:46:15 PM WITA] ...pack/packer/opt/null-ls.nvim/lua/null-ls/diagnostics.lua:169: received diagnostics from source 7
[TRACE Tue 17 May 2022 03:46:15 PM WITA] ...pack/packer/opt/null-ls.nvim/lua/null-ls/diagnostics.lua:170: {} How I can confirm that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The issue, as far as I can tell, is this line that expects output to come via @ObserverOfTime, since you worked on the PR that added this linter, do you have any ideas? |
Beta Was this translation helpful? Give feedback.
The issue, as far as I can tell, is this line that expects output to come via
stderr
. Removing that line seems to make things work for me, though I'm wondering if there's a version incompatibility or some other reason why the option was set in the first place.@ObserverOfTime, since you worked on the PR that added this linter, do you have any ideas?