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

Emacs lsp-mode bugfix related to dash package #1066

Closed
sshine opened this issue Oct 7, 2019 · 2 comments
Closed

Emacs lsp-mode bugfix related to dash package #1066

sshine opened this issue Oct 7, 2019 · 2 comments

Comments

@sshine
Copy link

sshine commented Oct 7, 2019

Even though the behavior I'm about to describe relates to Emacs' lsp-mode package, and not Emacs' lsp-haskell package or even ghcide directly, I thought it might be valuable in Google search results since it may provide hindrance for those who want to get ghcide up and running with Emacs:

As described here and here, the default installation of lsp-mode, lsp-ui, lsp-ui-mode and lsp-haskell as described in ghcide's "Using with Emacs" section may result in the following error message:

Symbol’s value as variable is void: capability

This can be caused by either an old version of the Emacs package dash, or a cached .elc file for an old version. A fix consists of (re)moving the old package from ~/.emacs.d/elpa/ and installing it again, e.g. via M-x package-list-packages RET and M-x package-install RET dash RET. If this is not enough,

find ~/.emacs.d -name '*.elc' -exec rm {} \;

(which causes recompilation of all bytecode-compiled scripts.)

@sshine sshine closed this as completed Oct 7, 2019
@sshine sshine changed the title Emacs lsp-mode documentation Emacs lsp-mode bugfix related to dash package Oct 7, 2019
ndmitchell referenced this issue in ndmitchell/ghcide Oct 13, 2019
@ndmitchell
Copy link
Collaborator

Useful info! I copied it to the setup guide in haskell/ghcide#164.

@sshine
Copy link
Author

sshine commented Oct 13, 2019

Cool!

cocreature referenced this issue in haskell/ghcide Oct 13, 2019
@pepeiborra pepeiborra transferred this issue from haskell/ghcide Jan 1, 2021
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