Troubleshooting & Reinstall
Most Rasmalai problems fall into three buckets, and you should work them in this order: a diagnostic you can read, a stale project, or a stale toolchain. Nine times out of ten you never reach step three.
Read the diagnostic first
Every compiler error carries a code. Run the checker on your project to see it with a span pointing at the exact column:
rnx checkThen ask the toolchain what the code means:
rnx explain E108The explanation names the cause and the fix. The full directory of codes lives in the Language Manual. If a message looks wrong (a span pointing nowhere, a code with no entry), that is a compiler bug: skip to filing an issue and paste the output verbatim.
When output looks suspiciously terse, rerun with the pipeline log turned on:
rnx -v checkVerbose mode prints each pass as it runs, which tells you whether the failure is in parsing, typechecking, or code generation.
A healthy program to compare against. If this checks clean but your project does not, the problem is in your project, not the toolchain:
let total = [10, 20, 30].reduce(0, (acc, n) => acc + n);
assert(total == 60, "sum");Fix the project before the toolchain
Three commands resolve most project-level breakage. Run them in this order:
rnx fmt
rnx check
rnx testrnx fmt normalizes layout so you stop chasing whitespace ghosts. rnx check revalidates in milliseconds. rnx test reruns the suite so you know the fix did not move the failure elsewhere.
Dependencies went stale. A fetch that worked yesterday fails today, or a type from a git dependency suddenly mismatches. Dependencies resolve into Project.deplock; when the lockfile disagrees with the manifests, re-resolve from scratch:
rm Project.deplock
rnx fetch
rnx checkThe standard library cache went stale. An @std/* import fails with the registry named, or rnx doctor reports missing packages. The binary carries no library sources, so everything @std/* comes from the global cache (~/.cache/rnx, or $RNX_CACHE_HOME when set). Check it, then repair it:
rnx doctor
rnx doctor --repair-stdrnx download re-seeds the same cache from scratch: that is also the recovery when you installed while offline.
The editor disagrees with the terminal. Stale squiggles, completions from another era. The language server is almost always holding onto a closed project. Restart it through the setup command rather than reinstalling anything:
rnx setupThe editor setup chapter covers per-editor details.
Reinstall the toolchain cleanly
Reach for this when rnx --version itself fails, when the binary predates the error you are seeing, or when support asks you to rule out a corrupted install. The procedure is the same on every OS: remove the old install, then install fresh. Uninstallation is step one of a reinstall.
First, confirm what you have. On Linux and macOS:
rnx --version
which rnxOn Windows PowerShell:
rnx --version
Get-Command rnxLinux
Remove the old toolchain (default locations; adjust if you passed --prefix at install time):
rm -rf ~/.local/bin/rnx ~/.local/bin/rnx.bin ~/.local/bin/rnx.exe ~/.local/libThen reinstall:
curl -fsSL https://rasmalai.rovelstars.com/install.sh | shThe installer honors $XDG_BIN_HOME when it is set, otherwise it uses ~/.local. To put it elsewhere:
curl -fsSL https://rasmalai.rovelstars.com/install.sh | sh -s -- --prefix /usr/localmacOS
Same layout as Linux. ~/.local is the conventional home for CLI tools outside the App Store, and $XDG_BIN_HOME is honored the same way. Rasmalai ships Apple Silicon builds only; on Intel Macs, run the toolchain under Rosetta 2.
rm -rf ~/.local/bin/rnx ~/.local/bin/rnx.bin ~/.local/lib
curl -fsSL https://rasmalai.rovelstars.com/install.sh | shWindows
If you installed with the PowerShell installer (default %LOCALAPPDATA%\rnx), remove that directory and drop its bin from the user PATH:
Remove-Item $env:LOCALAPPDATA\rnx -Recurse -ForceThen open Settings → System → About → Advanced system settings → Environment Variables, edit the user Path, and delete the ...\rnx\bin entry. Then reinstall in a fresh terminal:
irm https://rasmalai.rovelstars.com/install.ps1 | iexIf you installed under Git Bash or MSYS2 instead, remove the Unix-side prefix and rerun the shell installer:
rm -rf ~/.local/bin/rnx* ~/.local/lib
curl -fsSL https://rasmalai.rovelstars.com/install.sh | shAfter any reinstall, verify in a new terminal (new, so PATH changes take effect):
rnx --versionFiling an issue
If the steps above did not fix it, file it. A clean repro against the latest toolchain is exactly what maintainers need. Include all four:
- The full
rnx --versionoutput, every line. It carries the commit hash, install kind, executable path, standard library source, and target triple. - Your OS and CPU (
uname -sm, or$PSVersionTableon Windows). - The smallest source file that still fails.
- The full command and its complete output (with
rnx -vif it is a compiler crash).
Open the issue at github.com/rovelstars/rasmalai. Reproducible reports get fixed first; "it broke" with no version gets asked for a version.