Skip to content

Troubleshooting and FAQ

Answers to common Zlv questions: line errors, fractions instead of decimals, degrees vs radians, totals, exchange rates, lost sheets and Linux setup.

Quick answers to the questions people ask most often. If something here does not solve your problem, check the page for that feature in this guide.

A line shows an error. What should I check?

  • Unknown names. A word that is not a variable, function, unit or keyword is an error. Check the spelling, and use the same capitalization each time.
  • Spaces in names. Variable names cannot contain spaces: write monthly_rent, not monthly rent.
  • Text before a number. Coffee 4.50 is read as an unknown variable called Coffee. Write coffee = 4.50 or put the text in a comment.
  • Order. A line can only use variables defined above it.
  • Incompatible units. You cannot convert between unrelated units, such as kg to m.

An error only affects its own line and the lines that depend on it.

Live example
Edit the lines and press Run. Evaluated in your browser.

Evaluating…

Why do I see 75/2 instead of 37.5?

Exact mode is on: it shows divisions as fractions. Click Decimal in the status bar (or turn off Exact Mathematics Mode in Settings > Calculation) to see decimals, or right-click a result and choose Copy Decimal. New installs start in decimal mode.

sin(3.14) is not zero. Why?

Trigonometric functions use degrees by default, so sin(90) is 1. Switch to radians in Settings > Calculation, or in the desktop app write sin(1 rad).

Live example
Edit the lines and press Run. Evaluated in your browser.

Evaluating…

My sum includes numbers I did not expect

Aggregates such as sum and average add up the current block: the lines since the last blank line. Insert a blank line to start a new block. Also note that a line containing only total is always the block sum, even if you have a variable named total. See Totals and aggregates.

A feature works in the desktop app but not in the browser

The web app's lighter TypeScript engine supports a smaller set of features than the full Rust engine. Totals, dates and time zones, number bases, temperature, area and volume units and complex numbers need the Rust engine. Examples in this guide that need it are marked as desktop examples.

Exchange rates look out of date

  • Check the status bar: it shows whether rates are live or cached and when they were last updated.
  • Press Ctrl+Shift+R to refresh now. Rates refresh automatically on the interval set in Settings > Currency & FX (60 minutes by default) while you are online. When rates are older than a day, the status bar says how old they are.
  • If you pinned a rate in Settings > Currency & FX, the pinned rate always wins. Remove it to use downloaded rates.
  • The web app uses built-in rates, not live ones.

Where are my sheets? Did I lose my work?

Open tabs are saved automatically to the Zlv data folder (%LOCALAPPDATA%\.zlv on Windows, ~/.zlv on Linux) and come back when you restart. If you closed a tab, press Ctrl+Shift+T in the editor to restore it; Zlv remembers up to 50 closed tabs. If you cleared a sheet with Ctrl+L, press Ctrl+Z or the Undo button in the message that appears.

Zlv also keeps the last five versions of your sheets file as scratchpads.json.bak1 to .bak5 in the same folder. If the file is ever damaged, Zlv restores the newest good copy automatically and tells you.

In the web app, sheets live in your browser's storage. Clearing site data, or using a private window, removes them.

How do I update Zlv, or report a problem?

Zlv checks once a day whether a newer version is available and shows a message with a Download button. The check only reads zlv.app/version.json; nothing about you or your sheets is sent. Run Check for updates from the command palette (Ctrl+K) to check now, or Turn off automatic update check.

To report a problem, run Copy diagnostics from the command palette and paste the result into your message: it lists the Zlv version, your operating system, where Zlv keeps its data and the last few unexpected errors (kept only on your device, in errors.log).

Ctrl+S did not ask where to save

The tab is linked to a file, so Ctrl+S saved to that file directly. Use Ctrl+Shift+S to save a copy elsewhere or in another format.

"Could not write to" a file

The folder may be read-only or the file may be open in another program. Zlv then opens the save dialog so you can pick another location.

The Browse button does nothing on Linux

The file dialogs on Linux use zenity. Install it from your distribution's packages, or type the full path into the dialog instead.

Zlv does not start on Linux

Zlv needs GTK 3 and OpenGL ES. On Debian or Ubuntu run sudo apt install libgtk-3-0 libegl1 libgles2, then start Zlv again with ./zlv from the extracted folder. Make sure you extracted the whole archive and kept the files together.

Is there a Mac version?

Not yet. Use the web app in any modern browser on macOS.

Are my calculations sent anywhere?

No. Calculations run on your device in both the desktop app and the web app. The desktop app goes online to download exchange rates.

All guides