travisbhartwell / nix-emacs

A set of useful Emacs modes and functions for users of Nix and Nix OS.
223 stars 31 forks source link

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

Open magnetophon opened 8 years ago

magnetophon commented 8 years ago

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 commented 3 years ago

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

Mic92 commented 3 years ago

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

magnetophon commented 3 years ago

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

Mic92 commented 3 years ago

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: https://github.com/wbolster/emacs-direnv/issues/31

Mic92 commented 3 years ago

Also see https://github.com/purcell/envrc/issues/6 for more discussion on making things asynchronous.