-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Slow tldr -u (tldr --update) #94
Comments
Yeah, right now the update process is very "dumb" where it doesn't do any sort of check to see if the remote archive has been changed at all since the previous update, and so it always just downloads the entire zip (~5MB) and then unpacks it. I've made tldr-pages/tldr#9669 which would present a bit easier method for checking if a new zip is available without having to download the entire zip first, but failing that, we could always fallback to recording the latest commit at https://github.com/tldr-pages/tldr-pages.github.io, though that may have some false positives where the zip archive output is somewhat stable, and a given commit might have been from a documentation or tooling change, and not an actual pages change. |
I am new to tldr. I was following steps in man tldr: What is wrong? |
What installation instructions are you following? Could you send a url, screenshot, or copy-paste the instructions? And I recommend running If you are on Ubuntu, try running See https://github.com/tldr-pages/tldr#how-do-i-use-it for the suggested installation methods. FYI: This GitHub repo is about the c client, not the Python client |
$ git --version |
Can you point me to a page for tldr-py? |
|
On 6/5/23 4:35 PM, Osama Albahrani wrote:
Can you point me to a page for tldr-py?
https://github.com/tldr-pages/tldr-python-client
—
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASYRGH6ANAH67AFNEJNKAUTXJY7INANCNFSM6AAAAAATGSEZQA>.
You are receiving this because you commented.Message ID:
***@***.***>
Thanks, I had found that page but I can't post a message. I don't
understand github at all.
…--
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
|
On 6/5/23 4:04 PM, Osama Albahrani wrote:
Try running
|git --version |
—
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASYRGHZAYDNA5LM7CECRIQLXJY3V5ANCNFSM6AAAAAATGSEZQA>.
You are receiving this because you commented.Message ID:
***@***.***>
git --version
git version 2.34.1
***@***.***:~$ tldr --version
0.7.0
…--
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
|
On 6/5/23 4:10 PM, Osama Albahrani wrote:
Also, what installation instructions are you following?
And I recommend running |neofetch| to double check which distro you’re on.
If you are on Ubuntu, try running |tldr| in the terminal and run one
of the |apt| commands you get. It should let you directly use “tldr”
commands rather than cloning and running from source. If you don’t get
any suggested commands, try |sudo apt install tldr|.
FYI: This GitHub repo is about the c client, not the Python client
—
Reply to this email directly, view it on GitHub
<#94 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASYRGHY2G37N6BTNGSVPIALXJY4JRANCNFSM6AAAAAATGSEZQA>.
You are receiving this because you commented.Message ID:
***@***.***>
.-/+oossssoo+/-. ***@***.***
`:+ssssssssssssssssss+:` ---------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 22.04.2 LTS x86_64
.ossssssssssssssssssdMMMNysssso. Host: XPS 9320
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 5.19.0-43-generic
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 1 hour, 10 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 1759 (dpkg), 20
(snap)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.1.16
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 3840x2400
ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: GNOME 42.5
ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Mutter
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: Adwaita
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Yaru [GTK2/3]
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: Yaru [GTK2/3]
+sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: gnome-terminal
/ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: 12th Gen Intel i7-1260P
(16) @ 4.700GHz
.ossssssssssssssssssdMMMNysssso. GPU: Intel Alder Lake-P
-+sssssssssssssssssyyyssss+- Memory: 2355MiB / 15606MiB
`:+ssssssssssssssssss+:`
.-/+oossssoo+/-.
I can run tldr commands directly, but when I try to run tldr update, I
get errors. I was following the commands on the tldr man page.
…--
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
|
Do you get the same error if you install and use |
I'd be happy to help if you send a screenshot. I'm able to create an issue at https://github.com/tldr-pages/tldr-python-client/issues. If you don't particularly need the Python client, I recommend running |
On 6/5/23 5:32 PM, Osama Albahrani wrote:
|sudo apt search tldr|
sudo apt search tldr
Sorting... Done
Full Text Search... Done
libghc-tldr-dev/jammy 0.6.4-1build6.3 amd64
Haskell tldr client
libghc-tldr-doc/jammy,jammy 0.6.4-1build6.3 all
Haskell tldr client; documentation
libghc-tldr-prof/jammy 0.6.4-1build6.3 amd64
Haskell tldr client; profiling libraries
tldr/jammy 0.6.4-1build6.3 amd64
Haskell tldr client
tldr-py/jammy,jammy 0.7.0-4 all
Python client for tldr: simplified and community-driven man pages
Looks like Haskell client is my only other option.
…--
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
|
What happens if you remove the one you currently have, and then just run “tldr”? Ubuntu should give it options, iirc |
On 6/5/23 5:32 PM, Osama Albahrani wrote:
|sudo apt search tldr|
Yes, the Haskell client works correctly. Thank you, friend.
…--
FreeBSD freebsd.friedrich.org 13.2-RELEASE FreeBSD 13.2-RELEASE releng/13.2-n254617-525ecfdad597 GENERIC amd64
|
You're welcome, I'm glad you got it figured out. Just FYI, I just started a new Ubuntu VM and got the same options as you. I had no idea the main implementation was written in Haskell until now. I personally use
|
@FreeBSD-fan Neither clients in Ubuntu repos are official, if you plan on using it from repos then I would suggest a popular community client tealdeer. But it is better to install NodeJS and then install our official npm client listed in the README of main repo. |
Not sure if tealdeer is available in the repos, at least not for Ubuntu |
yeah, tealdeer is available in many distros but not Ubuntu, for some reason https://dbrgn.github.io/tealdeer/installing.html#package-managers |
Just now checked, it is available in Debian repos but nobody seems to have imported it for Ubuntu. Your best bet is to install the NPM client then. |
Expected behavior
tldr -u (tldr --update) should be quick if the local database is up to date.
Actual behavior
tldr takes ~4s and sometimes more. I am not sure if it takes more with an empty local database, couldn't figure out how to wipe it.
Log, debug output
Environment
macOS
tldr --version
)(Template adapted from https://github.com/tldr-pages/tldr-node-client/issues)
The text was updated successfully, but these errors were encountered: