Skip to content
v0.5.0

Troubleshooting

When something does not work as expected, the log file is the first place to look.

The quickest way is from the app: About Cogno → Open log.

The file lives here:

PlatformPath
macOS~/Library/Logs/rocks.cogno/cogno.log
Windows%LOCALAPPDATA%\rocks.cogno\logs\cogno.log
Linux~/.local/share/rocks.cogno/logs/cogno.log

The default log level is info. Set the COGNO_LOG_LEVEL environment variable before starting Cogno to change it. Valid values are error, warn, info, debug and trace.

Terminal window
# For one launch only
COGNO_LOG_LEVEL=debug cogno
# Permanently: add to ~/.zshrc or ~/.bashrc
export COGNO_LOG_LEVEL=debug

At debug, every shell Cogno starts also writes a short start-up log: which files it loaded and how it set up PATH. These go to the folder shell-bootstrap next to cogno.log and are removed after a week. If a shell starts differently in Cogno than in another terminal, that log shows why.

Cogno shows a warning for settings it does not know and an error for invalid values. If a setting still seems to have no effect, these commands show what Cogno actually reads:

Terminal window
cogno config path # which file is in use
cogno config show # the contents of that file
cogno config get font.size # the effective value of one setting

See the CLI page for all commands.

If Cogno has trouble bringing back your last session, start it once without restoring:

Terminal window
cogno --set general.session_restore.enabled=false

The saved session stays. To remove it, run Delete Restore Data from the command palette. See Workspaces.

Typical signs: a pasted ü shows up as �, or text copied in the terminal arrives in other programs as gr√ºn instead of grün.

The cause is the locale of the shell, not the clipboard: the shell has to run with a UTF-8 locale. Check it in a Cogno terminal:

Terminal window
echo $LANG # should end in .UTF-8, for example en_US.UTF-8
locale charmap # should print UTF-8

If the two disagree, trust locale charmap. A LANG your system does not have looks right but does not work. On macOS, en_DE.UTF-8 (English with the region Germany) is such a case.

If Cogno itself was started without LANG, as it is from the Dock or Finder, it sets one for the shell. If the value is still wrong, check whether your shell startup files (.zshrc, .zprofile, .bashrc) set LANG or LC_ALL, or set it for the profile in your config:

shell.profiles.zsh.env.LANG = en_US.UTF-8

Open a new terminal afterwards.

Open an issue on GitHub or ask in the Cogno Discord. Include your operating system, your shell, and the relevant part of the log file.