Giter VIP home page Giter VIP logo

Comments (8)

inclyc avatar inclyc commented on July 2, 2024

Tested in the most current version of NixOS.

It is introduced in 2.2.0, check your version?

from nixd.

novo-max avatar novo-max commented on July 2, 2024

I tested it both with version 2.1.2 and 2.2.0 - same behavior for both. My current version is

nixd --version
nixd, version: 2.2.0

from nixd.

inclyc avatar inclyc commented on July 2, 2024

Could you please paste the nix snippet shown in your screenshot here?

from nixd.

novo-max avatar novo-max commented on July 2, 2024

I changed it since but you can use this one:

{
  inputs = {
    openwrt-imagebuilder.url = "github:astro/nix-openwrt-imagebuilder";
  };
  outputs = { self, nixpkgs, openwrt-imagebuilder }: {
    packages.x86_64-linux.my-router =
      let
        pkgs = nixpkgs.legacyPackages.x86_64-linux;

        profiles = openwrt-imagebuilder.lib.profiles { inherit pkgs; };

        config = profiles.identifyProfile "avm_fritz7412" // {
          # add package to include in the image, ie. packages that you don't
          # want to install manually later
          packages = [ "tcpdump" ];

          disabledServices = [ "dnsmasq" ];

          # include files in the images.
          # to set UCI configuration, create a uci-defauts scripts as per
          # official OpenWRT ImageBuilder recommendation.
          files = pkgs.runCommand "image-files" {} ''
            mkdir -p $out/etc/uci-defaults
            cat > $out/etc/uci-defaults/99-custom <<EOF
            uci -q batch << EOI
            set system.@system[0].hostname='testap'
            commit
            EOI
            EOF
          '';
        };

      in
        openwrt-imagebuilder.lib.build config;
  };
}

from: https://github.com/astro/nix-openwrt-imagebuilder

image

from nixd.

inclyc avatar inclyc commented on July 2, 2024

Cannot reproduce. It works pretty well as expected on my machine.

How about changing the nix.serverPath to absolute path pointing to nixd 2.2.0 ? I think there may be some launching issue about the version you used. If the issue still occurs, please export NIXD_FLAGS=-log=verbose, lauch vscode again, and paste the logs here.

from nixd.

novo-max avatar novo-max commented on July 2, 2024

I can't figure out where the logs are stored. I looked into HOME and /var/log and I can't find it. To clarify I export export NIXD_FLAGS=-log=verbose and then I type codium within the same shell to start VSCode.

from nixd.

inclyc avatar inclyc commented on July 2, 2024

I can't figure out where the logs are stored. I looked into HOME and /var/log and I can't find it. To clarify I export export NIXD_FLAGS=-log=verbose and then I type codium within the same shell to start VSCode.

截屏2024-06-28 13 07 59

It is in your codium. Same window as the terminal and check 'OUTPUT', the logs are written there in "Nix" extension.

from nixd.

novo-max avatar novo-max commented on July 2, 2024

Thank you very much @inclyc . I have to apologize for wasting your time since for a couple of days everything is working just fine and all sema-def-not-used do get suppressed when I use the configuration above. Since I created this post I upgraded my NixOS several times so I possibly had outdated "something". All works now! Thank you.

from nixd.

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.