Comments (5)
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
from rnix-lsp.
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 M-x lsp-workspace-shutdown RET
emacs becomes responsive again and I can browse the file and operate emacs normally.
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 lsp-mode
that might cause this behaviour due to too large responses?
from rnix-lsp.
I've definitely noticed a slowdown (especially on pkgs/top-level/all-packages.nix
) since the change that adds links on paths. I'm not sure if that's related?
from rnix-lsp.
Not an emacs expert, but it seems as if the issue can be mitigated by declaring e.g. (setq lsp-idle-delay 0.500)
(see https://emacs-lsp.github.io/lsp-mode/page/performance/). Would you mind checking if that's the case?
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).
from rnix-lsp.
I've been having this issue on macOS as well. I've taken to editing all-packages.nix
in vim as a stopgap.
Setting lsp-idle-delay
to 0.5
does not seem to mitigate the issue enough to make it usable with all-packages.nix
.
from rnix-lsp.
Related Issues (20)
- rnix-lsp not keeping in sync with nixpkgs-fmt
- go to definition for attributes `inherit`-ed in `let ... in`
- autocompletion is not working in vscode: no suggestions HOT 1
- New maintainer? HOT 5
- needs a new release so we can remove the nix pin in nixpkgs
- Detection of duplicate attrset names doesn't work for strings
- Archive the project? HOT 3
- aarch64-darwin support HOT 2
- Flake currently broken? HOT 8
- `test_provide_builtins` failing on macOS when matching against `nix --version` output HOT 4
- flake.nix should provide an overlay
- Install on Mac OS fails with linker errors HOT 2
- Support arbitrary formatter? HOT 2
- Don't change file if formatting doesn't change HOT 8
- rnix-lsp is not working on m1 mac in macos: HOT 1
- Error messages still not working in v0.2.4 HOT 1
- No autocompletion with nested attribute declaration
- Unable to build with current nixos-unstable (nixpkgs-unstable probably the same problem) due to nix_2_4 being removed. HOT 1
- Document Integration For Doom Emacs HOT 1
- Unicode handling is wrong
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rnix-lsp.