-
-
Notifications
You must be signed in to change notification settings - Fork 41
on very large files emacs becomes unresponsive #62
Comments
Thank you for the Nix expression! :-) That'll make things much easier to reproduce, since this seems to be working for me without an issue in my dev environment |
I just checked HTOP, and it seems as if just emacs is going to hog a single CPU, the LSP though doesn't appear to consume any mentionable resources… Its there at 0.1% CPU and ~20k of RES memory. Though if I manage to kill the LSP using If I temporarily blacklist my local nixpkgs clone and open the mentioned file again, there are also no issues, as soon as I start the LSP manually, emacs is unresponsive again. Perhaps something in |
I've definitely noticed a slowdown (especially on |
Not an emacs expert, but it seems as if the issue can be mitigated by declaring e.g. As a next step I'd try to narrow down what the actual problem is (though the link-path thing is rather likely then) and evaluate possible solution (such as only evaluating a subset of all link-paths). |
I've been having this issue on macOS as well. I've taken to editing Setting |
Describe the bug
Emacs becomes unresponsive when large files are opened.
Steps to reproduce
Steps to reproduce the behavior:
pkgs/top-level/all-packages.nix
with the rnix lsp enabledExpected behavior
Emacs remains responsive
Additional context
Editor configuration is generated by HM, and spread across several modules which generate several emacs packages which are then loaded on start.
The most relevant configuration for rnix-lsp is probably to be found in:
https://github.com/NobbZ/nixos-config/blob/afd01c05fd8cc81b62d55635cd5aa5fbebae0ae0/home/modules/languages/nix/default.nix
The text was updated successfully, but these errors were encountered: