question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No diagnostic performed while typing.

See original GitHub issue

Coc-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 : vim_coc_java_services 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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chemzqmcommented, Apr 20, 2020

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.json

0reactions
chemzqmcommented, Apr 21, 2020

Search textDocument/publishDiagnostics, seems your server working as expected, but I don’t know why you didn’t get diagnostics.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Diagnostic Tests - Solution Center - Typing Agent
Diagnostic Tests are controlled completely by Typing Agent. They are given at set intervals as students go through their keyboarding curriculum. On the...
Read more >
Diagnostics, feedback, and privacy in Windows
Learn how Microsoft collects and uses different kinds of diagnostic information to help fix problems quickly and improve your Windows experience, and how...
Read more >
Dysgraphia: What It Is, Symptoms, Diagnosis & Treatment
What tests will be done to diagnose dysgraphia? There's no medical testing required or available for diagnosing dysgraphia. Instead, healthcare ...
Read more >
Diagnosis by keyboard - MIT News
In a paper appearing in Scientific Reports, the researchers found that their algorithm for analyzing keystrokes could distinguish between typing ...
Read more >
Computer vision syndrome - American Optometric Association
This testing may be done without the use of eye drops to determine how the eyes respond under normal seeing conditions. In some...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found