I am having trouble loading this project; it got stuck on the project index page. I also can’t access my extensions.
Failed to load resources error 503
WebSocket connection to idx-page failed
I am having trouble loading this project; it got stuck on the project index page. I also can’t access my extensions.
Failed to load resources error 503
WebSocket connection to idx-page failed
This issue is being worked on and should already be fixed. If it is not in production yet please test in a few days!
I am having a similar problem. I can’t load any Extensions and the IDX folder (I believe pictured in the screenshot above) is also in never-ending load state. Is there an upcoming point release I should look out for to fix this, or did the patch already come?
Do you see any errors in your console?
I didn’t previously, but now I am Failing to load the IDX Environment and am getting an error after I start up in Launch Recovery Mode.
The custom environment configuration described by your dev.nix
file resulted in environment build errors.
dev.nix
file.dev.nix
changes to Git.error: The option `idx.previews.web' does not exist. Definition values:
- In `/home/user/authnodebackendfb/.idx/dev.nix':
Building env...
warning: $HOME (‘/home/user’) is not owned by you, falling back to the one defined in the ‘passwd’ file (‘/root’) trace: [ “callPackage” “fhs” “newScope” “override” “overrideDerivation” “overrideScope” “overrideScope’” “packages” “run” “run’” ] error: … while calling the ‘derivationStrict’ builtin at <nix/derivation-internal.nix>:9:12: 8| 9| strict = derivationStrict drvAttrs; | ^ 10|
… while evaluating derivation 'idx-gc-root'
whose name attribute is located at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'text' of derivation 'idx-gc-root'
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/trivial-builders/default.nix:148:17:
147| runCommand name
148| { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
| ^
149| passAsFile = [ "text" ];
… while calling the 'getAttr' builtin
at <nix/derivation-internal.nix>:19:19:
18| value = commonAttrs // {
19| outPath = builtins.getAttr outputName strict;
| ^
20| drvPath = strict.drvPath;
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'idx-env'
whose name attribute is located at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'buildCommand' of derivation 'idx-env'
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/trivial-builders/default.nix:87:15:
86| enableParallelBuilding = true;
87| inherit buildCommand name;
| ^
88| passAsFile = [ "buildCommand" ]
… while calling the 'getAttr' builtin
at <nix/derivation-internal.nix>:19:19:
18| value = commonAttrs // {
19| outPath = builtins.getAttr outputName strict;
| ^
20| drvPath = strict.drvPath;
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'idx-env-bwrap'
whose name attribute is located at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'text' of derivation 'idx-env-bwrap'
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/trivial-builders/default.nix:148:17:
147| runCommand name
148| { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
| ^
149| passAsFile = [ "text" ];
… from call site
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/build-fhsenv-bubblewrap/default.nix:224:43:
223|
224| bin = writeShellScript "${name}-bwrap" (bwrapCmd { initArgs = ''"$@"''; });
| ^
225| in runCommandLocal name {
… while calling 'bwrapCmd'
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/build-fhsenv-bubblewrap/default.nix:118:14:
117| indentLines = str: lib.concatLines (map (s: " " + s) (filter (s: s != "") (lib.splitString "\n" str)));
118| bwrapCmd = { initArgs ? "" }: ''
| ^
119| ignored=(/nix /dev /proc /etc)
… while calling the 'getAttr' builtin
at <nix/derivation-internal.nix>:19:19:
18| value = commonAttrs // {
19| outPath = builtins.getAttr outputName strict;
| ^
20| drvPath = strict.drvPath;
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'idx-env-fhs'
whose name attribute is located at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'buildCommand' of derivation 'idx-env-fhs'
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/trivial-builders/default.nix:87:15:
86| enableParallelBuilding = true;
87| inherit buildCommand name;
| ^
88| passAsFile = [ "buildCommand" ]
… while calling the 'getAttr' builtin
at <nix/derivation-internal.nix>:19:19:
18| value = commonAttrs // {
19| outPath = builtins.getAttr outputName strict;
| ^
20| drvPath = strict.drvPath;
… while calling the 'derivationStrict' builtin
at <nix/derivation-internal.nix>:9:12:
8|
9| strict = derivationStrict drvAttrs;
| ^
10|
… while evaluating derivation 'idx-env-usr-target'
whose name attribute is located at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/stdenv/generic/make-derivation.nix:348:7
… while evaluating attribute 'passAsFile' of derivation 'idx-env-usr-target'
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/trivial-builders/default.nix:88:7:
87| inherit buildCommand name;
88| passAsFile = [ "buildCommand" ]
| ^
89| ++ (derivationArgs.passAsFile or []);
… while evaluating the attribute 'passAsFile'
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:5:
75| # XXX: The size is somewhat arbitrary
76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
| ^
77| }
… while evaluating a branch condition
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:18:
75| # XXX: The size is somewhat arbitrary
76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
| ^
77| }
… in the argument of the not operator
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:48:
75| # XXX: The size is somewhat arbitrary
76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
| ^
77| }
… while calling the 'lessThan' builtin
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:48:
75| # XXX: The size is somewhat arbitrary
76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
| ^
77| }
… while calling the 'stringLength' builtin
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:76:21:
75| # XXX: The size is somewhat arbitrary
76| passAsFile = if builtins.stringLength pkgs >= 128*1024 then [ "pkgs" ] else [ ];
| ^
77| }
… while calling the 'toJSON' builtin
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:58:12:
57| nativeBuildInputs buildInputs;
58| pkgs = builtins.toJSON (map (drv: {
| ^
59| paths =
… while calling the 'map' builtin
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/buildenv/default.nix:58:29:
57| nativeBuildInputs buildInputs;
58| pkgs = builtins.toJSON (map (drv: {
| ^
59| paths =
… from call site
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/pkgs/build-support/build-fhsenv-bubblewrap/buildFHSEnv.nix:45:17:
44| # host's architecture
45| targetPaths = targetPkgs pkgs ++ (if multiPkgs == null then [] else multiPkgs pkgs);
| ^
46|
… while calling 'targetPkgs'
at /usr/local/monospace/nix/idx/env/fhs.nix:29:20:
28| unshareCgroup = true;
29| targetPkgs = pkgs: packages;
| ^
30| inherit runScript profile;
… from call site
at /usr/local/monospace/nix/idx/default.nix:16:21:
15| let
16| monospace = config.loadConfig {
| ^
17| inherit recovery privileged;
… while calling 'loadConfig'
at /usr/local/monospace/nix/config/default.nix:100:16:
99| # Same as `load` but only returns the config, not the whole module eval result.
100| loadConfig = { recovery, configDir, privileged ? false }@args:
| ^
101| (load args).config;
… while evaluating the attribute 'config'
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:320:9:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^
321| _module = checked (config._module);
… while calling the 'seq' builtin
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:320:18:
319| options = checked options;
320| config = checked (removeAttrs config [ "_module" ]);
| ^
321| _module = checked (config._module);
… while calling the 'throw' builtin
at /nix/store/g8zzlf6drg73c987ii390yicq4c0j778-source/lib/modules.nix:296:18:
295| ''
296| else throw baseMsg
| ^
297| else null;
error: The option `idx.previews.web' does not exist. Definition values:
- In `/home/user/authnodebackendfb/.idx/dev.nix':
{
command = [
"bash"
"-c"
"rm -rf .next && npm run dev"
...
Command ‘nix-build’ returned non-zero exit status 256. Starting env in /home/user/authnodebackendfb, recovery False TODO: Locking env at /home/user/authnodebackendfb
Also here is my dev.nix file, I removed Cline and all my other extensions in an effort to fix these problems. I am really only coding through the Cline interface, so without the IDE working properly, I am stuck.
{ pkgs, … }: {
channel = “stable-23.11”;
packages = [
pkgs.nodejs_20
pkgs.python312
pkgs.tree
];
env = {
NEXT_TELEMETRY_DISABLED = “1”;
WEBPREVIEW_HOST = “0.0.0.0”;
WEBPREVIEW_PORT = “3000”;
};
idx = {
# Enable web previews
previews = {
enable = true;
web = {
# Clean .next directory and then start dev server
command = [
“bash”
“-c”
“rm -rf .next && npm run dev”
];
manager = “web”;
# Specify the directory for the web app
cwd = “functions”;
};
};
# VS Code extensions
extensions = [
# "rangav.vscode-thunder-client"
# "dbaeumer.vscode-eslint"
# "esbenp.prettier-vscode"
# "GraphQL.vscode-graphql-syntax"
];
# Workspace setup
workspace = {
# Install dependencies when workspace is created
onCreate = {
npm-install = "npm ci";
};
# Start development server when workspace starts
onStart = {
run-dev = "rm -rf .next && npm run dev";
};
};
};
}
I fixed my Environmental Loading problem with advice from Gemini !
{ pkgs, ... }: {
# Which nixpkgs channel to use
channel = "stable-23.11";
# Packages to install
packages = [
pkgs.nodejs_20
pkgs.python312
pkgs.tree
];
# Environment variables
env = {
NEXT_TELEMETRY_DISABLED = "1";
WEBPREVIEW_HOST = "0.0.0.0";
WEBPREVIEW_PORT = "3000";
};
# IDX configuration
idx = {
# Enable web previews
previews = {
enable = true;
previews = { # Add this 'previews' level
web = {
command = [
"bash"
"-c"
"rm -rf .next && npm run dev"
];
manager = "web";
cwd = "functions";
};
};
};
# VS Code extensions
extensions = [
# "rangav.vscode-thunder-client"
# "dbaeumer.vscode-eslint"
# "esbenp.prettier-vscode"
# "GraphQL.vscode-graphql-syntax"
];
# Workspace setup
workspace = {
# Install dependencies when workspace is created
onCreate = {
npm-install = "npm ci";
};
# Start development server when workspace starts
onStart = {
run-dev = "rm -rf .next && npm run dev";
};
};
};
}
Added that 2nd previews on line 25