Inmanta Language server
Provides the bridge between the Inmanta compiler and Visual Studio Code IDE, by implementing a Language Server.
For recent versions of inmanta-core (>=6), the server takes ownership of the Python environment it runs in and installs any
modules and module dependencies in that environment. For older versions of inmanta-core, a separate compiler venv is used,
which can be configured with the compilerVenv option.
This is alpha software, it may or may not work
Installation
-
mkvirtualenv -p python3 lstesting
-
pip install inmantals
-
install the inmanta extension via marketplace
-
change config for the extension (ctrl+,)
- set
inmanta.pythonPathto the virtual env you just created~/.virtualenvs/lstesting/bin/python3 - set
inmanta.ls.enabledtotrue
- set
Features
- navigate-to-definition on types
- docstring display on hover
- find references to a symbol (e.g. right-click > Find All References)
- supports working on an Inmanta project or an Inmanta module
Not supported yet
- work with incorrect models (needs to compile, all or nothing)
Troubleshooting
No module named x
If compilation fails with the message "no module named x" where x is a Python module, you might need to clean up the virtual environments used by the compiler. This issue can be caused by running the compiler from multiple different environments. To clean up the virtual environment, remove the .env directory in the Inmanta project directory as well as the compiler venv specified by the client, if it exists.
References
https://microsoft.github.io/language-server-protocol/specification
Metadata
Release files for inmantals 1.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| inmantals-1.8.0.tar.gz | 25.0 kB | Details |
Release files / inmantals-1.8.0.tar.gz
| Download URL | inmantals-1.8.0.tar.gz |
|---|---|
| Size | 25.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
734f55408a13c2411d1e2204c424fe38cb2b1701a654a516c9734a22dd0c1e4c
|
|
BLAKE2b-256 checksum How to use checksums |
f8e9713f4ea257baa68ea1201823966b2bb6af54eeca78e55dc651508c47514d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.11
|