Skip to content

I get no static analysis #24

Description

@Onturenio

Hi, thanks for this great plugin which I have been using for some time now. Yesterday I changed some things in my setup and tried to reinstall all my vim plugins. Unfortunatelly I cannot make coc-pylsp work right regarding the integration with coc-ruf.

I have followed these steps:

  • My .vimrc has this line alone Plug 'neoclide/coc.nvim', {'branch': 'release'}.
  • my .vim/coc-settings.json has this content:
  {
  "pylsp.plugins.pycodestyle.enabled": false,
  "pylsp.plugins.flake8.enabled": false,
  "pylsp.plugins.flake8.ignore": ["E265", "E266"],
  "pylsp.plugins.pydocstyle.enabled": false,
  "pylsp.plugins.mccabe.enabled": false,
  "pylsp.plugins.pyflakes.enabled": false,
  "pylsp.plugins.yapf.enabled": false,
  "pylsp.plugins.ruff.enabled": true,
  "pylsp.plugins.ruff.extendSelect": ["E", "D", "C90"],
  "pylsp.plugins.ruff.lineLength": 79,
  "pylsp.builtin.installExtrasArgs": [
  "flake8",
  "yapf",
  "mccabe",
  "pycodestyle",
  "pydocstyle",
  "pyflakes",
  "pylint",
  "rope"                                                                                                                                                               
  ],
  "pylsp.builtin.enableInstallPythonLspRuff": true,
  "pylsp.builtin.enableInstallPylsIsort": true, 
  "diagnostic.messageTarget": "float", 
  "diagnostic.checkCurrentLine": true,
  "suggest.enablePreselect": false,
  "suggest.noselect": true
  }
  • I install coc-pylsp from within vim with :CocInstall u/yaegassy/coc-pylsp.

  • I install all extras required by the latter by running also :CocCommand pylsp.builtin.install.

  • My ~/.config/coc/extensions/@yaegassy/coc-pylsp-data/pylsp/venv/bin directory has python, ruff, pylint, and the rest of necessary binaries.

Still, when I open a python file, I get no static analysis whatsoever, nor any warning pointing to any error I can try to fix. Any idea how to figure out what link is missing in the chain?

Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions