Skip to content

Install Novis

Novis is one program, nvs. It checks, compiles, runs, tests and serves your code. You download nvs or build it from source. Then you put it on your PATH.

The current release is 0.0.6. Novis is Pre-Alpha. Any release can change the language, and Novis is not ready for production use.

Each release has an archive of nvs for each platform:

The file SHA256SUMS has the checksum of each archive. Check a release archive shows how to use it. The release page lists every file of the release.

  1. Download the archive for your platform, and unpack it. The archive has a folder with nvs in it.

    Right-click the .zip file and choose Extract All.

  2. Copy nvs to a folder that is on your PATH, as step 4 of Build from source shows.

  3. Check that it runs. The command prints the version of nvs.

    Terminal window
    nvs --version

The extension adds colours, errors and completion for .nvs files. It is in the VS Code Marketplace. In VS Code, open the Extensions view, search for Novis and install Novis-Lang. This command does the same from a terminal:

Terminal window
code --install-extension novis-lang.nvs

VSCodium, Cursor and some other editors install extensions from Open VSX. The extension is there too. Search for Novis in the Extensions view of your editor.

Each release also has the extension as a file: nvs-0.0.6.vsix. This command installs the file you downloaded:

Terminal window
code --install-extension nvs-0.0.6.vsix

Install the extension shows both ways step by step.

Each release also publishes an image with nvs in it:

Terminal window
docker pull ghcr.io/novis-lang/novis:0.0.6

Docker shows how to serve an application with it.

You need Rust, which you install with rustup. You do not need to choose a Rust version. The repository has a file, rust-toolchain.toml, that names the version. rustup installs that version the first time you build.

Some parts of the build compile C code, so you also need a C compiler:

Install the Visual Studio Build Tools with the workload Desktop development with C++. The rustup installer offers to do this for you.

  1. Get the source code:

    Terminal window
    git clone https://github.com/novis-lang/novis.git novis
    cd novis
  2. Build nvs. This takes several minutes the first time.

    Terminal window
    cargo build --release -p nvs-cli
  3. Check that it runs. The command prints the version of nvs.

    Terminal window
    .\target\release\nvs.exe --version
  4. Copy the program to a folder that is on your PATH. Then you can type nvs in any folder.

    Copy target\release\nvs.exe to a folder such as C:\Tools. Then add that folder to the Path variable in Settings > System > About > Advanced system settings > Environment Variables.

Each release has the file SHA256SUMS with the checksum of each archive. Each archive also has a signed statement. It says that the release workflow of the Novis repository built the archive, and from which commit.

These two commands check an archive. The first one needs the GitHub CLI, gh. Download SHA256SUMS into the folder of the archive first.

Terminal window
gh attestation verify nvs-0.0.6-linux-x86_64.tar.gz --repo novis-lang/novis
sha256sum --check --ignore-missing SHA256SUMS

The first command checks the signed statement. The second command checks the archive against its checksum in SHA256SUMS.

Command What it does
nvs run file.nvs checks a program, then compiles and runs it
nvs check file.nvs checks a program and prints every error, without running it
nvs test file.nvs runs the #[Test] methods in a program
nvs serve file.nvs runs a web application until you stop it
nvs fmt file.nvs rewrites a file in the standard layout

nvs help <command> prints the help for one command.