-
-
Notifications
You must be signed in to change notification settings - Fork 40
Conversation
Flake input changes: * Updated 'naersk': 'github:nmattia/naersk/ce273fa593dcc94a629d0d869f07d96d2b337e37' -> 'github:nmattia/naersk/df71f5e4babda41cd919a8684b72218e2e809fa9' * Updated 'naersk/nixpkgs': 'github:NixOS/nixpkgs/2247d824fe07f16325596acc7faa286502faffd1' -> 'path:/nix/store/jg618dszb08c67a4x8lbh4lq4y3wr8nv-source?lastModified=1630102403&narHash=sha256-AIo%2fbHUi5fwSIid0DStpm60OYjjchJUCPndHKGL6bbY=&rev=2cc15f0c910057656f510f55bbec9a0437e33b69' * Updated 'nixpkgs': 'github:NixOS/nixpkgs/2247d824fe07f16325596acc7faa286502faffd1' -> 'github:nixos/nixpkgs/74d017edb6717ad76d38edc02ad3210d4ad66b96' * Updated 'utils': 'github:numtide/flake-utils/5021eac20303a61fafe17224c087f5519baed54d' -> 'github:numtide/flake-utils/997f7efcb746a9c140ce1f13c72263189225f482'
The main motiviation is to get `crossbeam-channel` at at least 0.5.1 as this appears to fix a memory like[1] which is probably the root-cause of our own memory issues[2]. This also included some changes to the LSP type-system as a few more changes in the LSP protocol are now incorporated, such as a clarification that numbers are usually unsigned 32bit rather than 64bit[3]. [1] https://github.com/crossbeam-rs/crossbeam/blob/crossbeam-channel-0.5.1/crossbeam-channel/CHANGELOG.md#version-051 [2] nix-community#33 [3] gluon-lang/lsp-types@f654090
Hmm, weird, |
|
OK the problem was that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Ma27! This works well for me. I'm unable to reproduce the memory leak, so I don't know whether this PR fixes the issue, but I think it's good anyway to keep dependencies up-to-date.
Feel free to merge this if it has been working for you without issues :-)
Maybe the memory leak is located in another dependency, such as |
Have you tried running one of the heap profilers out there, like heaptrack? |
Thanks for the hint, not sure though how much it'll help if the leak is not properly reproducible, but it's definitely worth a shot. Will try to resume my work on this leak-problem at one of the next days, going to merge this now since it appears to work fine :) |
This hopefully fixes the memory leak from #33. Please refer to the commit messages for further details.
Please note that I only did some brief tests. I'd like to run this on my setup for a few days before merging this. Further testers are of course fairly welcome, so we can hopefully find out if my theory regarding #33 is correct :)