Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dyloxim opened this issue Mar 22, 2021 · 1 comment
Open

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

dyloxim opened this issue Mar 22, 2021 · 1 comment

Comments

@dyloxim
Copy link

dyloxim commented Mar 22, 2021

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.

@pataquets
Copy link

See #201

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants