Troubleshooting
When something does not work as expected, the log file is the first place to look.
Open the log
Section titled “Open the log”The quickest way is from the app: About Cogno → Open log.
The file lives here:
| Platform | Path |
|---|---|
| macOS | ~/Library/Logs/rocks.cogno/cogno.log |
| Windows | %LOCALAPPDATA%\rocks.cogno\logs\cogno.log |
| Linux | ~/.local/share/rocks.cogno/logs/cogno.log |
Get more detail
Section titled “Get more detail”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.
# For one launch onlyCOGNO_LOG_LEVEL=debug cogno
# Permanently: add to ~/.zshrc or ~/.bashrcexport COGNO_LOG_LEVEL=debugAt 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.
Check your config
Section titled “Check your config”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:
cogno config path # which file is in usecogno config show # the contents of that filecogno config get font.size # the effective value of one settingSee the CLI page for all commands.
Start without restoring the last session
Section titled “Start without restoring the last session”If Cogno has trouble bringing back your last session, start it once without restoring:
cogno --set general.session_restore.enabled=falseThe saved session stays. To remove it, run Delete Restore Data from the command palette. See Workspaces.
Umlauts, accents or emoji are broken
Section titled “Umlauts, accents or emoji are broken”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:
echo $LANG # should end in .UTF-8, for example en_US.UTF-8locale charmap # should print UTF-8If 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-8Open a new terminal afterwards.
Report a problem
Section titled “Report a problem”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.