Please note: This repository is currently unmaintained. If you'd like to add features or fix issues, consider creating a fork. Please be aware that we are not going to be updating issues or pull requests on this repository.
A frontend-independent language server for AssemblyScript.
Make sure you have Nix installed, then, run:
nix-env -i asls -f https://github.com/saulecabrera/asls/tarball/master/
this will make the language server available as a self-contained executable.
Verify that everything was installed correctly with:
which asls
asls --version
To update the language server to the latest release, run:
nix-env -i asls -f https://github.com/saulecabrera/asls/tarball/master/
If for some reason you want to install a previous version of the language server, run:
nix-env -i asls -f https://github.com/saulecabrera/asls/tarball/v<yourversion>/
The language server can be used from within any editor front-end that implements the Language Server Protocol.
To start the server and to start accepting TCP connections on a given port, run:
asls --port PORT
If no port is given, port 7658 is taken as default.
For a detailed explanation of the commands, run:
asls -h
This project intends to support the following features, in the following order:
asls requires:
If you don't want to worry about installing the required dependencies for development, you can opt to use nix and direnv. This will ensure that when switching to the directory of the project, the correct dependencies will be loaded.
Requirements:
direnv allow
in this directoryelixir --version
and verify that the version reported is 1.10.4
To build the language server:
make mix
to install dependenciesmake build
to build the language server binary, it will be placed under
bin/asls
Create a dedicated commit with
mix.exs
with the right versionmake
. The result of running make is a hash used for default.nix
. Update the hash and the version in default.nix
v{major}.{minor}.{patch}
bin.tar.gz