Skip to content

History silently not saved between sessions if parent directory of history file doesn't exist #478

Closed

Description

@johnmasson

UTop was not saving history between sessions on my installation. After a bit of poking around, I discovered that UTop.history_file_name was set to '~/.local/state/utop-history' and that the '~/.local/state' directory did not exist. Manually creating the directory allowed UTop to start saving history between sessions.

I couldn't find any mention of the need to create this directory in documentation either for UTop or LTerm, and UTop doesn't print any warnings for this situation. It seems like it would be better to create the directory if it doesn't exist, or at least warn that history will not be saved.

Platform info:
Ubuntu 22.04.3 LTS on WSL (Windows 11)
OCaml version 5.1.1
UTop and all modules : latest versions from OPAM

Activity

  1. Octachron commented on Jul 22, 2025

    @Octachron
    Member

    This should be fixed by #484 in utop 2.16.0 .

  2. added 6 commits that reference this issue on Jul 25, 2025
    d130671
    fa28b60
    0a05a8b
    dd36d1e
    f43213a
    4fec5d4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions