dbrgn / tealdeer

A very fast implementation of tldr in Rust.
https://dbrgn.github.io/tealdeer/
Apache License 2.0
4.06k stars 123 forks source link

opensuse (tealdeer) can't find cache after updating #329

Closed tckosvic closed 11 months ago

tckosvic commented 1 year ago

Installed tldr as tealdeer from opensuse 15.4 software. tldr runs upon call for cache update. there are files in /home/username/.cache/tealdeer directory. In a subdirectory named "tldr-main" there are10 or so subdirectories. I assume this is the cache.

When running, e.g., tldr tar as an example, response is "cache not found; run tldr --update. That has already been run. Need a way to have tldr find the cache it has updated.

thanks, tom kosvic

dbrgn commented 1 year ago

What is the output of tldr --show-paths?

Which version are you using (tldr --version)?

tckosvic commented 1 year ago

See below: `tom@mydesktop:~> tldr --show-paths Unknown flag: '--show-paths'

Usage:

tldr [options] <command>...
tldr [options]

tom@mydesktop:~> ` hope this helps, tom kosvic

tckosvic commented 1 year ago

See below for 2nd response: `tom@mydesktop:~> tldr --version

tealdeer v1.4.1 (Linux) tom@mydesktop:~> ` thanks, tom kosvic

dbrgn commented 1 year ago

Ah, that's an old version. The current version is 1.6.1.

Can you show the output of tldr --config-path in that case?

tckosvic commented 1 year ago

See below:

tom@mydesktop:~> tldr --config-path Config path is: /home/tom/.config/tealdeer/config.toml tom@mydesktop:~>

tckosvic commented 1 year ago

See below again. Dont know where strikeout came from:

`tom@mydesktop:~> tldr --config-path Config path is: /home/tom/.config/tealdeer/config.toml

tom@mydesktop:~> `

tckosvic commented 1 year ago

Perhaps, I should compile it if the openSUSE packaged version is too out of date

niklasmohrin commented 1 year ago

Your old version still expects the name "master" for the pages from the repository, but the download gives you the new name "main". Updating should fix the issue :)

niklasmohrin commented 12 months ago

@tckosvic Did recompiling fix your issue? If so, we can close the issue