Closed cellulosa closed 1 week ago
Is this a problem with the Remote-Containers extension? Or the Docker extension? I'm not following the vscode connection
I seems related to visual studio code, because I face the same issue when running other commands e.g. npm run dev
If I have an .env
file and change the value of the variable, the new value does not seem to get picked up - unless I run unset
. If I run the same command on a terminal (not in the visual studio code one), it works as expected.
But isn't it docker and node that are supposed to find and read the .env file? Or is the vscode terminal involved in this feature somehow?
That's a good reflection, however the oddity is that if I run the exact same command on a normal terminal, it works fine. It is only the integrated vs code terminal that seem to be affected by this
You'll need to create a new terminal to see the environment changes.
I did. Also restarting vscode didn't help
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
.env
filedocker compose up
, then stop it.env
filedocker compose up
unset VARIABLE_NAME
to be able to give it a fresh new value