cppman icon indicating copy to clipboard operation
cppman copied to clipboard

`error: no such table: cppreference.com_keywords` when database was created by old cppman

Open czchen opened this issue 3 years ago • 1 comments

Originally from https://bugs.debian.org/995477.

When database was created by old cppman, there is no ${source}_keywords table, and there is no mechanism to trigger rebuild automatically. Because of this, cppman always shows error: no such table: cppreference.com_keywords error.

czchen avatar Sep 15 '22 20:09 czchen

Thanks for reporting. Most users does not index the entries themselves so the index.db file should be from the package manager and this should not happen.

We can add logic in code to detect old database and prompt user for deleting the old database.

aitjcize avatar Sep 22 '22 12:09 aitjcize

I just installed cppman and faced the same problem. I tried:

cppman vector
cppman std::vector
cppman std::vector::begin
cppman 'vector::begin'

and always the same problem. I also checked two sources:

cppman -s 'cplusplus.com'
cppman -s cppreference.com

My version is:

cppman -v     
/bin/cppman Ver 0.5.3

I've just installed with:

sudo apt-get install cppman

baziorek avatar Mar 05 '24 09:03 baziorek

Version 0.5.3 on debian is bundled with a bad index.db for some reason. Please upgrade to the latest version. You can install it with pip install cppman

aitjcize avatar Mar 05 '24 15:03 aitjcize

Version 0.5.3 on debian is bundled with a bad index.db for some reason. Please upgrade to the latest version. You can install it with pip install cppman

Thanks, it worked!

baziorek avatar Mar 05 '24 16:03 baziorek