Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
johnmasson opened this issue Jan 31, 2024 · 0 comments

Comments

@johnmasson
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant