Troubleshooting
luca: command not found
The binary installed, but your shell cannot find it.
- macOS/Linux: run
export PATH="$HOME/.cargo/bin:$PATH", thenluca --version. If that works, make it permanent by adding that line to~/.zshrc(macOS default shell) or~/.bashrc, then restart the terminal. - Windows:
%USERPROFILE%\.cargo\binmust be in your userPATH(Settings → search "environment variables" → Environment Variables). Restart the terminal (or Windows Terminal) afterwards — open terminals do not pick upPATHchanges. - VS Code terminals inherit
PATHfrom how VS Code was launched. Iflucaworks in Terminal but not in VS Code, restart VS Code (or set theluca.cliPathsetting — see VS Code extension §3).
Installer says Rust/cargo is missing
The installer installs Rust via rustup automatically. If that fails:
- Check network access to
sh.rustup.rs(macOS/Linux) orwin.rustup.rs(Windows). - Install Rust manually from rustup.rs, restart the terminal, confirm
cargo --version, then re-run the installer.
git clone asks for a login / fails
The repository is public, so anonymous cloning should work: git clone --depth 1 https://github.com/LucaEcosystem/luca-code.git. If it asks for credentials, a proxy or corporate network is usually intercepting HTTPS; configure git for your proxy, or download the source archive from the repository page and run bash scripts/install.sh (or .\scripts\install.ps1) inside the checkout.
Build (cargo install) fails
- Make sure you are on a recent stable Rust:
rustup update, then re-run. - On Linux, a C linker is required (
build-essentialon Debian/Ubuntu, "Development Tools" on Fedora). Install it and re-run. - Paste the full error output when asking for help — the first
error:line matters most.
Luca Code source files must use the .lucc extension
You ran luca on a file without the .lucc suffix (e.g. luca hello.txt). Rename it to hello.lucc and re-run.
Could not read <file>: ...
The path is wrong or the file is unreadable. Check spelling, and remember paths are relative to where you run luca. Module imports (import Name → Name.lucc) resolve from the program's own directory first, then the working directory.
luca check (validate without running)
luca check <file.lucc> [--format human|json] parses the file plus its transitive import graph and reports Error at line:column: ... (human, one per line) or [{"message":"...","line":N,"column":M}] (JSON, [] when valid). It never executes application code: print produces no output, ask never prompts, File.write/append/delete never touch the filesystem, System.exit never terminates the checker.
Exit codes: 0 valid, 1 validation errors, 2 usage or internal failure. Internal failures print luca check: ... to stderr (e.g. entry file unreadable) and never appear as JSON diagnostics. Dynamic errors (call arity on runtime values, division by zero on computed values, ask conversion of real input) only appear when you run the program with luca <file.lucc>.
Error at line:column: ...
This is a Luca program error, not an install problem. Read it as what + where (line:column). Common first ones:
'x' is not declared— typo, or the binding is declared later (programs run top to bottom).print accepts exactly one argument— use interpolation:print("a and {b}").Expected ...— a syntax slip near the reported spot (often a missing:or wrong indentation; blocks use:+ indentation).Block nesting is too deep/Expression nesting is too deep— the source nests more than 32 levels; flatten the code (the limit is far above ordinary programs).Recursion limit exceeded— a function called itself more than 64 levels deep; add a base case or reduce the depth.
See your first program and the language reference.
Extension shows no highlighting / commands missing
- Confirm the file ends in
.luccand VS Code shows "Luca Code" in the bottom-right language picker. If not, reinstall the extension from the Marketplace (VS Code extension §1). - Confirm the extension is enabled for your workspace (Extensions view → Luca Code → Enable).
Still stuck
Re-run with the exact failing command and keep the full output (including the luca installer: lines). That output is what a helper needs first.
Known limitations
Luca Code 1.0 Beta implements the complete 1.0 language described in the language reference. This section lists what is deliberately not implemented, or is bounded by an explicit safety limit, so the documentation never promises more than the binary does. If something here blocks you, open an issue with the smallest program that shows the problem. "Missing feature" and "defect" are different: this section is about the former.
Implementation shape
- Interpreter only. Programs run in the Rust reference interpreter (
lexer → parser → AST → checker/interpreter). There is no LLVM backend, JIT, or native compiler, and no plan to add one in the 1.0 stabilization line. - Zero external dependencies. The crate builds with the Rust standard library alone; there is no package manager, dependency resolver, or lockfile beyond the toolchain's own
Cargo.lock. - Built-ins are compiled in.
Math,Text,File, andSystemlive in the interpreter. Thestd/andcompiler/folders in a local checkout are empty placeholders and are not part of the build.
Language boundaries
- No casts or conversion functions.
change var name (type) = valueis the only way to change a stored type; there are noint(),str(), ordec()calls and no implicit coercion. - No overloading or keyword arguments. One function per name per scope; calls are positional. The
field = valueform belongs toraise. - No
let, no ranges, no exponent operator. Usefor N times,for item from collection, andMath.pow. - Single-line string literals.
\nis an escape inside a quoted string; raw newlines are rejected. Interpolation accepts a variable name only ({name}), not arbitrary expressions. - ASCII identifiers. Names use ASCII letters, digits, and
_(not starting with a digit). Unicode is fully supported inside string values; string.lengthcounts Unicode scalar values, not grapheme clusters. - Fixed 28-digit decimal scale. Literals with more than 28 fractional digits are rejected. A non-terminating division is truncated (not rounded) at 28 fractional digits:
1 / 3prints0.3333333333333333333333333333. This is exact decimal arithmetic, not arbitrary-precision rationals. - No truthiness. Conditions must be
bool; there is no implicit conversion from numbers or strings.
Safety limits (not language rules)
- Parser nesting: 32 levels. Deeper blocks or grouped expressions report
Block nesting is too deep/Expression nesting is too deepinstead of exhausting the interpreter's stack. - Function recursion: 64 frames. Deeper recursion reports
Recursion limit exceeded; the error is capturable withtry to. luca checkimport walk: 100 modules, 32 levels. Pathological import graphs reportToo many modules/Import depth exceeded.
These limits are deliberately far above ordinary programs; they exist so pathological input produces a diagnostic instead of aborting the process.
Tooling boundaries
luca checkis syntax + import-graph validation. It does not statically type-check expressions, so errors such asdef var age (int) = "hi"are reported only when the program runs. Dynamic errors (arity on runtime values, division by zero on computed values, invalidaskinput) likewise need a run.- Module resolution is local.
import Namelooks forName.luccin the program's own directory, then the working directory. There are no package registries, search-path flags, aliases, or remote imports. - No REPL, debugger, formatter, profiler, or language server. The CLI runs and checks programs; the VS Code extension adds highlighting, snippets, run, check, and clickable diagnostics.
- No async, threads, or networking. The standard library is synchronous and local. Host processes and sockets are not exposed.
File.*is unsandboxed. A program has the filesystem permissions of the user running it. There is no path allowlist or size cap; only run scripts you trust.luca checknever touches the filesystem.System.exitends the host process. Embedders should useInterpreter::run_outcome, which returns the exit request as data instead of terminating.
Platforms and packaging
- CI runs the test suite on Linux, macOS, and Windows. The install scripts are smoke-tested there; untested shells or unusual permissions setups may still need the manual PATH steps in troubleshooting.
- The VS Code extension and the CLI share the
1.0.4package version while the product identity stays Luca Code 1.0 Beta. A version bump does not imply a language change.
See also: language reference, CLI reference.