helm-dash icon indicating copy to clipboard operation
helm-dash copied to clipboard

Opens wrong url/Installs docset in wrong location ? (macos)

Open dyloxim opened this issue 3 years ago • 1 comments

I have installed the plugin, downloaded the docs I needed, and (snippet from the FAQ) configured the plugin to open docs in firefox like so:

(setq browse-url-browser-function 'browse-url-generic
    browse-url-generic-program "/Applications/Firefox.app/Contents/MacOS/firefox")
(setq helm-dash-browser-func 'browse-url-generic)

Trying to open documentation for a particular symbol returns a 'file not found' in firefox however.

This was the url helm-dash produced: file:////{home directory}/Library/Application%20Support/Dash/DocSets/Python_3/Python%203.docset/Contents/Resources/Documents/doc/library/enum.html#//apple_ref/Module/enum

browsing this path in finder, I found that the file with the desired contents in fact had the location:

file:///{home directory}/Library/Application%20Support/Dash/DocSets/Python%203.docset/Contents/Resources/Documents/doc/library/enum.html

The difference in the paths (besides from the html anchor) is "Python_3" subdirectory in Dash/DocSets/.

The file .../Dash/DocSets/Python_3/Python%203.docset does exist though, but it doesn't actually contain the docset - the package with the right docs is in the parent directory.

Screenshot 2021-03-22 at 20 46 24 (package with correct docs circled in green, package helm-dash generated a link for circled in red)

It looks like either the documentation package was installed in the wrong location, or helm-dash is generating the wrong path to browse to it.

As a workaround for now I have moved the docset with the correct contents into the Python_3 subdirectory, overwriting the other one, and now the plugin is working as expected.

dyloxim avatar Mar 22 '21 20:03 dyloxim

See #201

pataquets avatar Jun 14 '22 14:06 pataquets