0.1.0-pre-release
Pre-release
Pre-release
Initial Release 0.1.0
Features
- A cli
lammps-analyserthat checks input scripts - A language server
lmp-lspthat performs these checks within the text editor. - Supported checks:
- Warnings about unused variables
- Errors if variables/fixes/computes are used but not defined.
- Commands have valid names
- That fix/compute/pair styles are valid.
- The number of arguments for fix and compute commands.
- Fully checks arguments for the npt/nph/npt fixes.
- Warns if computes fixes or variables have been defined multiple times before a
runcommand.
- The LSP provides:
- Go-to definition and references for variables, computes and fixes.
- Hover documentation for commands, fixes and computes.
- Checks your script as you type and reports errors and warnings
- Based of LAMMPS 27June2024 Feature Release
Internal Features
- Scripts to convert LAMMPS documentation files to Markdown and extract
fix,pairandcomputestyles - A parser that converts a
tree-sittertree of the script into an abstract syntax tree.
Install lammps-analyser 0.1.0-pre-release
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/chappertron/lammps-analyser/releases/download/0.1.0-pre-release/lammps-analyser-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy ByPass -c "irm https://github.com/chappertron/lammps-analyser/releases/download/0.1.0-pre-release/lammps-analyser-installer.ps1 | iex"Download lammps-analyser 0.1.0-pre-release
| File | Platform | Checksum |
|---|---|---|
| lammps-analyser-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| lammps-analyser-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| lammps-analyser-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| lammps-analyser-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
What's Changed
- Use simplified treesitter grammar and simplify error handling by @chappertron in #12
- feat: refactor so nodes are always valid utf-8 by @chappertron in #16
- Refactor modules and internals by @chappertron in #17
New Contributors
- @chappertron made their first contribution in #12
Full Changelog: https://github.com/chappertron/lammps-analyser/commits/0.1.0-pre-release