Skip to content

installed plugins not being used #350

@petergaultney

Description

@petergaultney

i have pylsp_black and pylsp_mypy installed, in the correct/same venv, but they're not getting used.

I have looked at your code and I don't understand how this project even knows to try to import them so they can register their hooks. Presumably something needs to run the pylsp_mypy script, but nothing seems to be doing that.

Screen Shot 2023-02-19 at 11 35 48 PM

Screen Shot 2023-02-19 at 11 35 13 PM

pylsp is running, and you can see from its path that the other plugins are installed side by side. But nothing having to do with mypy is running.

As far as I can tell, my config has both of these plugins enabled:

[Trace - 11:38:51 PM] Sending notification 'workspace/didChangeConfiguration'.
Params: {
  "settings": {
    "pylsp": {
      "plugins": {
        "rope_rename": {
          "enabled": false
        },
        "autopep8": {
          "enabled": false
        },
        "yapf": {
          "enabled": false
        },
        "black": {
          "enabled": true
        },
        "rope_completion": {
          "enabled": false
        },
        "pyflakes": {
          "enabled": false
        },
        "pydocstyle": {
          "matchDir": "[^\\.].*",
          "match": "(?!test_).*\\.py",
          "enabled": true
        },
        "pycodestyle": {
          "hangClosing": false,
          "enabled": false
        },
        "pylint": {
          "enabled": false,
          "args": []
        },
        "flake8": {
          "enabled": true
        },
        "preload": {
          "enabled": true
        },
        "mccabe": {
          "threshold": 15,
          "enabled": true
        },
        "jedi_symbols": {
          "all_scopes": true,
          "enabled": true
        },
        "jedi_signature_help": {
          "enabled": true
        },
        "jedi_references": {
          "enabled": true
        },
        "jedi_hover": {
          "enabled": true
        },
        "jedi_definition": {
          "follow_builtin_imports": true,
          "follow_imports": true,
          "enabled": true
        },
        "jedi_completion": {
          "include_params": true,
          "enabled": true,
          "include_class_objects": true,
          "fuzzy": false
        },
        "jedi_rename": {
          "enabled": true
        },
        "pylsp_mypy": {
          "enabled": true,
          "live_mode": true
        },
        "pylsp_isort": {
          "enabled": true
        }
      },
      "configurationSources": [
        "flake8"
      ]
    }
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions