Skip to content

fix: add missing doc and symbol modules to lsap-sdk#40

Open
bushnelb wants to merge 1 commit intolsp-client:mainfrom
bushnelb:fix/add-missing-doc-and-symbol-modules
Open

fix: add missing doc and symbol modules to lsap-sdk#40
bushnelb wants to merge 1 commit intolsp-client:mainfrom
bushnelb:fix/add-missing-doc-and-symbol-modules

Conversation

@bushnelb
Copy link
Copy Markdown

@bushnelb bushnelb commented Apr 1, 2026

Problem

Fresh installs of lsp-cli (0.3.3 or 0.4.0) via uv tool install lsp-cli are completely broken because lsap-sdk==0.2.0 on PyPI is missing the doc and symbol modules that lsp-cli imports.

ModuleNotFoundError: No module named 'lsap.capability.doc'

Fix

Cherry-picks the doc and symbol capability and schema modules from the copilot/rename-hover-api-to-doc-api branch into main, so the next PyPI release of lsap-sdk will be compatible with the already-published lsp-cli.

Files added:

  • src/lsap/capability/doc.py — Doc (hover) capability
  • src/lsap/schema/doc.py — Doc request/response schema
  • src/lsap/capability/symbol.py — Symbol capability (renamed from inspect)
  • src/lsap/schema/symbol.py — Symbol request/response schema
  • Updated src/lsap/capability/__init__.py exports

Additional note

There's also a LineScope.line vs start_line/end_line mismatch in lsp-cli's shared.py — I'll file that separately on the lsp-skill repo since it's a CLI-side issue.

Fixes #39

lsp-cli 0.3.3+ imports from lsap.capability.doc and lsap.schema.doc,
but these modules were never included in the lsap-sdk 0.2.0 PyPI release.
This causes ModuleNotFoundError on any lsp command.

Cherry-picks the doc and symbol modules from the
copilot/rename-hover-api-to-doc-api branch to make the published
lsap-sdk compatible with published lsp-cli versions.

Fixes lsp-client#39
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

Successfully merging this pull request may close these issues.

lsap-sdk 0.2.0 on PyPI missing doc and symbol modules (breaks lsp-cli 0.3.3+)

1 participant