Skip to content

Updated PATH is not being set #864

Open
@samchouse

Description

@samchouse

Direnv knows what the PATH should be as shown in the logs however it leaves the environment in the old state. This output is from a newly created terminal.

> echo $PATH
/home/sam/.vscode-server-insiders/extensions/ms-python.python-2025.2.0-linux-x64/python_files/deactivate/zsh:/home/sam/Documents/projects/work/coalesc/.devenv/state/venv/bin:/home/sam/.vscode-server-insiders/extensions/ms-python.python-2025.2.0-linux-x64/python_files/deactivate/zsh:/home/sam/Documents/projects/work/coalesc/.devenv/state/venv/bin:/home/sam/.vscode-server-insiders/cli/servers/Insiders-2c7a0283817355c81e1b106f34d911762950a4d9/server/bin/remote-cli:/nix/store/x33wpx4jdmp7vrd7nm2f5fv4qd4fvkss-qtstyleplugin-kvantum-1.1.4/bin:/run/wrappers/bin:/home/sam/.nix-profile/bin:/nix/profile/bin:/home/sam/.local/state/nix/profile/bin:/etc/profiles/per-user/sam/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/sam/.zsh/plugins/fast-syntax-highlighting:/nix/store/x33wpx4jdmp7vrd7nm2f5fv4qd4fvkss-qtstyleplugin-kvantum-1.1.4/bin

Logs:

watching: /home/sam/Documents/projects/work/coalesc/.envrc
watching: /home/sam/.local/share/direnv/allow/b8e24ab0355c8678f8d00f24a9dec959691517ba5465d37e8284ec3f497c88bf
watching: /home/sam/.local/share/direnv/deny/0f53944ccd01231d1c454f453beb6ab0d33f0b0ce8dc10341a31588ca26d9f0e
watching: /home/sam/.direnvrc
watching: /home/sam/.config/direnv/direnvrc
watching: /home/sam/Documents/projects/work/coalesc/devenv.nix
watching: /home/sam/Documents/projects/work/coalesc/devenv.lock
watching: /home/sam/Documents/projects/work/coalesc/devenv.yaml
watching: /home/sam/Documents/projects/work/coalesc/devenv.local.nix
added: AR
now: ar
added: AS
now: as
added: CC
now: gcc
added: CONFIG_SHELL
now: /nix/store/ki4if6b0w5bqv8dc5lrjp8xm7wjy9dlf-bash-5.2p37/bin/bash
added: CXX
now: g++
added: DEVENV_DOTFILE
now: /home/sam/Documents/projects/work/coalesc/.devenv
added: DEVENV_PROFILE
now: /nix/store/yb3yv0y0f2zvcgjj50nznidb8i81ds5s-devenv-profile
added: DEVENV_ROOT
now: /home/sam/Documents/projects/work/coalesc
added: DEVENV_RUNTIME
now: /tmp/devenv-26fc819
added: DEVENV_STATE
now: /home/sam/Documents/projects/work/coalesc/.devenv/state
added: DEVENV_TASKS
now: [{"after":[],"before":[],"command":"/nix/store/r1xk65p1giv5l6b8vc32lpjik4rbahyw-devenv-enterShell","description":"Runs when entering the shell","input":{},"name":"devenv:enterShell","status":null},{"after":[],"before":[],"command":null,"description":"Runs when entering the test environment","input":{},"name":"devenv:enterTest","status":null},{"after":[],"before":[],"command":null,"description":"","input":{},"name":"devenv:files","status":null}]
added: IN_NIX_SHELL
now: impure
added: LD
now: ld
added: LD_LIBRARY_PATH
now: /nix/store/6kbrc4ca98srlfpgyaayl2q9zpg1gys6-gcc-14-20241116-lib/lib64:/nix/store/ziz6pam545r4n1ah8b805w3yg8ipw966-libz-1.2.8.2015.12.26-unstable-2018-03-31/lib:/nix/store/0r2y4yikll9fcbylqz4s0lb0y13xwyba-file-5.46/lib
added: NIX_BINTOOLS
now: /nix/store/kinjsav83qgiiy8mwgypnnc9sn8m8r9y-binutils-wrapper-2.43.1
added: NIX_BINTOOLS_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu
now: 1
added: NIX_CC
now: /nix/store/gj9lra51hwhxnhz05jqk5lh03wipamv0-gcc-wrapper-14-20241116
added: NIX_CC_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu
now: 1
added: NIX_CFLAGS_COMPILE
now:  -frandom-seed=3byf8faj2r -isystem /nix/store/ykd8kk5p9zchs0dgf0p998wpcb8x1rv7-python3-3.12.9-env/include -isystem /nix/store/87hsv7pc321h80j7223209nxc8vmabqb-nodejs-22.14.0/include -isystem /nix/store/ykd8kk5p9zchs0dgf0p998wpcb8x1rv7-python3-3.12.9-env/include -isystem /nix/store/87hsv7pc321h80j7223209nxc8vmabqb-nodejs-22.14.0/include
added: NIX_ENFORCE_NO_NATIVE
now: 1
added: NIX_HARDENING_ENABLE
now: bindnow format fortify fortify3 pic relro stackclashprotection stackprotector strictoverflow zerocallusedregs
added: NIX_LDFLAGS
now: -rpath /home/sam/Documents/projects/work/coalesc/outputs/out/lib  -L/nix/store/ykd8kk5p9zchs0dgf0p998wpcb8x1rv7-python3-3.12.9-env/lib -L/nix/store/ykd8kk5p9zchs0dgf0p998wpcb8x1rv7-python3-3.12.9-env/lib
added: NIX_PKG_CONFIG_WRAPPER_TARGET_HOST_x86_64_unknown_linux_gnu
now: 1
added: NIX_STORE
now: /nix/store
added: NM
now: nm
added: NODE_PATH
now: /nix/store/87hsv7pc321h80j7223209nxc8vmabqb-nodejs-22.14.0/lib/node_modules:/nix/store/i7ki98xf358llbdadpqsb69z5dvdpz5z-graphite-cli-1.5.3/lib/node_modules
added: OBJCOPY
now: objcopy
added: OBJDUMP
now: objdump
changed: PATH
was: /home/sam/.vscode-server-insiders/cli/servers/Insiders-2c7a0283817355c81e1b106f34d911762950a4d9/server/bin/remote-cli:/nix/store/x33wpx4jdmp7vrd7nm2f5fv4qd4fvkss-qtstyleplugin-kvantum-1.1.4/bin:/run/wrappers/bin:/home/sam/.nix-profile/bin:/nix/profile/bin:/home/sam/.local/state/nix/profile/bin:/etc/profiles/per-user/sam/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/sam/.zsh/plugins/fast-syntax-highlighting:/nix/store/x33wpx4jdmp7vrd7nm2f5fv4qd4fvkss-qtstyleplugin-kvantum-1.1.4/bin
now: node_modules/.bin:/nix/store/ykd8kk5p9zchs0dgf0p998wpcb8x1rv7-python3-3.12.9-env/bin:/nix/store/w2r38hkwz7f9h0f3pdyzfb2ds7z9sygs-uv-0.6.6/bin:/nix/store/87hsv7pc321h80j7223209nxc8vmabqb-nodejs-22.14.0/bin:/nix/store/nrx9a9adgnhspm5lqgcyl9vycsyqwfyh-pnpm-10.6.3/bin:/nix/store/pl9krbxnhawd4n5kxsm6m5i5mjhbw48q-git-2.48.1/bin:/nix/store/i7ki98xf358llbdadpqsb69z5dvdpz5z-graphite-cli-1.5.3/bin:/nix/store/8cczxvv6hpngc9mxal0wx0lzny4vjp4n-pkg-config-wrapper-0.29.2/bin:/nix/store/qp4a5bxdck7c0w7l2mf47phhfk2nmscs-patchelf-0.15.0/bin:/nix/store/gj9lra51hwhxnhz05jqk5lh03wipamv0-gcc-wrapper-14-20241116/bin:/nix/store/aw0qxjd1phf16qhlwpdb4x87yymfv9rp-gcc-14-20241116/bin:/nix/store/cgp5cbv6b3djw35zkl4s77snh0navr3w-glibc-2.40-66-bin/bin:/nix/store/vz67zaqyfln2jcqwar682kdlrxfx9vq1-coreutils-9.6/bin:/nix/store/kinjsav83qgiiy8mwgypnnc9sn8m8r9y-binutils-wrapper-2.43.1/bin:/nix/store/dh0m67pv8snfcx1ic18jzp0x4cb10zhc-binutils-2.43.1/bin:/nix/store/vz67zaqyfln2jcqwar682kdlrxfx9vq1-coreutils-9.6/bin:/nix/store/cfd3hysxk7b4m584s539hzm2bc013lsg-findutils-4.10.0/bin:/nix/store/kdrp6y7k352jb9ysjprzvmrlmiblz0jq-diffutils-3.10/bin:/nix/store/l97jblhqk9ga2dl01ysd3wf51mwqcd6s-gnused-4.9/bin:/nix/store/h3xhfhg0vv3k3hvkcwkmdg99r4zm9mcl-gnugrep-3.11/bin:/nix/store/kz9cfpxf08fdsgxgh6zp1k1y5npsnjpr-gawk-5.3.1/bin:/nix/store/j9gjzsbag34n3ic3yg4ra0p5yl8wcbhg-gnutar-1.35/bin:/nix/store/g9h265xkvsma74irj4389djs39k96d72-gzip-1.13/bin:/nix/store/p406mc3r448lfrl0qgqm4cg8qax7jw5v-bzip2-1.0.8-bin/bin:/nix/store/zkman1hvq58ica17s06r9hq62k300c1v-gnumake-4.4.1/bin:/nix/store/ki4if6b0w5bqv8dc5lrjp8xm7wjy9dlf-bash-5.2p37/bin:/nix/store/gkw3fwmfvn06gz7hh6vwdskh3s1lkvcv-patch-2.7.6/bin:/nix/store/7w6d3dwm5zs6vn37wmsbi0szvx0w98gy-xz-5.6.4-bin/bin:/nix/store/i4fn3frirjgrfsmwkbr4srfpry18x5dz-file-5.46/bin:/home/sam/.vscode-server-insiders/cli/servers/Insiders-2c7a0283817355c81e1b106f34d911762950a4d9/server/bin/remote-cli:/nix/store/x33wpx4jdmp7vrd7nm2f5fv4qd4fvkss-qtstyleplugin-kvantum-1.1.4/bin:/run/wrappers/bin:/home/sam/.nix-profile/bin:/nix/profile/bin:/home/sam/.local/state/nix/profile/bin:/etc/profiles/per-user/sam/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:/home/sam/.zsh/plugins/fast-syntax-highlighting:/nix/store/x33wpx4jdmp7vrd7nm2f5fv4qd4fvkss-qtstyleplugin-kvantum-1.1.4/bin
added: PKG_CONFIG
now: pkg-config
added: PKG_CONFIG_PATH
now: /nix/store/ykd8kk5p9zchs0dgf0p998wpcb8x1rv7-python3-3.12.9-env/lib/pkgconfig
added: PYTHONPATH
now: /nix/store/yb3yv0y0f2zvcgjj50nznidb8i81ds5s-devenv-profile/lib/python3.12/site-packages
added: RANLIB
now: ranlib
added: READELF
now: readelf
added: SIZE
now: size
added: SOURCE_DATE_EPOCH
now: 315532800
added: STRINGS
now: strings
added: STRIP
now: strip
added: UV_PROJECT_ENVIRONMENT
now: /home/sam/Documents/projects/work/coalesc/.devenv/state/venv
added: VIRTUAL_ENV
added: VIRTUAL_ENV_PROMPT
changed: XDG_DATA_DIRS
was: /nix/store/6dwj6fv1x4pdhi7wyd2vvbfcqqf1kv7n-desktops/share:/home/sam/.nix-profile/share:/nix/profile/share:/home/sam/.local/state/nix/profile/share:/etc/profiles/per-user/sam/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
now: /nix/store/ykd8kk5p9zchs0dgf0p998wpcb8x1rv7-python3-3.12.9-env/share:/nix/store/w2r38hkwz7f9h0f3pdyzfb2ds7z9sygs-uv-0.6.6/share:/nix/store/87hsv7pc321h80j7223209nxc8vmabqb-nodejs-22.14.0/share:/nix/store/nrx9a9adgnhspm5lqgcyl9vycsyqwfyh-pnpm-10.6.3/share:/nix/store/pl9krbxnhawd4n5kxsm6m5i5mjhbw48q-git-2.48.1/share:/nix/store/i7ki98xf358llbdadpqsb69z5dvdpz5z-graphite-cli-1.5.3/share:/nix/store/8cczxvv6hpngc9mxal0wx0lzny4vjp4n-pkg-config-wrapper-0.29.2/share:/nix/store/qp4a5bxdck7c0w7l2mf47phhfk2nmscs-patchelf-0.15.0/share:/nix/store/6dwj6fv1x4pdhi7wyd2vvbfcqqf1kv7n-desktops/share:/home/sam/.nix-profile/share:/nix/profile/share:/home/sam/.local/state/nix/profile/share:/etc/profiles/per-user/sam/share:/nix/var/nix/profiles/default/share:/run/current-system/sw/share
added: cmakeFlags
added: configureFlags
added: hardeningDisable
added: mesonFlags
added: name
now: devenv-shell-env
added: system
now: x86_64-linux
Version: 1.99.0-insider (Universal)
Commit: 2c7a0283817355c81e1b106f34d911762950a4d9
Date: 2025-03-14T05:04:14.195Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions