Description
Summary
Zed fails to load environment variables
Description
When I start up zed (maybe since 0.189, but difficult to pin down, could be from 0.190) I get this warning in the bottom bar
Failed to load environment variables. See log for details
When I click on it to open the log, the relevant line is just
2025-06-12T16:56:43+02:00 ERROR [project::environment] Failed to load environment variables. See log for details
This has all sorts of knock on effects and problems.
Notably, agentic editing kind of breaks when the AI tries to run shell commands, e.g. mix compile
- the command fails then it tries to rectify itself and figure out why the command is failing rather than working on the code, it kind of falls into a hole and doesn't get out of it.
The integrated terminal still works fine though, which is also strange?
Expected Behavior: That it works, e.g. the agent is able to run mix compile
Actual Behavior: It doesn't
Here is a good example
Model Provider Details
- Provider: All models, all providers
- Mode: Agent Panel
Zed Version and System Specs
Zed: v0.191.0 (Zed Preview)
OS: Linux X11 pop 22.04
Memory: 31.2 GiB
Architecture: x86_64
GPU: NVIDIA GeForce RTX 3050 || NVIDIA || 565.77