Coder Social home page Coder Social logo

Comments (4)

lilyball avatar lilyball commented on July 28, 2024

I can't reproduce this in a nix develop shell or with nix-shell. If I patch the source to print the nix --version output and run that through nix build I get v = "".

from rnix-lsp.

lilyball avatar lilyball commented on July 28, 2024

Here's the whole nixver result struct, which is quite interesting:

rnix-lsp> [src/lookup.rs:175] &nixver = Ok(
rnix-lsp>     Output {
rnix-lsp>         status: ExitStatus(
rnix-lsp>             unix_wait_status(
rnix-lsp>                 6,
rnix-lsp>             ),
rnix-lsp>         ),
rnix-lsp>         stdout: "",
rnix-lsp>         stderr: "libc++abi: terminating with uncaught exception of type nix::SysError: \u{1b}[31;1merror:\u{1b}[0m getting status of \u{1b}[35;1m/System/Library/LaunchDaemons/com.apple.oahd.plist\u{1b}[0m: \u{1b}[35;1mOperation not permitted\u{1b}[0m\n",
rnix-lsp>     },
rnix-lsp> )

from rnix-lsp.

lilyball avatar lilyball commented on July 28, 2024

If this is a sandboxing issue, that explains why it doesn't reproduce in nix develop or nix-shell. What I don't get is why this still occurs with nix --no-sandbox build. Or why nix is attempting to get the file metadata of /System/Library/LaunchDaemons/com.apple.oahd.plist.

from rnix-lsp.

lilyball avatar lilyball commented on July 28, 2024

I filed NixOS/nix#5884 about nix --version failing in the macOS sandbox.

from rnix-lsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.