nova-cli 0.3.2

The Nova programming language: compiler, formatter, language server, package manager and documentation generator
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! `nova lsp`: the language server, over stdin and stdout (spec
//! `docs/superpowers/specs/2026-10-08-phase-3-2-lsp-core-design.md` ยง6).

/// Serve until the client says `exit`, and return the exit code: 0 after
/// `shutdown` then `exit`, and 1 otherwise.
pub fn run() -> i32 {
    match nova_lsp::run() {
        Ok(code) => code,
        Err(e) => {
            eprintln!("error: nova lsp: {e:#}");
            1
        }
    }
}