Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I debug my config? #60

Open
sazary opened this issue Jun 29, 2021 · 3 comments
Open

How can I debug my config? #60

sazary opened this issue Jun 29, 2021 · 3 comments

Comments

@sazary
Copy link

sazary commented Jun 29, 2021

Hi
I'm trying to use dmypy (mypy in daemon mode) as a linter, but it's not working.
I'm can use mypy using the config in the wiki, and I can use dmypy in cli.
My question is how can I see what command is the diagnostic lsp actually running and what response is it receiving and what is going wrong? No error or message is being printed in coc's log file AFAIK.

This is the relevant part of coc-settings:

  "diagnostic-languageserver.debug": true,
  "diagnostic-languageserver.trace.server": "verbose",
  "diagnostic-languageserver.filetypes": {
    "python": ["flake8", "dmypy"]
  },
  "diagnostic-languageserver.linters": {
    "dmypy": {
       ...

And this is my versions:

## versions

vim version: NVIM v0.5.0-dev+1422-ga03ffe160
node version: v16.3.0
coc.nvim version: 0.0.80-171ff2bc99
coc.nvim directory: /home/sazary/.vim/plugged/coc.nvim
term: xterm-256color
platform: linux

Thank you very much

@iamcco
Copy link
Owner

iamcco commented Jul 23, 2021

  1. setting "diagnostic-languageserver.trace.server": "verbose" in coc-settings.json
  2. open file
  3. run :CocCommand workspace.showOutput and select option diagnostic-languageserver

you will see something like

image

@thesofakillers
Copy link

@sazary did you figure out a working diagnostic-ls config for dmypy? Care to share?

@JoaquimEsteves
Copy link

For future reference - you can get the logs through neovim's default lspconfig like so:

vim.lsp.set_log_level("TRACE")
-- Later you can invoke :LspLog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants