No diagnostic performed while typing.
See original GitHub issueCoc-java isn’t linting while I type. The only time it lints is when I save the file.
Trying since many days to perform : Debug Language Server but failing miserably.
Output of :CocList services
looks bit strange :
Nevertheless, I added "Language Support for Java.trace.server" : "verbose"
to my coc-settings,json which makes it look like
{
"coc.preferences.extensionUpdateCheck" : "never",
"diagnostic.refreshOnInsertMode": true,
"diagnostic.checkCurrentLine": true,
"diagnostic.displayByAle": false,
"python.linting.enabled" : true,
"python.linting.pylintArgs" : ["--load-plugins", "pylint-flask", "pylint-flask-sqlalchemy", "pylint-sqlalchemy"],
"suggest.noselect": false,
"suggest.autoTrigger": "always",
"suggest.triggerAfterInsertEnter": true,
"Language Support for Java.trace.server" : "verbose"
}
which is certainly wrong. I changed the last line to "java.trace.server" : "verbose"
.
Writing :CocCommand workspace.showOutput
shows a huge log. click here to view
I uploaded it and viewed on Microsoft LSP Inspector but I don’t know what I should look for.
Any help to further progress the debugging would be divine. My goal is to make coc-java lint my java files (and display the diagnostic) while I type.
Other Information :
:CocInfo shows
## versions
vim version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Mar 1 2020 17:21:03)
node version: v13.12.0
coc.nvim version: 0.0.78-312c7c4482
term: dumb
platform: linux
## Output channel: java
#skipping lines
#lines are the same as the huge log.
My .vimrc If I am missing to add any information then please do tell.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
Could be problem of your language server, checkout https://github.com/neoclide/coc.nvim/wiki/Debug-language-server#using-output-channel
Diagnostics only refreshed on insert leave by default, use
"diagnostic.refreshOnInsertMode": true
in coc-settings.jsonSearch
textDocument/publishDiagnostics
, seems your server working as expected, but I don’t know why you didn’t get diagnostics.