🎃

vscodeの"The legacy server (ruff-lsp) has been deprecated."警告対応

2025/02/28に公開

事象

vscode起動時に下記のような警告が右下に出るようになった。

The legacy server (ruff-lsp) has been deprecated. Feel free to comment on the GitHub discussion to ask questions or share feedback.

警告解消手順

  • vscodeのRuff extensionを最新化
  • ruffのversionが0.5.3以上であるか確認
     ~ ruff --version      
    ruff 0.4.8
    
  • ruffのversionが0.5.3以下の場合はupgrade
     ~ pip install --upgrade ruff                           
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: ruff in ./.local/lib/python3.10/site-packages (0.4.8)
    Collecting ruff
      Downloading ruff-0.9.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (25 kB)
    Downloading ruff-0.9.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.3 MB)
       ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.3/11.3 MB 5.9 MB/s eta 0:00:00
    WARNING: Error parsing dependencies of python-debian: Invalid version: '0.1.43ubuntu1'
    Installing collected packages: ruff
      Attempting uninstall: ruff
        Found existing installation: ruff 0.4.8
        Uninstalling ruff-0.4.8:
          Successfully uninstalled ruff-0.4.8
    Successfully installed ruff-0.9.8
    
    [notice] A new release of pip is available: 24.2 -> 25.0.1
    [notice] To update, run: python3 -m pip install --upgrade pip
     ~ ruff --version
    ruff 0.9.8
    
  • vscodeを再起動しても警告が出なくなる

参考リンク

Discussion