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
};
}