Language server backing the NEML2 VS Code extension
Project description
NEML2 Language Support
VS Code extension providing language support for NEML2 input files.
Features
- Completion — type names for
type =assignments, and option names with inline type hints inside typed blocks - Hover documentation — docstrings for types and options shown on hover
- Format on save — re-indents the document consistently via the
nmhitformatter
Requirements
A Python environment with the neml2-langserv package installed:
pip install neml2-langserv
That single install pulls in everything the language server needs — neml2 (≥ 2.1.4) for the type/option metadata, nmhit (≥ 0.1.2) for the formatter, and pygls for the LSP transport.
The extension runs the server with whichever Python interpreter is selected in the Python extension. If neml2-langserv is not installed in that interpreter on first activation, the extension prompts you to install it.
Setup
NEML2 input files share the .i extension with MOOSE input files. To tell the extension that a file is a NEML2 input, add the following as the first line:
# neml2
Files without this marker are treated as MOOSE input (or plain text) and the NEML2 language server will not activate for them.
Format on save
Enable the built-in VS Code setting to auto-format on save:
// .vscode/settings.json
{
"[neml2]": {
"editor.formatOnSave": true
}
}
MOOSE compatibility
This extension does not claim the .i extension globally, so existing MOOSE workflows are unaffected. Only files whose first line matches # neml2 (optionally followed by other text) are switched to the neml2 language mode.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neml2_langserv-0.1.1.tar.gz.
File metadata
- Download URL: neml2_langserv-0.1.1.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c481a6de00bb0db62f5f28370eb2f83abc16c1f8e89ff8f9e0bd2617923065ca
|
|
| MD5 |
e3fcdeb285aabe09ef3608ee361c2eeb
|
|
| BLAKE2b-256 |
bbef91d2d78c55374cb108a1fecc1a77872b8b69146ecc0de7e72d2d5c2015cf
|
Provenance
The following attestation bundles were made for neml2_langserv-0.1.1.tar.gz:
Publisher:
publish.yml on applied-material-modeling/neml2-langserv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neml2_langserv-0.1.1.tar.gz -
Subject digest:
c481a6de00bb0db62f5f28370eb2f83abc16c1f8e89ff8f9e0bd2617923065ca - Sigstore transparency entry: 1567551412
- Sigstore integration time:
-
Permalink:
applied-material-modeling/neml2-langserv@01b922ecd994a4fd93a049339878a49beecacfba -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/applied-material-modeling
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@01b922ecd994a4fd93a049339878a49beecacfba -
Trigger Event:
release
-
Statement type:
File details
Details for the file neml2_langserv-0.1.1-py3-none-any.whl.
File metadata
- Download URL: neml2_langserv-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03a2105d6cd65a6e477c2fb0e9d89e47480a0445cfe2899ac8ea67b1468ea21b
|
|
| MD5 |
f7ebb209ed71f4ea6430b35f11133b5d
|
|
| BLAKE2b-256 |
fdbf247dc319cbd46cdc13f18ae5d4dc31f74fc25ac2cfc1d494ffe032efa409
|
Provenance
The following attestation bundles were made for neml2_langserv-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on applied-material-modeling/neml2-langserv
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
neml2_langserv-0.1.1-py3-none-any.whl -
Subject digest:
03a2105d6cd65a6e477c2fb0e9d89e47480a0445cfe2899ac8ea67b1468ea21b - Sigstore transparency entry: 1567551475
- Sigstore integration time:
-
Permalink:
applied-material-modeling/neml2-langserv@01b922ecd994a4fd93a049339878a49beecacfba -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/applied-material-modeling
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@01b922ecd994a4fd93a049339878a49beecacfba -
Trigger Event:
release
-
Statement type: