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

ruff server and pyright at the same time. #1094

Closed
brurucy opened this issue Jul 17, 2024 · 1 comment
Closed

ruff server and pyright at the same time. #1094

brurucy opened this issue Jul 17, 2024 · 1 comment

Comments

@brurucy
Copy link

brurucy commented Jul 17, 2024

Description

I cannot have both ruff server and pyright running at the same time, it is annoying.

Reproduce

jupyter_server_config.py:

c = get_config()  # noqa

c.ServerApp.open_browser = False
c.LanguageServerManager.autodetect = False
c.LanguageServerManager.language_servers = {
    "pyright": {
        "argv": ["pyright-langserver", "--stdio"],
        "languages": ["python"],
        "version": 2,
        "mime_types": ["text/python", "text/ipython"],
        "display_name": "pyright",
    },
    "ruff": {
        "argv": ["ruff", "server", "--preview"],
        "languages": ["python"],
        "version": 2,
        "mime_types": ["text/python", "text/ipython"],
        "display_name": "ruff",
    },
}

settings:

"language_servers": {
   "pyright": {
        "priority": 500,
        "serverSettings": {}
     },
     "ruff": {
         "priority": 500,
         "serverSettings": {}
     }
},

Expected behavior

To have suggestions from both pyright and ruff.

Context

  • JupyterLab version: 4.2.3
@krassowski
Copy link
Member

PRs to enable this would be warmly welcome!

I will close this as duplicate of #708 and of #437.

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

2 participants