The devcontainer.json can include the option to set environment variables for the devcontainer environment, namely “remoteEnv” (see Development Container Specification). It seems like when using the cursor dev-container extension, this will get ignored, see more here:
Overall the cursor dev-container extension seems slow and unstable, i wanted to switch back to vs-code dev-container extension but its not listed on the extension marketplace…
Steps to Reproduce
Add any configuration for dev-container setup and try to use “remoteEnv” in the devcontainer.json to pass env-vars to the dev-container env
Expected Behavior
The env-vars gets set properly
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Hi @ungerpeter , @mrjarnould , and @Alexander_Sullivan – could you upgrade to version 1.0.9 of the Anysphere Remote Containers extension? This version adds support for remoteEnv.