46 releases (11 stable)

1.1.10 Jan 21, 2025
1.1.9 Dec 13, 2024
1.1.7 Nov 19, 2024
1.0.31-alpha Jul 25, 2024
0.0.26 Nov 23, 2022

#31 in #cardano

Download history 20/week @ 2024-10-11 195/week @ 2024-10-18 20/week @ 2024-10-25 44/week @ 2024-11-01 116/week @ 2024-11-08 199/week @ 2024-11-15 109/week @ 2024-11-22 25/week @ 2024-11-29 18/week @ 2024-12-06 278/week @ 2024-12-13 7/week @ 2024-12-20 1/week @ 2025-01-03 5/week @ 2025-01-10 95/week @ 2025-01-17 22/week @ 2025-01-24

123 downloads per month
Used in aiken

Apache-2.0

2.5MB
57K 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–54MB
~1M SLoC