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.
Install a release package
Section titled “Install a release package”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:
sudo apt install ./flecha-0.4.0-linux-x86_64.debOn other supported Linux systems, use the checksum-verifying fallback
installer. It selects the matching portable archive and links all three tools
into ~/.local/bin:
curl --proto '=https' --tlsv1.2 -fsSLO \ https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.shsh install.shThe same fallback installer selects the Intel or Apple-silicon archive:
curl --proto '=https' --tlsv1.2 -fsSLO \ https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.shsh install.shThe 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.
Windows
Section titled “Windows”Download and run flecha-0.4.0-windows-x86_64.exe, or use the portable bundle
through PowerShell:
Invoke-WebRequest ` https://github.com/segfaultcafe/flecha/releases/download/v0.4.0/install.ps1 ` -OutFile install.ps1powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1The 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:
gh attestation verify flecha-0.4.0-windows-x86_64.exe \ --repo segfaultcafe/flechaNative MSVC and the windows-msvc ABI are not supported. The qualified Windows
target is MSYS2 UCRT64 with Clang and the MinGW ABI.
Package-manager channels
Section titled “Package-manager channels”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.
Verify the installed toolchain
Section titled “Verify the installed toolchain”Start a new terminal and confirm that the coordinated tools report 0.4.0:
flecha --versionlongbow --versioncommand -v flecha-lspThe 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.
Build from source
Section titled “Build from source”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.
git clone https://github.com/segfaultcafe/flecha.gitcd flechamake buildThe build writes flecha, longbow, and flecha-lsp to build/. Keep the
three executables from the same build.
build/flecha --versionbuild/longbow --versionbuild/flecha check examples/hello.flbuild/flecha build examples/hello.fl -o build/hello./build/helloEditor support
Section titled “Editor support”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.