Inmanta Language Server
Project description
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.pythonPath
to the virtual env you just created~/.virtualenvs/lstesting/bin/python3
- set
inmanta.ls.enabled
totrue
- 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file inmantals-1.6.0.tar.gz
.
File metadata
- Download URL: inmantals-1.6.0.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf3963fc9bd78f7abda30199b603f4a02fa7e03080db511faa432f21291e124 |
|
MD5 | 7d5654c220570790a8271fe357ad5e61 |
|
BLAKE2b-256 | 66e9962a30cb8595e3674c824736d60019845f4f4fe93efb7447fea3a40406df |