Skip to content

Install Flecha

Flecha 0.4.0 ships the compiler, Longbow, flecha-lsp, runtime, standard library, VS Code extension, and Neovim plugin as one coordinated toolchain. Use the tagged release rather than master when you need a repeatable install.

Download Flecha v0.4.0 from GitHub, then read the release and upgrade notes for language changes and the distribution guide for channel status and verification details.

Every installation contains flecha, longbow, and flecha-lsp. Release assets are qualified on Ubuntu 24.04 x86-64, Windows Server 2025 x86-64 with MSYS2 UCRT64, and macOS 15 on Intel and Apple silicon.

On Debian or Ubuntu, download the .deb and install it with:

Terminal window
sudo apt install ./flecha-0.4.0-linux-x86_64.deb

On other supported Linux systems, use the checksum-verifying fallback installer. It selects the matching portable archive and links all three tools into ~/.local/bin:

Terminal window
curl --proto '=https' --tlsv1.2 -fsSLO \
https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.sh
sh install.sh

The same fallback installer selects the Intel or Apple-silicon archive:

Terminal window
curl --proto '=https' --tlsv1.2 -fsSLO \
https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.sh
sh install.sh

The release requires the matching Xcode command-line tools and macOS SDK for native linking. The Homebrew formula is promoted from the final release hashes after the GitHub release completes.

Download and run flecha-0.4.0-windows-x86_64.exe, or use the portable bundle through PowerShell:

Terminal window
Invoke-WebRequest `
https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.ps1 `
-OutFile install.ps1
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1

The v0.4.0 Windows executables and NSIS installer are not Authenticode-signed, so SmartScreen may show an unrecognized-app warning and managed systems may block them. Verify the downloaded installer before running it:

Terminal window
gh attestation verify flecha-0.4.0-windows-x86_64.exe \
--repo segfaultcafe/flecha

Native MSVC and the windows-msvc ABI are not supported. The qualified Windows target is MSYS2 UCRT64 with Clang and the MinGW ABI.

Homebrew, WinGet, MSYS2 UCRT64, the Flecha APT repository, and the AUR flecha-bin package consume the exact GitHub release archives. Their recipes are promoted only after the release workflow has produced final checksums, so consult the distribution guide before using a channel command. The shell and PowerShell installers above remain the fallback.

Start a new terminal and confirm that the coordinated tools report 0.4.0:

Terminal window
flecha --version
longbow --version
command -v flecha-lsp

The compiler and Longbow report 0.4.0. The final command locates flecha-lsp, which is installed beside the compiler and exercised through its stdio protocol during release qualification.

Source builds require CMake 3.20 or newer, a supported C++23 compiler, LLVM 17–23 development libraries, Ninja or another CMake generator, and Git. See the supported toolchains for the exact matrix.

Terminal window
git clone https://github.com/segfaultcafe/flecha.git
cd flecha
make build

The build writes flecha, longbow, and flecha-lsp to build/. Keep the three executables from the same build.

Terminal window
build/flecha --version
build/longbow --version
build/flecha check examples/hello.fl
build/flecha build examples/hello.fl -o build/hello
./build/hello

Install flecha-language-0.4.0.vsix from the GitHub release in Visual Studio Code, or copy the bundled Neovim plugin. Both start the matching flecha-lsp automatically and provide diagnostics, hover, definition, references, completion, rename, and semantic tokens. The extension discovers the compiler and server as a matching pair, including after a release bundle is relocated.

Follow the editor installation guide for VSIX verification, Neovim paths, overrides, tracing, and project discovery.

Continue to Learn Flecha, browse the runnable examples, or review what changed in 0.4.0.