Part 4 · Settings and reference / 4.3

Troubleshooting

The situations that most often stop people, sorted by symptom: it will not start, the file will not open, it will not save, the keys do nothing, the screen looks wrong, the text is garbled. Each entry points back at the chapter that explains it.

Reading time about 12 min Audience Everyone Prerequisites None Version v1.0 ・ 2026-08-26
4.3.1

How to use this chapter

Look up the symptom, not the feature.

Nearly all of Erya's feedback appears in the last row, so the first thing to do when something goes wrong is read that row to the end. It usually names the cause, and often the key that fixes it.

  1. Read the last row. Yellow reports, white waits for input, red waits for a decision (see 1.3.6).
  2. Read row 2. It lists the keys that work right now; if they are not the ones you expect, you are either on another screen or using another profile.
  3. Press Esc. When you have no idea where you are, it always goes one level back and never breaks anything.
  4. Press F1. To find the key for a feature, that list is the index.
SymptomSection
The program will not start4.3.2
A file will not open, or opens oddly4.3.3
It will not save4.3.4
A key does nothing4.3.5
The screen is broken, misaligned, or oddly coloured4.3.6
Text appears as garbage or question marks4.3.7
A whole feature seems to be missing4.3.8
4.3.2

It will not start

Problems that happen before you ever see Erya's screen.

What you seeWhat to do
command not found: eryaNot on PATH. Try the full path first; if that runs, it is a PATH problem (1.2.3).
Permission deniedchmod +x erya.
macOS cannot verify the developerQuarantine attribute: xattr -d com.apple.quarantine erya (1.2.3).
cannot execute binary fileWrong architecture. Check uname -m (1.2.2).
Must run in an interactive terminalNo pipes or redirection. Run it in the terminal (1.2.8).
Terminal is too smallAt least 24×6; in practice 80×24 (1.2.8).
Unsupported option: …A typo, or a filename starting with a dash — put -- first (1.2.6).
… is a directory, not a text filePass a file, or browse with Ctrl+O once started (1.2.5).
4.3.3

The file will not open

Or it opens as something other than you expected.

SymptomCause and fix
“Open failed: Permission denied”No read permission. Check with ls -l, and use sudo if appropriate.
It opens emptyThe file does not exist. Erya treats an unknown path as a new file and creates it on the first save (1.2.5). Check for a typo.
It opens as hexadecimalThe file contains NUL bytes and is treated as binary (3.3.5), or it is a large non-UTF-8 file (3.2.1).
“detected unsupported text encoding: UTF-16LE”UTF-16 and UTF-32 are unsupported. Convert to UTF-8 elsewhere first (3.1.1).
The status bar says “Large file read-only”The file is 64 MiB or larger: readable, not editable (3.2).
“report.txt is already open in a tab”Not an error. Erya switched to the existing tab rather than opening a second copy (2.1.1).
Only the first few lines are visibleScroll. Large files are read on demand (3.2.3).
4.3.4

It will not save

Saving is where mistakes cost most, so Erya is strict about it.

SymptomCause and fix
“Save failed: Permission denied”The file or its directory is not writable; the atomic save needs to write a temporary file there (2.1.6).
“Save failed: No such file or directory”A directory in the path does not exist; Erya does not create it (2.1.9).
“Cannot save a document as a directory”Save As was given a directory. Add a filename (2.1.5).
“Large files use read-only mode and cannot be edited”This mode has no save (3.2.2).
“This binary file is read-only and cannot be changed”A binary file of 64 MiB or more is streamed and read-only (3.3.8).
A red row asks about an external changeAnother program changed the file. If unsure press N, then F12 for a copy (2.1.7).
“Cannot switch to Big5: …”The target encoding cannot represent something in the text; Erya refuses rather than damage it (3.1.3).
4.3.5

A key does nothing

Four possibilities, most likely first.

  1. The action has no default key. Phrases, macros, block fill and shift, paragraph reflow, and “show cursor position” are all unbound in the default profile (2.4.8, 2.2.6). Press F1 and look for a blank key column.
  2. You are not on the editing screen. Each screen has its own keys; check row 2 (1.3.3).
  3. The mode forbids it. Large-file read-only blocks editing actions (3.2.2); the hexadecimal view of a text file is read-only (3.3.1). The message row says which.
  4. The terminal is not sending it. Most often with Alt combinations and modified arrows (4.1.1). Bind something you can actually press (4.1.4).
Testing what your terminal really sends

Bind the key you are unsure about to something visible — cursor_position prints the cursor location in the message row. If pressing it produces the message, the terminal is delivering the combination.

4.3.6

The screen looks wrong

Usually the terminal rather than Erya.

SymptomCause and fix
CJK text does not line up; the cursor driftsThe font is not monospaced, or full-width handling is inconsistent. Use a CJK monospace font (Sarasa, Noto Sans Mono CJK, and similar).
Box-drawing characters look wrongThe terminal or font lacks them. Change font, or use a terminal with better coverage.
The colours are unpleasant or unreadableErya uses the terminal's sixteen colours; the actual shades come from your theme. Adjust the theme.
Only one yellow line is visibleThe window is below 24×6; enlarge it and everything returns (1.2.8).
Leftover artefacts on screenAn unstable SSH connection or a redraw problem. Resizing the window forces a full repaint.
Long lines are cut offTurn on wrapping with Ctrl+L, or scroll with End (2.2.9).
The terminal misbehaves after exitingErya restores the terminal state normally; if something did go wrong, run reset.
4.3.7

The text is garbled

First decide whether it is the wrong encoding or a missing glyph.

The whole file is unreadable

The encoding was guessed wrong. Press F7 until it reads correctly, then save (3.1.2). The second-to-last status cell shows what is currently assumed.

Only some characters are boxes or question marks

The terminal font has no glyph for them. The file itself is fine — change font and they appear. Emoji and rare characters are the usual victims.

Do not save while it is garbled

If the garbling comes from a wrong encoding, saving writes it into the file permanently. Find the right encoding with F7 and check the text before saving. If you cannot, close the tab without saving — the file on disk is still intact.

4.3.8

A whole feature seems missing

With no menus, “I cannot find it” usually means “unbound” or “not supported here”.

What you are looking forThe actual situation
Select allDoes not exist. Use Ctrl+Home then Ctrl+Shift+End (2.2.4).
Replace with confirmationNo such mode; use F3 and F5 instead (2.3.4).
Replace within a selectionNot supported (2.3.7).
Regular-expression searchNot supported; matching is literal (2.3.1).
Split viewNone. To compare two files, use the comparison view (3.4).
Autosave or crash recoveryNeither exists. Only Ctrl+S (1.1.7).
Phrases, macros, block fillThey exist, but have no default key (2.4.8).
System clipboard integrationErya's clipboard is internal; use the terminal's copy and paste (2.2.7).
Git integration, plug-insNeither exists, and neither is planned as part of the scope (1.1.2).
4.3.9

Still stuck

Include these when you report the problem and it will be resolved much faster.

  1. The version: the output of erya --version.
  2. The platform: operating system and version, the architecture from uname -m, and which terminal program you use.
  3. The key profile: the name shown by F2, or your own keymap.toml.
  4. The exact message row: copy the whole sentence — it is the single most useful clue.
  5. The steps: from erya filename onwards, key by key.
  6. The file: size, encoding, and line endings, all of which the status bar shows.
Try the default profile first

Before reporting, run with ERYA_KEYMAP= erya or switch back to Erya Terminal Safe with F2 and try again. If the problem disappears, it is about key bindings — which narrows things down enormously.