-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
addon messing with 44 variables with empty envrc #471
Comments
You'll have to give me a lot more to be able to help. Maybe… tell me a bit about your system? How did you install the software and how are you running it? Where are fish and starship located? Does it matter where the workspace with the empty My 🔮 believes that nix is involved but I can't figure out how yet. Also screenshots don't help without you describing why you included them, and are strictly worse than just posting the screenshotted text. Especially when the screenshots are severely cropped, like the extension output above. Which other environment variables were changed and how? Which internal direnv variables were changed? |
Full extension output on failure: |
Thanks. Those variables are consistent with what a nix shell defines, the extension unsetting them all seems really weird… You wouldn't happen to have installed vscode with nix, or started it from a nix-shell? Does the |
I'm currently working, and reproducing this requires reloading the window which breaks live share. I'll do any experimentation later. No vscode nix, just normal systemwide nix afaik. I use |
There's no rush, I'm about to go to sleep anyways :) |
This probably had something to do with having multiple |
Nevermind, just happened again. I was in some sort of limbo and reloaded and it's back. No envrc in this folder, nor any parent. Reset and reload does nothing.
|
Adding echo "Hello" to |
When it's "working", > nix-shell-info
nix-shell
> which bash
/nix/store/pk3kkaafln68gzxawk57qp9m5h5285va-bash-interactive-5.2-p15/bin/bash
> which ls
/nix/store/lyicmql3ws929d7azr65h25b2hyakmb6-coreutils-9.1/bin/ls
> which cargo # something a default nix-shell wouldn't provide
/home/end/.cargo/bin/cargo This is consistent with behavior when running, for example, |
If I use direnv: error /tmp/tmp.inFuqoP3N6/.envrc is blocked. Run `direnv allow` to approve its content
> which bash
/usr/bin/bash |
I think this error is caused by |
Sorry, I haven't found the time to try and reproduce this with Could you try running without it? Nix started shipping with some fish integration in |
I've had it disabled for a while, don't really use nix-shell anymore so it hasn't been a huge issue. It would be good to have this fixed though. I recall having some other intermittent issues but none as consistently disruptive as the one that happens with |
using
fish
shell +starship
, addon causes integrated terminals to fail to load.This only happens with this addon, not with direnv in general. Not sure how to debug this even
The text was updated successfully, but these errors were encountered: