Skip to content

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

Description

@bushnelb

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:

  1. Creating lsap/schema/doc.py and lsap/capability/doc.py based on the pattern from the copilot branch
  2. Fixing the LineScope.linestart_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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions