{"record":{"id":"0ea985439233b9e1","repo":"windmill-labs/windmill","slug":"nu-is-not-available-because-the-feature-is-not-ena","errorCode":null,"errorMessage":"Nu is not available because the feature is not enabled","messagePattern":"Nu is not available because the feature is not enabled","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"backend/windmill-worker/src/worker.rs","lineNumber":6727,"sourceCode":"                conn,\n                client,\n                parent_runnable_path,\n                &code,\n                job_dir,\n                lock.as_ref(),\n                &shared_mount,\n                base_internal_url,\n                worker_name,\n                envs,\n                occupancy_metrics,\n                modules.as_ref(),\n            ))\n            .await\n        }\n        ScriptLang::Nu => {\n            #[cfg(not(feature = \"nu\"))]\n            return Err(\n                anyhow::anyhow!(\"Nu is not available because the feature is not enabled\").into(),\n            );\n\n            #[cfg(feature = \"nu\")]\n            {\n                if run_inline {\n                    return Err(Error::internal_err(\n                        \"Inline execution is not yet supported for this language\".to_string(),\n                    ));\n                }\n                Box::pin(handle_nu_job(JobHandlerInputNu {\n                    mem_peak,\n                    canceled_by,\n                    job,\n                    conn,\n                    client,\n                    parent_runnable_path,\n                    inner_content: &code,\n                    job_dir,","sourceCodeStart":6709,"sourceCodeEnd":6745,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/backend/windmill-worker/src/worker.rs#L6709-L6745","documentation":"Windmill compiles Nu script execution behind the optional `nu` cargo feature. When a job for a Nu script is dispatched to a worker binary built without that feature, the executor immediately fails with this message. The binary literally has no Nu runtime linked, so the job can never run on it.","triggerScenarios":"Running a script with language `nu` on a worker built without `--features nu` (e.g. default `cargo run` with only `quickjs`, or an official image variant that excludes Nu).","commonSituations":"Self-hosted builds using minimal feature sets, dev backends started with the default fast-build features, switching the script language to nu in a workspace served by a feature-restricted worker.","solutions":["Rebuild the backend/worker with `--features nu` (plus your other features)","Route nu-tagged jobs to a worker/image that includes the nu feature","Change the script's language if Nu is not actually needed"],"exampleFix":"// before\ncargo run --features quickjs\n// after\ncargo run --features quickjs,nu","handlingStrategy":"fallback","validationCode":"// check which features your worker exposes before running nu jobs\ncurl -s $WORKER_URL/api/workers/list | jq '.[].tags'","typeGuard":null,"tryCatchPattern":"try {\n  await runScript(\"nu\", code);\n} catch (e) {\n  if (String(e).includes(\"Nu is not available\")) {\n    // rebuild worker with --features nu or route to a nu-capable worker\n  }\n}","preventionTips":["Match your worker's cargo features to every script language used in the workspace","Document the feature set used to build production workers","Verify the worker binary's feature list before enabling new language scripts in the UI"],"tags":["feature-flag","nu","build-config"],"backgroundTag":"feature-not-enabled","analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}