Comments (8)
Tested in the most current version of NixOS.
It is introduced in 2.2.0, check your version?
from nixd.
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.
Could you please paste the nix snippet shown in your screenshot here?
from nixd.
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
from nixd.
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.
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.
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 typecodium
within the same shell to start VSCode.
It is in your codium. Same window as the terminal and check 'OUTPUT', the logs are written there in "Nix" extension.
from nixd.
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)
- nixd dies on shutdown but not in the way eglot expects? HOT 2
- unnecessary "definition is not used warning" HOT 3
- Anything after the first expression in one file is ignored HOT 1
- [bug] nixd uses too much RAM when opening large files HOT 2
- autocomplete for builtins HOT 3
- Complete outputs: (dev out) for `package_name.` HOT 1
- `nixd.options` with `$NIX_PATH` import expressions HOT 4
- auto-complete default value for option HOT 4
- Wrong suggestions for rec keyword. HOT 3
- Somehow group the multipart suggestions in Neovim.
- support & auto complete nixvim options HOT 4
- vendor: enable written regression tests in derivations HOT 3
- documentation for nixvim modules
- completion pops up in comment context HOT 1
- Invalid range when going to package definition HOT 3
- semantic tokens for `inherit`ed attrs.
- crash on invalid `let ... in ...`
- execute fetchers as code action HOT 1
- Changing default severity HOT 2
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 nixd.