Skip to content

Can't use intellij's LSP client when Pycharm enable LSP4IJΒ #596

@Nagato-Yuzuru

Description

@Nagato-Yuzuru

Describe the bug

Enable the intellij LSP client Ruff plugin logs continuous errors when using PyCharm with the LSP4IJ plugin enabled:

LSP4IJ not enabled in config.

To Reproduce
Steps to reproduce the behavior:

  1. Install LSP4IJ plugin and enabled.

  2. Install and configure the ruff plugin.

  3. Enable ruff service and IntelliJ's LSP client.

  4. Observe the error in the logs: LSP4IJ not enabled in config.

Expected behavior
Ruff should work seamlessly with IntelliJ's LSP.

Screenshots

config

logs

Environments (please complete the following information):

  • IDE: PyCharm 2025.1.1
  • OS: macOS 15.4.1 24E263 x86_64
  • Ruff Version: 0.11.9
  • Plugin version 0.047

Additional context
Two temporary workarounds make ruff work properly:

  1. Disable the LSP4IJ plugin entirely (which is not ideal as it is needed for other language support like Lua).

  2. Switch the client in Ruff plugin config to LSP4IJ and then switch it back.(idk what's happen, but it can work)

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