-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
neovim does not work on macOS 10.12 Sierra #18466
Comments
Might have something to do with the hardening flags? Just an unfounded thought though... |
Hm, according to Homebrew/homebrew-core#1957 jemalloc is actually broken in Homebrew right now. So the real question is: how on Earth does neovim from Homebrew work 😕. |
Ok, I see. neovim from Homebrew does not use jemalloc. They list it as a resource, but, apparently, it is not enough to make it actually use it (I have no idea how formulas work). That is, the binary is not linked against jemalloc. |
What's the benefit of linking to it? Can we just stop doing that until they fix upstream? |
As far as I understand, it’s simply that jemalloc is superior. By dropping it we lose just, you know, its superiority 😎. Other than that, it should be fine. As a side note, I still do not understand completely how this works. I checked older discussions on the Homebrew formula repository and, it seems, their neovim is supposed to use jemalloc, even though it is not mentioned in the formula apart from the resources section. In neovim’s |
Weird! Maybe worth a bug report to homebrew too? Thanks for testing all this stuff by the way. Feel free to drop by ##nix-darwin on freenode for more interactive conversation (although it's often quiet) |
For future reference: neovim/homebrew-neovim#178. |
Perhaps remove darwin from |
... so that people get an evaluation-time hint that it's likely to be problematic. |
Would it be possible to do this in a more granular way? |
Ah, I thought it was independent of version. I don't think nixpkgs has the information about the host OS version during evaluation. Actually, I don't think it should have the information in any phase, due to purity, but I should mainly just stop putting my nose in Darwin stuff as I don't understand it... |
No, I agree, I don't think we should be doing anything conditionally on host OS version. If we can't use jemalloc, let's just turn it off on darwin until we can. Or statically link the way homebrew does it, or whatever. |
@kirelagin Sorry, this threads is already understood cause? FYI, I was tried use tcmalloc instead of jemalloc(in another matter) for Neovim, but same results. It's on the native Darwin. I have not used NixOS. |
Related issue: neovim/neovim#5415 |
For anyone facing this issue now, just create {
packageOverrides = pkgs: {
neovim = pkgs.neovim.override {
withJemalloc = false;
};
};
} |
withJemalloc could be made false by default on darwin then. |
We can simply wait for jemalloc 4.3.0. Hopefully, it will happen soon (jemalloc/jemalloc#453). |
@nhooyr This override works for me but now I get It only happens when:
|
It only happens while vim running inside tmux session. |
@plitzenberger create an issue on the neovim repo. |
Or actually, try this first ( {
packageOverrides = pkgs: {
neovim = pkgs.lib.overrideDerivation (pkgs.neovim.override {
withJemalloc = false;
}) (attrs: rec {
name = "neovim-${version}-dev";
version = "0.1.6";
src = pkgs.fetchFromGitHub {
owner = "neovim";
repo = "neovim";
rev = "79d77da8a06bf91a77cc96a1f1fba30bbd991a23";
sha256 = "14gir9sdiddyr0yhnnrn0jrxgyhk8nnlhnqp68wk97q1a9b4x58d";
};
});
};
} |
Is anyone else still having this issue? I'm a relative nix beginner, but I've tried various combinations of the What I've done so far:
with a package override building neovim-0.1.7 with and without jeMalloc (same results). What am I doing wrong? |
It should work, we don't have any Sierra specific issues anymore AFAIK |
The issue is closed because it was resolved by the commit referenced above.
What is exactly not working for you?
…On Wed, Dec 7, 2016, 22:09 Daiderd Jordan ***@***.***> wrote:
It should work, we don't have any Sierra specific issues anymore AFAIK
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#18466 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAbk-3iAKBsyRaTXx1ehRgkSfVSy8zHXks5rFwSEgaJpZM4J5GfE>
.
|
Nevermind; noobie mistakes on my end. The first time I tried it, I hadn't updated my nix-channel to pull the latest. Then I added the overrides above and updated my nix-channel, at which point I think I was mistakenly pinning to an old version (probably due to a misunderstanding of how to write Nix expressions). Now I've updated the channel, removed all of my override code, done a fresh neovim install, and everything just works. Thanks for fixing this a few weeks ago 👍 |
Ok, good to know 👌 |
This is jemalloc/jemalloc#420.
For some reason, neovim installed from Homebrew works just fine, even though I can’t see any Sierra specific changes to the neovim or jemalloc formulas. Need to investigate.
/cc @copumpkin @matthewbauer
The text was updated successfully, but these errors were encountered: