direnv/direnv-vscode

issues with .envrc from parent directory

Closed this issue ยท 0 comments

I started this bug but now reproducing it is super unreliable. I'll close now and come back to it if I can come up with something.

I was having trouble in this scenario:

  • ๐Ÿ“ parent
    • ๐Ÿ“„ .envrc
    • ๐Ÿ“ project
      • ๐Ÿ“„ [project files, but no .envrc]

The extension wouldn't pick up the .envrc in "parent". However, now it seems to be doing it with some reliabilityโ€ฆ I'll report back when I have something to report on.

It is interesting that when I tried adding an .envrc to "project" with "source_up" or a similar setup, the Output tab for the direnv extension did indeed find the .envrc in "parent" and said it was being watched, but it seemed to reliably pick up on the "project" .envrc but not the one in "parent".