You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for missing this issue. We already do first search for the OS specific page before falling back to common. However, as indicated in #118, we make network requests for each searched location. Instead, as stated there, we should check if we have any matching files on the filesystem first and use them before making network calls.
my os is Manjaro Linux x86_64
[ymcold@ymcold-vmwarevirtualplatform ~]$ strace.py tldr tar ... getpeername(3, 0x00007ffeb4090220, 0x00007ffeb409021c) = 0 getpid() = 1936 (0x0000000000000790) getpid() = 1936 (0x0000000000000790) getpid() = 1936 (0x0000000000000790) getpid() = 1936 (0x0000000000000790) getpid() = 1936 (0x0000000000000790) getpid() = 1936 (0x0000000000000790) write(3, 0x0000562fb2ff0db0, 517) = 517 (0x0000000000000205) read(3, 0x0000562fb2fe7b93, 5) = -104 ECONNRESET (Connection reset by peer) ioctl(3, 21537, 140731918909500) = 0 close(3) = 0 openat(-100, '/home/ymcold/.cache/tldr/pages/linux/tar.md', O_RDONLY|O_CLOEXEC (0o2000000), O_RDONLY) = -2 ENOENT (No such file or directory) Error fetching from tldr: <urlopen error [Errno 104] Connection reset by peer> write(2, 'Error fetching from tldr: <urlopen error [Errno 104] Connection reset by peer>\n', 79) = 79 (0x000000000000004f) ioctl(1, 21505, 140731918918048) = -25 ENOTTY (Inappropriate ioctl for device) rt_sigaction(SIGINT, 0x00007ffeb4092a50, 0x00007ffeb4092af0, 0x0000000000000008) = 0 sigaltstack(NULL, 0x00007ffeb4092d00) = 0 sigaltstack(0x00007f16e023ad20, NULL) = 0 exit_group(1) *** Process 1936 exited with code 1 ***
when i use
tldr tar
, it only search the ~/.cache/tldr/page/linux/, but tar.md ~/.cache/tldr/page/common;I think the the default search path should be /page/os and /page/commen ;The text was updated successfully, but these errors were encountered: