Skip to main content

Language Server Protocol implementation for the Ivy formal specification language

Project description

ivy-lsp

Language Server Protocol (LSP) implementation for the Ivy formal specification language.

Features

  • Document Symbols -- outline view of types, objects, actions, modules, properties
  • Workspace Symbols -- search symbols across all .ivy files
  • Go-to-Definition -- jump to symbol definitions across include boundaries
  • Find References -- locate all usages of a symbol in the workspace
  • Completion -- context-aware suggestions (after ., include, keywords, symbols in scope)
  • Hover -- type signatures and symbol details on mouse hover
  • Diagnostics -- parse errors, missing #lang directive, unresolved includes, unmatched braces

Installation

pip install ivy-lsp

Or as an optional extra of panther_ms_ivy:

pip install panther_ms_ivy[lsp]

Usage

Start the language server over stdio:

python -m ivy_lsp

Or via the installed console script:

ivy_lsp

With VS Code

Install the Ivy Language extension, which automatically starts ivy-lsp for .ivy files.

With Serena

Add ivy to the languages list in .serena/project.yml:

languages:
  - python
  - ivy

Configuration

When running standalone (outside VS Code), configure workspace indexing via environment variables:

Variable Description
IVY_LSP_INCLUDE_PATHS Comma-separated directories to include (whitelist). When set, only these directories are scanned.
IVY_LSP_EXCLUDE_PATHS Comma-separated directories to exclude, additive to the hardcoded exclusion list.

When using the VS Code extension, these are set automatically from the ivy.lsp.includePaths and ivy.lsp.excludePaths settings.

Standalone example:

IVY_LSP_EXCLUDE_PATHS=submodules,test python -m ivy_lsp

Requirements

  • Python 3.10+
  • panther_ms_ivy (Ivy parser and compiler)
  • pygls (Python LSP framework)

Development

git clone https://github.com/ElNiak/ivy-lsp.git
cd ivy-lsp
pip install -e ".[dev]"
pytest tests/ -v

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ivy_lsp-0.5.5.tar.gz (136.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ivy_lsp-0.5.5-py3-none-any.whl (81.5 kB view details)

Uploaded Python 3

File details

Details for the file ivy_lsp-0.5.5.tar.gz.

File metadata

  • Download URL: ivy_lsp-0.5.5.tar.gz
  • Upload date:
  • Size: 136.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ivy_lsp-0.5.5.tar.gz
Algorithm Hash digest
SHA256 765fa7e617cbe9e826479a4e88a5c27e2e34a12d1f28d8a551eeebaf46086fc8
MD5 7de6126585cd1162e60375307632d66c
BLAKE2b-256 763a644848f807e0075e7170b9a554a0c652b61610ea8cdacc0ee29abb33340f

See more details on using hashes here.

File details

Details for the file ivy_lsp-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: ivy_lsp-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 81.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ivy_lsp-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6c99ad9fda5776054da171074beabb32f363dbb5336b9cdcde971669617cdb31
MD5 d76d0e9126b40408ad5458fbfdcce7bd
BLAKE2b-256 b82ea789495ff3de2b4bc6f11df1b4fec3f4ca5dd5e62e09e43bf989c488969a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page