When pressing C-o, I get an error instead of hydra #464
Comments
Ideally, you need the It's arranged this way so that |
I'm using a package manager so I can't control load order. What about setting up an error handler which would byte compile |
This issue is just for the first-time installation. Once you install it, it will work fine from then on. A simple way to do it:
|
I'm seeing this same issue every time I upgrade swiper; I'm installing them through use-package declarations the way spacemacs does it--do you know of a way to programmatically ensure that the installation order is correct using use-package? |
(use-package hydra
:ensure t)
(use-package swiper
:ensure t) |
Unfortunately we cannot do this in Spacemacs because packages are installed and configured in a predictive order which is the alphabetical order, this is an important property of Spacemacs architecture to allow integrating hundreds of packages. The user should not get the burden of dependency management, this is the job of
|
@DamienCassou I've updated the |
Nice ! thank you :-) Le lundi 2 mai 2016, Oleh Krehel notifications@github.com a écrit :
-syl20bnr- |
@abo-abo thanks for this. Unfortunately, I'm currently back to helm because I had no time to invest in changing right now. I might have a second look later. Sorry about that. |
@abo-abo Unfortunately this is not fixed, we still have the error. I understood why it happens in Spacemacs even if we install in alphabetical order (which means Hydra comes before Ivy). This is because Counsel (and soon many others) depends on Ivy so Ivy ends up being installed before Counsel and thus before Hydra. I think the current approach is not viable because it puts the burden of package dependency on the users shoulder. Any package declaring a new dependency on Ivy can trigger this error so basically we should tell people to install Hydra first. Now imagine if other package maintainers start to play this game, we end up with a dependency hell for the user where any upgrade can break their configuration. This is simply not practical. What I recommend in this particular case:
This way it respects POLA principle, saves some documentation, some user's time and make their configuration more reliable. Also |
Actually this approach can work but it can install the |
What is the error you're referring to?
Ultimately, the burden is always there.
This can work. Still, the problem still needs a |
Oops sorry, this is a different error than OP, in
Recompiling Since it looks like Hydra must be compiled before |
I'm just starting with ivy and reading the manual. In http://oremacs.com/swiper/#introduction, in the
discoverability
section,For me, I get
autoload-do-load: Symbol's value as variable is void: hydra-ivy
The text was updated successfully, but these errors were encountered: