# Rebuild env button not working

**URL:** <https://community.firebasestudio.dev/t/rebuild-env-button-not-working/12032>\
**Category:** Project Templates\
**Created:** [May 11, 2025, 6:37pm UTC](https://community.firebasestudio.dev/t/rebuild-env-button-not-working/12032 "2025-05-11T18:37:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shin18](https://sea2.discourse-cdn.com/flex002/user_avatar/community.firebasestudio.dev/shin18/32/6231_2.png) [@Shin18](https://community.firebasestudio.dev/u/Shin18)\
**Post date:** [May 11, 2025, 6:37pm UTC](https://community.firebasestudio.dev/t/rebuild-env-button-not-working/12032/1 "2025-05-11T18:37:41Z")

</div>

FB studio shows rebuild env, I click on it and nothing happens. here is my dev.nix file located in .idx/dev.nix. not sure why this isnt working. my env is being build as instructed eitther and FB studio keeps asking me if I want to configure a dev.nix file. I already did!

# .idx/dev.nix — compliant with Firebase Studio’s reference

{ pkgs, … }: {

# 1. Channel (must be one of the allowed values)

channel = “stable-24.05”; # ✅ allowed per schema :contentReference[oaicite:13]{index=13}

# 2. Packages (list of derivations, no typos)

packages = [  
pkgs.python311 # Python 3.11 interpreter :contentReference[oaicite:14]{index=14}  
pkgs.python311Packages.pip # pip package manager  
pkgs.python311Packages.virtualenv # virtualenv module :contentReference[oaicite:15]{index=15}  
pkgs.python311Packages.jupyterlab # JupyterLab interface :contentReference[oaicite:16]{index=16}  
pkgs.python311Packages.ipykernel # IPython kernel for Jupyter :contentReference[oaicite:17]{index=17}  
pkgs.stdenv.cc.cc.lib # C++ runtime (libstdc++.so.6) :contentReference[oaicite:18]{index=18}  
];

# 3. Environment variables

env = {  
# Provide the dynamic linker path for native modules  
LD\_LIBRARY\_PATH = “${pkgs.stdenv.cc.cc.lib}/lib”; # string or list allowed :contentReference[oaicite:19]{index=19}  
};

# 4. Editor extensions (Open VSX IDs)

idx.extensions = [  
“vscodevim.vim”  
“ms-python.python”  
“ms-python.vscode-pylance”  
“ms-toolsai.jupyter”  
“GitHub.vscode-pull-request-github”  
]; # list of non-empty strings :contentReference[oaicite:20]{index=20}

# 5. (Optional) Previews — enable live reload feature

idx.previews = {  
enable = true; # boolean :contentReference[oaicite:21]{index=21}  
previews = { }; # no custom previews defined, still valid :contentReference[oaicite:22]{index=22}  
};

# 6. Workspace lifecycle hooks

idx.workspace.onCreate = {  
install-deps = “pip install -r requirements.txt”; # runs on first open :contentReference[oaicite:23]{index=23}  
};  
idx.workspace.onStart = {  
# define commands to run on subsequent workspace starts, if needed  
};  
}
