sunaku / dasht

💁 Search API docs offline, in terminal or browser
https://sunaku.github.io/dasht/man
827 stars 26 forks source link

Can't load file under .local/share/dasht/docsets #33

Closed ghost closed 6 years ago

ghost commented 6 years ago

C docsets can't be loaded, I use text-based web browser w3m to surf dasht-server.

sunaku commented 6 years ago

Could you provide the output of dasht-query-line "YOUR_QUERY_HERE" '^c$' ? For example:

$ dasht-query-line sprintf '^c$'
name = printf, fprintf, sprintf, snprintf, printf_s, fprintf_s, sprintf_s, snprintf_s
type = func
from = C
url = file:///home/sunny/.local/share/dasht/docsets/C.docset/Contents/Resources/Documents/en.cppreference.com/w/c/io/fprintf.html#toc
name = vprintf, vfprintf, vsprintf, vsnprintf, vprintf_s, vfprintf_s, vsprintf_s, vsnprintf_s
type = func
from = C
url = file:///home/sunny/.local/share/dasht/docsets/C.docset/Contents/Resources/Documents/en.cppreference.com/w/c/io/vfprintf.html#toc
ghost commented 6 years ago

I have this result from the command dasht-query-line sprintf '^c$':

name = printf, fprintf, sprintf, snprintf, printf_s, fprintf_s, sprintf_s, snprintf_s
type = func
from = C
url = file:///home/USER/.local/share/dasht/docsets/C.docset/Contents/Resources/Documents/<dash_entry_name=printf%2C%20fprintf%2C%20sprintf%2C%20snprintf%2C%20printf%5Fs%2C%20fprintf%5Fs%2C%20sprintf%5Fs%2C%20snprintf%5Fs><dash_entry_originalName=printf%2C%20fprintf%2C%20sprintf%2C%20snprintf%2C%20printf%5Fs%2C%20fprintf%5Fs%2C%20sprintf%5Fs%2C%20snprintf%5Fs><dash_entry_menuDescription=printf%2C%20fprintf%2C%20sprintf%2C%20snprintf%2C%20printf%5Fs%2C%20fprintf%5Fs%2C%20sprintf%5Fs%2C%20snprintf%5Fs>en.cppreference.com/w/c/io/fprintf.html#toc
name = vprintf, vfprintf, vsprintf, vsnprintf, vprintf_s, vfprintf_s, vsprintf_s, vsnprintf_s
type = func
from = C
url = file:///home/USER/.local/share/dasht/docsets/C.docset/Contents/Resources/Documents/<dash_entry_name=vprintf%2C%20vfprintf%2C%20vsprintf%2C%20vsnprintf%2C%20vprintf%5Fs%2C%20vfprintf%5Fs%2C%20vsprintf%5Fs%2C%20vsnprintf%5Fs><dash_entry_originalName=vprintf%2C%20vfprintf%2C%20vsprintf%2C%20vsnprintf%2C%20vprintf%5Fs%2C%20vfprintf%5Fs%2C%20vsprintf%5Fs%2C%20vsnprintf%5Fs><dash_entry_menuDescription=vprintf%2C%20vfprintf%2C%20vsprintf%2C%20vsnprintf%2C%20vprintf%5Fs%2C%20vfprintf%5Fs%2C%20vsprintf%5Fs%2C%20vsnprintf%5Fs>en.cppreference.com/w/c/io/vfprintf.html#toc
sunaku commented 6 years ago

Aha! :neckbeard: Now the problem is clear: there is some stray XML in the url = value that needs to be removed.

However, this removal (see issue #28) has already been taken care of in the current v2.3.0 release. Since you're still experiencing this issue, it seems that you may be using an older version of dasht. Is this true?

Please upgrade to the latest stable release and retry the dasht-query-line experiment: it should Just Work.

ghost commented 6 years ago

just flag out-of-date to dasht in aur, https://aur.archlinux.org/packages/dasht/

ghost commented 6 years ago

@sunaku : Are you the one on aur? If yes can you update the package?

sunaku commented 6 years ago

No, that's not me. :sweat_smile: Contributor @mkaito has generously created and maintained that AUR package (#1).