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

(void-function ivy-set-display-transformer) #404

Closed
manuel-uberti opened this issue Feb 27, 2016 · 6 comments
Closed

(void-function ivy-set-display-transformer) #404

manuel-uberti opened this issue Feb 27, 2016 · 6 comments

Comments

@manuel-uberti
Copy link
Contributor

Hi,

I've just upgraded counsel from MELPA. When using counsel-M-x this is what I get:

Debugger entered--Lisp error: (void-function ivy-set-display-transformer)
  ivy-set-display-transformer(counsel-M-x counsel-M-x-transformer)
  byte-code("\300\301\302\"\210\303\301\304\"\207" [ivy-set-actions counsel-M-x (("d" counsel--find-symbol "definition")) ivy-set-display-transformer counsel-M-x-transformer] 3)
  autoload-do-load((autoload "counsel" "Ivy version of `execute-extended-command'.\nOptional INITIAL-INPUT is the initial input in the minibuffer.\n\n(fn &optional INITIAL-INPUT)" t nil) counsel-M-x)
  command-execute(counsel-M-x)

If you need me to help with more informations to debug the problem, please feel free to ask.
Could it be related to this piece of code in counsel.el?

;;** `counsel-M-x'
(ivy-set-actions
 'counsel-M-x
 '(("d" counsel--find-symbol "definition")))

(ivy-set-display-transformer
 'counsel-M-x
 'counsel-M-x-transformer)
@abo-abo
Copy link
Owner

abo-abo commented Feb 27, 2016

I'm starting to think it's an issue with package.el. Since counsel.el clearly depends on ivy.el, which was also updated. However, for some reason while counsel.el was reloaded, ivy.el wasn't reloaded previously.

An Emacs restart always fixes this issue though.

@abo-abo
Copy link
Owner

abo-abo commented Feb 27, 2016

Or if you don't want to restart, locate the package and reload the new ivy.el, then the new counsel.el.

But really, this should be the package manager's job.

@manuel-uberti
Copy link
Contributor Author

I restarted Emacs, but I still got the error.

@ghost
Copy link

ghost commented Feb 27, 2016

Just ran into this as well when updating.

I think MELPA built and is serving the latest counsel (dated today) but not the latest swiper package (dated yesterday). It looks like it is still building, so it may resolve itself within a couple hours.

@abo-abo
Copy link
Owner

abo-abo commented Feb 27, 2016

I see. I pushed the updates to both ivy.el and counsel.el at once. Then it's MELPA's fault for serving update in the dependent package without first checking if any dependencies need to be updated. Anyway the problem will be solved when the build is finished, so it's not a big deal.

@manuel-uberti
Copy link
Contributor Author

I can confirm everything works now that swiper is up to date on MELPA.

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