51 releases (16 stable)

Uses new Rust 2024

new 1.1.17 May 8, 2025
1.1.15 Mar 23, 2025
1.1.9 Dec 13, 2024
1.1.7 Nov 19, 2024
0.0.26 Nov 23, 2022

#4 in #aiken

Download history 56/week @ 2025-01-15 61/week @ 2025-01-22 19/week @ 2025-01-29 15/week @ 2025-02-05 46/week @ 2025-02-12 233/week @ 2025-02-19 60/week @ 2025-02-26 3/week @ 2025-03-05 7/week @ 2025-03-12 121/week @ 2025-03-19 36/week @ 2025-03-26 13/week @ 2025-04-02 119/week @ 2025-04-09 76/week @ 2025-04-16 20/week @ 2025-04-23 14/week @ 2025-04-30

232 downloads per month
Used in aiken

Apache-2.0

2.5MB
60K SLoC

Aiken Language Server Protocol (LSP)

The aiken command-line comes built-in with a Language Server implementing (part of) the Language Server Protocol.

Getting Started

General

Regardless of your IDE, you'll likely need the following information to configure your language client:

  • command: aiken lsp

    Note The command is hidden from the command-line help usage

  • root pattern: aiken.toml

  • filetype: aiken (.ak)

VsCode

Simply install the VSCode Aiken extension from the official marketplace.

NeoVim

If you're using NeoVim and using nvim-lspconfig then there's almost nothing to do as Aiken is directly supported. Simply follow the official instructions

Supported Capabilities

  • Document syncing and on-the-fly compilation
  • Document formatting (akin to aiken fmt)
  • Go-to definition
  • Type annotation on hover
  • Code actions providing quickfixes for a variety of errors:
    • aiken::check::unknown::variable
    • aiken::check::unknown::type
    • aiken::check::unknown::type_constructor
    • aiken::check::unknown::module

Dependencies

~37–55MB
~1M SLoC