aitjcize / cppman

C++ 98/11/14 manual pages for Linux/MacOS
GNU General Public License v3.0
1.28k stars 79 forks source link

cppman fails to download some pages #10

Closed mar04 closed 8 years ago

mar04 commented 11 years ago

2351 manual pages cahced successfully. 5 manual pages failed to cache.

ios Input/Output istream ostream iostream

Using ArchLinux and package from AUR. Also fix spelling cahced -> cached ;)

aitjcize commented 11 years ago

Thanks for reporting. I'll fix the index and release a new version soon.

zopieux commented 9 years ago

There are still issues with some of these pages and others.

Caching <atomic> ...
Retrying ...
Retrying ...
Retrying ...
Error caching <atomic> ...

And then:

$ cppman '<atomic>'
error: list index out of range

But also:

Caching std::basic_fstream::operator= ...
Retrying ...
Retrying ...
Retrying ...
Error caching std::basic_fstream::operator= ...

And then:

$ cppman 'std::basic_fstream::operator='
# works great

So I'm not sure what is happening here. I guess the failed pages that worked manually were just failed because of temporary network issues. For <atomic> and <iterator>, these are really broken.

Yanpas commented 8 years ago

Fails to download operator/ :bangbang: Moreover it even FAILS to open it!!! Should I open new bug for it? :bangbang:

jep-dev commented 8 years ago

I've tried several times with the version found by pip, the Debian repo, etc., and it keeps failing to cache or download on-demand. ("Retrying..." x 3 for every item.) Switching sources did not help. Adding root privileges to the cache-all command allowed most of the requests to succeed. I don't remember anything but the original installation needing privileges, but I could be mistaken. I'll post again if I can figure anything out.

Edit 1 - The same 9 entries appear to fail for me each time; they are:

<atomic>, std::ostream::operator<<, std::weak_ptr::use_count, memcmp, std::hash, std::chi_squared_distribution::(constructor), std::istream::peek, std::endl, Input/Output, <iterator>

(That's 10... one of them is lying.) Some of these fetch correctly, individually, while others need root privilege even then. For example, cppman "std::endl" requires root privileges, apparently to access ~/.local/share/man/cplusplus.com/std::endl.3.gz. Using chmod/chown on this folder before re-caching made an improvement, but 7 of 9 still fail regularly.

If anyone else would like to help troubleshoot, use the following command to log outputs: echo "y" | cppman -c > log.txt or just echo "y" | cppman -c | grep -i "error\|fail"

aitjcize commented 8 years ago

@XPCX the pages you mentioned should be fixed in the latest release.