Repository navigation
fix(nix): pylsp 1.14.0 の checkPhase を overlay でスキップ - #67
Merged
Merged
Conversation
nixpkgs-unstable の python-lsp-server 1.14.0 が Python 3.13 で pytest teardown の logging-on-closed-stream 競合 (upstream python-lsp/python-lsp-server#605) に当たり、`nix run .#switch` が neovim 連鎖ビルド失敗で止まる。 programs.neovim.extraPackages 経由で pylsp が neovim wrapper の build closure に入っており、nixpkgs 側に修正が降りていないため overlay で doCheck = false する暫定 workaround を入れる。 upstream / nixpkgs 修正後に削除する。 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
nix run .#switchがpython-lsp-server-1.14.0のテスト失敗(upstream python-lsp/python-lsp-server#605: pytest teardown で logging on closed stream)で止まる問題の workaroundnix/overlays/default.nixにpythonPackagesExtensions経由でpython-lsp-serverのみdoCheck = falseを当てる背景
programs.neovim.extraPackages(nix/modules/home/programs/neovim.nix:19) でpython312Packages.python-lsp-serverを引き込んでおり、neovim wrapper の build closure に乗るためエラーが neovim 連鎖失敗を起こしていたdisabledTestsの組み合わせで本テスト失敗は拾えていないpython312Packagesのみ)ではなく追従性を優先してpythonPackagesExtensions経由で当て、pyPrev ? python-lsp-serverでガードTest plan
nix eval --raw .#darwinConfigurations.personal.pkgs.python312Packages.python-lsp-server.drvPath→ 新 drv 生成nix derivation show <drv> | jq→doCheck: ""(false 反映)nix run .#build完走nix log <drv>にpytest/test session starts出現なし(pythonImportsCheckPhaseのみ)nix run .#switch完走(activation hook 全通):LspInfoでpylspattached を実機確認🤖 Generated with Claude Code