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

nixos-options and helm-nixos-options load slowly #28

Open
magnetophon opened this issue Feb 19, 2016 · 5 comments
Open

nixos-options and helm-nixos-options load slowly #28

magnetophon opened this issue Feb 19, 2016 · 5 comments

Comments

@magnetophon
Copy link

I haven't looked into why, but these two are by far the slowest loading pkgs in my spacemacs:
3.4 and 4.0 seconds, with the runners up needing 0.6 and 0.5 seconds.

@Mic92
Copy link
Member

Mic92 commented Sep 11, 2020

It also blocks the execution of my editor when opening nix files. Is it possible to run nix-build asynchronously?

Mic92 added a commit to Mic92/doom-emacs that referenced this issue Sep 11, 2020
This package blocks emacs for several seconds or even more if no network
is available. I have not seen any way to disable it.
It is unlikely that upstream will fix this anytime soon,
hence removing this package:

nix-community/nix-emacs#28

Upstream is not working on this package anymore:

nix-community/nix-emacs#46
@Mic92
Copy link
Member

Mic92 commented Sep 11, 2020

I asked doom-emacs to remove this package because this bug.

@magnetophon
Copy link
Author

Thanks.
I use doom as well now.
It'd be nice if the root cause was found though.

@Mic92
Copy link
Member

Mic92 commented Sep 19, 2020

Well. I know the root cause, the module should use the non-blocking api for executing nix-build. But my emacs-fu is not strong enough to make this happen. This is a similar problem to: wbolster/emacs-direnv#31

@Mic92
Copy link
Member

Mic92 commented Sep 19, 2020

Also see purcell/envrc#6 for more discussion on making things asynchronous.

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