Problem
lsp-cli versions 0.3.3 and 0.4.0 import from lsap.capability.doc and lsap.schema.doc, but lsap-sdk==0.2.0 (the latest on PyPI) doesn't include these modules. This causes an immediate ModuleNotFoundError on any lsp command:
ModuleNotFoundError: No module named 'lsap.capability.doc'
Additionally, lsp-cli 0.3.3 references LineScope.line in shared.py, but lsap-sdk 0.2.0's LineScope only has start_line / end_line — causing AttributeError: 'LineScope' object has no attribute 'line' when using reference or definition commands.
Root Cause
The branch copilot/rename-hover-api-to-doc-api has the fix (renaming inspect→doc/symbol), but it hasn't been merged to main or published to PyPI. Meanwhile, lsp-cli releases on PyPI already depend on the new API.
Impact
Fresh installs via uv tool install lsp-cli are completely broken — no commands work at all.
Workaround
I patched locally by:
- Creating
lsap/schema/doc.py and lsap/capability/doc.py based on the pattern from the copilot branch
- Fixing the
LineScope.line → start_line/end_line reference in lsp_cli/cli/shared.py
Suggested Fix
Merge the copilot/rename-hover-api-to-doc-api branch and publish a new lsap-sdk version to PyPI.
Problem
lsp-cliversions 0.3.3 and 0.4.0 import fromlsap.capability.docandlsap.schema.doc, butlsap-sdk==0.2.0(the latest on PyPI) doesn't include these modules. This causes an immediateModuleNotFoundErroron anylspcommand:Additionally,
lsp-cli0.3.3 referencesLineScope.lineinshared.py, butlsap-sdk0.2.0'sLineScopeonly hasstart_line/end_line— causingAttributeError: 'LineScope' object has no attribute 'line'when usingreferenceordefinitioncommands.Root Cause
The branch
copilot/rename-hover-api-to-doc-apihas the fix (renaming inspect→doc/symbol), but it hasn't been merged to main or published to PyPI. Meanwhile,lsp-clireleases on PyPI already depend on the new API.Impact
Fresh installs via
uv tool install lsp-cliare completely broken — no commands work at all.Workaround
I patched locally by:
lsap/schema/doc.pyandlsap/capability/doc.pybased on the pattern from the copilot branchLineScope.line→start_line/end_linereference inlsp_cli/cli/shared.pySuggested Fix
Merge the
copilot/rename-hover-api-to-doc-apibranch and publish a newlsap-sdkversion to PyPI.