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

(wrong-number-of-arguments (3 . 3) 2) error when installing or updating haskell #2213

Closed
qcfu-bu opened this issue Dec 19, 2019 · 12 comments
Closed
Labels
is:upstream Originates from outside the project and cannot be fully addressed here module:lang/haskell Pertains to Doom's :lang haskell module status:resolved Issue was addressed internally

Comments

@qcfu-bu
Copy link

qcfu-bu commented Dec 19, 2019

I'm trying to install the Haskell mode through doom.d init and I keep running into two consecutive lines of

Eager macro-expansion failure: (wrong-number-of-arguments (3 . 3) 2)
Eager macro-expansion failure: (wrong-number-of-arguments (3 . 3) 2)

when doom refresh attempts Installing & building packages. Quoting out haskell and refresh works normally.

The full debug message is quite long, not sure if posting that here will be of much help.

@qcfu-bu qcfu-bu changed the title Haskell mode install issue [BUG] Haskell mode install issue Dec 19, 2019
@qcfu-bu qcfu-bu changed the title [BUG] Haskell mode install issue Haskell mode install issue Dec 19, 2019
@jdnavarro
Copy link
Contributor

Upstream issue: haskell/haskell-mode#1691

@qcfu-bu
Copy link
Author

qcfu-bu commented Dec 19, 2019

Thank you, I'll close the issue

@qcfu-bu qcfu-bu closed this as completed Dec 19, 2019
@hlissner hlissner added module:lang/haskell Pertains to Doom's :lang haskell module is:upstream Originates from outside the project and cannot be fully addressed here labels Dec 19, 2019
@hlissner hlissner reopened this Dec 19, 2019
@hlissner
Copy link
Member

I'll keep this open until it is resolved upstream.

@hlissner hlissner changed the title Haskell mode install issue (wrong-number-of-arguments (3 . 3) 2) error when installing or updating haskell Dec 19, 2019
@tchajed
Copy link
Contributor

tchajed commented Dec 20, 2019

...and it's fixed upstream: haskell/haskell-mode@38c512b.

@hlissner
Copy link
Member

Thank goodness. @tchajed Thanks for letting us know!

@hlissner hlissner added the status:resolved Issue was addressed internally label Dec 20, 2019
@asymmetric
Copy link
Contributor

How do we recover from this error?

@tchajed
Copy link
Contributor

tchajed commented Dec 22, 2019

You just need the latest version of the haskell-mode package. doom update should work for that.

@asymmetric
Copy link
Contributor

asymmetric commented Dec 22, 2019

doom update with the haskell module enabled hits the error. If I remove the module, the package doesn't get updated.

@tchajed
Copy link
Contributor

tchajed commented Dec 22, 2019

Then maybe manually do a git pull in ~/.emacs.d/.local/straight/repos/haskell-mode followed by doom refresh?

You should also be able to remove haskell, refresh (which will delete the repo), and then add it back (which will clone it at the latest release), but that's a bit more complicated.

@asymmetric
Copy link
Contributor

Thanks, doom refresh -p did the trick - a simple refresh doesn't purge orphaned repos.

@tchajed
Copy link
Contributor

tchajed commented Dec 22, 2019

Ah, I didn't realize that (perhaps a change since I last needed to purge a repo). Glad you sorted that out!

So to summarize, the cleanest way to recover from a broken upstream package is to remove the relevant module from your config, delete the clone with doom refresh -p, then add it back to your config and run doom refresh to install it.

@hlissner
Copy link
Member

hlissner commented Dec 22, 2019

@asymmetric That, or delete these two directories manually: ~/.emacs.d/.local/straight/{build,repos}/haskell-mode before running doom refresh (which will clone the new version).

asymmetric added a commit to asymmetric/doom-emacs that referenced this issue Dec 22, 2019
asymmetric added a commit to asymmetric/doom-emacs that referenced this issue Dec 22, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
is:upstream Originates from outside the project and cannot be fully addressed here module:lang/haskell Pertains to Doom's :lang haskell module status:resolved Issue was addressed internally
Projects
None yet
Development

No branches or pull requests

5 participants